From: Dr. David von Oheimb Date: Fri, 9 May 2025 09:44:57 +0000 (+0200) Subject: APPS/cmp.c: fix char encoding of subject, issuer, sender, and recipient DN X-Git-Tag: openssl-3.4.2~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e472530da5c21e60fc1c67281ee9ce93eabeb3ce;p=thirdparty%2Fopenssl.git APPS/cmp.c: fix char encoding of subject, issuer, sender, and recipient DN Fixes #27572 Reviewed-by: Richard Levitte Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/27592) (cherry picked from commit 35e431ed6daa894ee5385363cf4cfe4954312e4d) --- diff --git a/apps/cmp.c b/apps/cmp.c index dc2a1c3a6ae..5d1ca78c832 100644 --- a/apps/cmp.c +++ b/apps/cmp.c @@ -938,7 +938,7 @@ static int set_name(const char *str, OSSL_CMP_CTX *ctx, const char *desc) { if (str != NULL) { - X509_NAME *n = parse_name(str, MBSTRING_ASC, 1, desc); + X509_NAME *n = parse_name(str, MBSTRING_UTF8, 1, desc); if (n == NULL) return 0;