]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Ensure we accept the IANA name for sigalgs
authorViktor Dukhovni <openssl-users@dukhovni.org>
Fri, 7 Feb 2025 14:54:15 +0000 (14:54 +0000)
committerTomas Mraz <tomas@openssl.org>
Fri, 14 Feb 2025 09:46:04 +0000 (10:46 +0100)
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26654)

ssl/t1_lib.c

index 0318cbc7260fce7c0d7451d12e0117835b0af8b3..5fc12c5b3b4fa9245dbb4a872924966478139fb9 100644 (file)
@@ -3558,8 +3558,10 @@ static int sig_cb(const char *elem, int len, void *arg)
             /* Check if a provider supports the sigalg */
             for (i = 0; i < sarg->ctx->sigalg_list_len; i++) {
                 if (sarg->ctx->sigalg_list[i].sigalg_name != NULL
-                    && strcmp(etmp,
-                              sarg->ctx->sigalg_list[i].sigalg_name) == 0) {
+                    && (strcmp(etmp,
+                               sarg->ctx->sigalg_list[i].sigalg_name) == 0
+                        || strcmp(etmp,
+                                  sarg->ctx->sigalg_list[i].name) == 0)) {
                     sarg->sigalgs[sarg->sigalgcnt++] =
                         sarg->ctx->sigalg_list[i].code_point;
                     break;