diff options
author | Tomas Mraz <tomas@openssl.org> | 2021-02-23 16:50:21 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-02-24 17:55:20 +0100 |
commit | 7415ffe36896a6cce6f83db5ec1c54e69213c5b1 (patch) | |
tree | 066624fb0e4affe2e980a1c4a18c36e5c84e767c /crypto/evp/ctrl_params_translate.c | |
parent | 861f265a407d5de81c79b6917139e66cdfb0f367 (diff) |
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)
Diffstat (limited to 'crypto/evp/ctrl_params_translate.c')
-rw-r--r-- | crypto/evp/ctrl_params_translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/ctrl_params_translate.c b/crypto/evp/ctrl_params_translate.c index 1e7001809b..04f8fdbcab 100644 --- a/crypto/evp/ctrl_params_translate.c +++ b/crypto/evp/ctrl_params_translate.c @@ -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; |