summaryrefslogtreecommitdiff
path: root/src/mod_gnutls.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2022-01-16 13:05:20 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2022-01-16 13:05:50 -0500
commit3426faf5aed33df451e88df7ba027e9d0e92d7dd (patch)
treeb9985eab2eab26c1ed50158aee34b800827835f7 /src/mod_gnutls.c
parent3ac377177b19fb4be8f93604f1aa0b09626c1d44 (diff)
downloadlighttpd-git-3426faf5aed33df451e88df7ba027e9d0e92d7dd.tar.gz
[multiple] permit UTF-8 in SSL_CLIENT_S_DN_*
permit non-ASCII UTF-8 in SSL_CLIENT_S_DN_* x-ref: https://github.com/ARMmbed/mbedtls/pull/3326#issuecomment-1013921672
Diffstat (limited to 'src/mod_gnutls.c')
-rw-r--r--src/mod_gnutls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_gnutls.c b/src/mod_gnutls.c
index df6f446b..c51d57eb 100644
--- a/src/mod_gnutls.c
+++ b/src/mod_gnutls.c
@@ -2776,7 +2776,7 @@ https_add_ssl_client_subject (request_st * const r, gnutls_x509_dn_t dn)
vlen = sizeof(buf)-1;
for (n = 0; n < vlen; ++n) {
unsigned char c = ava.value.data[n];
- buf[n] = (c < 32 || c == 127 || (c > 128 && c < 160)) ? '?' : c;
+ buf[n] = (c >= 32 && c != 127) ? c : '?';
}
http_header_env_set(r, key, prelen+len, buf, n);