From: Richard Levitte Date: Fri, 30 Aug 2019 12:32:33 +0000 (+0200) Subject: crypto/evp/kdf_meth.c: Add the reset function to the method X-Git-Tag: openssl-3.0.0-alpha1~1470 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6d1c31540fa9453e6e31d4008c3b5ed18f7532ae;p=oweals%2Fopenssl.git 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) --- 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;