Remove EVP_PKEY_dup. All callers have been moved to EVP_PKEY_up_ref. (Neither spelling exists upstream so we only had our own callers to move.) Change-Id: I267f14054780fe3d6dc1170b7b6ae3811a0d1a9a Reviewed-on: https://boringssl-review.googlesource.com/5291 Reviewed-by: Adam Langley <agl@google.com>
diff --git a/include/openssl/evp.h b/include/openssl/evp.h index d0acb48..dd90b7d 100644 --- a/include/openssl/evp.h +++ b/include/openssl/evp.h
@@ -642,17 +642,6 @@ /* Deprecated functions. */ -/* EVP_PKEY_dup adds one to the reference count of |pkey| and returns - * |pkey|. - * - * WARNING: this is a |_dup| function that doesn't actually duplicate! Use - * |EVP_PKEY_up_ref| if you want to increment the reference count without - * confusion. */ -OPENSSL_EXPORT EVP_PKEY *EVP_PKEY_dup(EVP_PKEY *pkey); - - -/* Private functions */ - /* OpenSSL_add_all_algorithms does nothing. */ OPENSSL_EXPORT void OpenSSL_add_all_algorithms(void); @@ -665,6 +654,9 @@ /* EVP_cleanup does nothing. */ OPENSSL_EXPORT void EVP_cleanup(void); + +/* Private functions */ + /* EVP_PKEY_asn1_find returns the ASN.1 method table for the given |nid|, which * should be one of the |EVP_PKEY_*| values. It returns NULL if |nid| is * unknown. */