X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fevp%2Fp_lib.c;h=1a1e61a64e00425a6f6f83cb32b6dbb0ff4f8659;hp=f18ac62a0fe98832bde6cfba94cfe2e2d0081f94;hb=c20276e4aef1e716980589c43cf9276abc7ff2b7;hpb=18e377b4ffa6d15572d7283f1eb1743ce5875804 diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c index f18ac62a0f..1a1e61a64e 100644 --- a/crypto/evp/p_lib.c +++ b/crypto/evp/p_lib.c @@ -185,7 +185,7 @@ EVP_PKEY *EVP_PKEY_new(void) return(ret); } -int EVP_PKEY_assign(EVP_PKEY *pkey, int type, char *key) +int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key) { const EVP_PKEY_ASN1_METHOD *ameth; if (pkey == NULL) return(0); @@ -199,6 +199,11 @@ int EVP_PKEY_assign(EVP_PKEY *pkey, int type, char *key) return(key != NULL); } +void *EVP_PKEY_get0(EVP_PKEY *pkey) + { + return pkey->pkey.ptr; + } + #ifndef OPENSSL_NO_RSA int EVP_PKEY_set1_RSA(EVP_PKEY *pkey, RSA *key) {