crypto/evp/kdf_meth.c: Add the reset function to the method
authorRichard Levitte <levitte@openssl.org>
Fri, 30 Aug 2019 12:32:33 +0000 (14:32 +0200)
committerPauli <paul.dale@oracle.com>
Fri, 6 Sep 2019 09:27:57 +0000 (19:27 +1000)
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9662)

crypto/evp/kdf_meth.c

index f45fa3f..c2db212 100644 (file)
@@ -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;