commit | 46b8782a7272776d66d943d4f02863c0112890ff | [log] [tgz] |
---|---|---|
author | Koh M. Nakagawa <tsunekou1019@gmail.com> | Sat May 16 10:08:09 2020 +0900 |
committer | Koh M. Nakagawa <tsunekou1019@gmail.com> | Thu May 21 01:56:55 2020 +0900 |
tree | a849f57e8207c265b2330d8b3ddae07e936336fb | |
parent | ee61b6601e821441cd7338126fdfe52165db6f9e [diff] [blame] |
fix mbedtls_x509_dn_gets to escape non-ASCII characters Signed-off-by: Koh M. Nakagawa <tsunekou1019@gmail.com>
diff --git a/library/x509.c b/library/x509.c index 4c2f721..e969b8d 100644 --- a/library/x509.c +++ b/library/x509.c
@@ -787,7 +787,7 @@ break; c = name->val.p[i]; - if( c < 32 || c == 127 || ( c > 128 && c < 160 ) ) + if( c < 32 || c >= 127 ) s[i] = '?'; else s[i] = c; }