projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
prov: add extra params argument to KDF implementations
[openssl.git]
/
providers
/
implementations
/
kdfs
/
krb5kdf.c
diff --git
a/providers/implementations/kdfs/krb5kdf.c
b/providers/implementations/kdfs/krb5kdf.c
index 041c3e32b2f1f1ced0a648fbbd977fada1b57d0e..4bf9ce7294c1ae46ddfd6a77d946a33e00b0e1e1 100644
(file)
--- 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;