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.2.5~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=507015297f250a2ae8e509ad63ec4e1d227ee6a1;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 4420dd9b780..70b1b24cc1f 100644 --- a/apps/cmp.c +++ b/apps/cmp.c @@ -887,7 +887,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;