Add key derivation support.
[openssl.git] / crypto / evp / pmeth_lib.c
index dc4f96d73531e0eb9aa6ae5f4886131c1a383a6b..95b1e4ed3c3e5bf9828c232a7846d1748e7aa406 100644 (file)
 
 STACK *app_pkey_methods = NULL;
 
-extern EVP_PKEY_METHOD rsa_pkey_meth, dsa_pkey_meth;
+extern EVP_PKEY_METHOD rsa_pkey_meth, dh_pkey_meth, dsa_pkey_meth;
 
 static const EVP_PKEY_METHOD *standard_methods[] =
        {
        &rsa_pkey_meth,
+       &dh_pkey_meth,
        &dsa_pkey_meth
        };
 
@@ -119,6 +120,7 @@ static EVP_PKEY_CTX *int_ctx_new(EVP_PKEY *pkey, ENGINE *e, int id)
        ret->pmeth = pmeth;
        ret->operation = EVP_PKEY_OP_UNDEFINED;
        ret->pkey = pkey;
+       ret->peerkey = NULL;
        if (pkey)
                CRYPTO_add(&pkey->references,1,CRYPTO_LOCK_EVP_PKEY);
        ret->data = NULL;