]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
APPS/cmp.c: fix char encoding of subject, issuer, sender, and recipient DN
authorDr. David von Oheimb <dev@ddvo.net>
Fri, 9 May 2025 09:44:57 +0000 (11:44 +0200)
committerTomas Mraz <tomas@openssl.org>
Tue, 13 May 2025 12:09:29 +0000 (14:09 +0200)
Fixes #27572

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27592)

(cherry picked from commit 35e431ed6daa894ee5385363cf4cfe4954312e4d)

apps/cmp.c

index c479b15496607f5fc7e31b9ea938572498861987..0e1f90f2f64982506c8d2dcd151983d9378e76dc 100644 (file)
@@ -878,7 +878,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;