Use strcasecmp when comparing kdf_type

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14290)
This commit is contained in:
Tomas Mraz 2021-02-23 16:50:21 +01:00
parent 861f265a40
commit 7415ffe368
1 changed files with 1 additions and 1 deletions

View File

@ -893,7 +893,7 @@ static int fix_kdf_type(enum state state,
/* Convert KDF type strings to numbers */
for (; kdf_type_map->kdf_type_str != NULL; kdf_type_map++)
if (strcmp(ctx->p2, kdf_type_map->kdf_type_str) == 0) {
if (strcasecmp(ctx->p2, kdf_type_map->kdf_type_str) == 0) {
ctx->p1 = kdf_type_map->kdf_type_num;
ret = 1;
break;