summaryrefslogtreecommitdiffstats
path: root/providers/implementations/kdfs/krb5kdf.c
diff options
context:
space:
mode:
authorPauli <ppzgs1@gmail.com>2021-03-10 18:28:35 +1000
committerPauli <ppzgs1@gmail.com>2021-03-12 08:27:21 +1000
commitc983a0e5214db7f0a668f5e9ddda9362ca0d6ac9 (patch)
tree3fe9b004c176e5c64300993dbbc0092274798d98 /providers/implementations/kdfs/krb5kdf.c
parentf59612fed8def965c61cdb002fa20f61943f50a0 (diff)
prov: add extra params argument to KDF implementations
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/14383)
Diffstat (limited to 'providers/implementations/kdfs/krb5kdf.c')
-rw-r--r--providers/implementations/kdfs/krb5kdf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/providers/implementations/kdfs/krb5kdf.c b/providers/implementations/kdfs/krb5kdf.c
index 041c3e32b2..4bf9ce7294 100644
--- a/providers/implementations/kdfs/krb5kdf.c
+++ b/providers/implementations/kdfs/krb5kdf.c
@@ -136,6 +136,9 @@ static int krb5kdf_set_ctx_params(void *vctx, const OSSL_PARAM params[])
KRB5KDF_CTX *ctx = vctx;
OSSL_LIB_CTX *provctx = PROV_LIBCTX_OF(ctx->provctx);
+ if (params == NULL)
+ return 1;
+
if (!ossl_prov_cipher_load_from_params(&ctx->cipher, params, provctx))
return 0;