From 6d1c31540fa9453e6e31d4008c3b5ed18f7532ae Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 30 Aug 2019 14:32:33 +0200 Subject: [PATCH] crypto/evp/kdf_meth.c: Add the reset function to the method Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/9662) --- crypto/evp/kdf_meth.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crypto/evp/kdf_meth.c b/crypto/evp/kdf_meth.c index f45fa3f74f..c2db212710 100644 --- a/crypto/evp/kdf_meth.c +++ b/crypto/evp/kdf_meth.c @@ -85,6 +85,11 @@ static void *evp_kdf_from_dispatch(const char *name, const OSSL_DISPATCH *fns, kdf->freectx = OSSL_get_OP_kdf_freectx(fns); fnctxcnt++; break; + case OSSL_FUNC_KDF_RESET: + if (kdf->reset != NULL) + break; + kdf->reset = OSSL_get_OP_kdf_reset(fns); + break; case OSSL_FUNC_KDF_DERIVE: if (kdf->derive != NULL) break; -- 2.25.1