diff options
author | Richard Levitte <levitte@openssl.org> | 2019-08-30 14:32:33 +0200 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2019-09-06 19:27:57 +1000 |
commit | 6d1c31540fa9453e6e31d4008c3b5ed18f7532ae (patch) | |
tree | 2e47544c4d1fe18fff84ae9dc4e70e380471a9dc /crypto | |
parent | 1f9eac279b9f70adc63437db84f0f986933c5792 (diff) |
crypto/evp/kdf_meth.c: Add the reset function to the method
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9662)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/evp/kdf_meth.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |