projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
update set_ctx_param MAC calls to return 1 for a NULL params
[openssl.git]
/
providers
/
implementations
/
macs
/
kmac_prov.c
diff --git
a/providers/implementations/macs/kmac_prov.c
b/providers/implementations/macs/kmac_prov.c
index 361ff8e716c5c313ee69b6d2c2fd3e5cf50e2921..8735705f1bed9241d93c7b5883596b3bc6d358f0 100644
(file)
--- a/
providers/implementations/macs/kmac_prov.c
+++ b/
providers/implementations/macs/kmac_prov.c
@@
-379,6
+379,9
@@
static int kmac_set_ctx_params(void *vmacctx, const OSSL_PARAM *params)
struct kmac_data_st *kctx = vmacctx;
const OSSL_PARAM *p;
+ if (params == NULL)
+ return 1;
+
if ((p = OSSL_PARAM_locate_const(params, OSSL_MAC_PARAM_XOF)) != NULL
&& !OSSL_PARAM_get_int(p, &kctx->xof_mode))
return 0;