summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-10-09 16:24:07 +0100
committerMatt Caswell <matt@openssl.org>2020-10-20 16:39:41 +0100
commit0a737e16b2bc333cc3a8727458acc5460be10e0e (patch)
tree7f48869dad6e9a899d7962cdba1e532db262894f /include
parent3795b2a302fe0bd49118605f8692591e971c4608 (diff)
Deprecate EVP_PKEY_set1_tls_encodedpoint()
Also deprecate EVP_PKEY_get1_tls_encodedpoint(). The preferred alternative is EVP_PKEY_set1_encoded_public_key() and EVP_PKEY_get1_encoded_public_key(). Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/13105)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/evp.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/openssl/evp.h b/include/openssl/evp.h
index 834e00b84d..7c36e78ce1 100644
--- a/include/openssl/evp.h
+++ b/include/openssl/evp.h
@@ -1280,22 +1280,26 @@ int EVP_PKEY_get_default_digest_name(EVP_PKEY *pkey,
char *mdname, size_t mdname_sz);
int EVP_PKEY_supports_digest_nid(EVP_PKEY *pkey, int nid);
+# ifndef OPENSSL_NO_DEPRECATED_3_0
/*
* For backwards compatibility. Use EVP_PKEY_set1_encoded_public_key in
* preference
*/
-#define EVP_PKEY_set1_tls_encodedpoint(pkey, pt, ptlen) \
- EVP_PKEY_set1_encoded_public_key((pkey), (pt), (ptlen))
+# define EVP_PKEY_set1_tls_encodedpoint(pkey, pt, ptlen) \
+ EVP_PKEY_set1_encoded_public_key((pkey), (pt), (ptlen))
+# endif
int EVP_PKEY_set1_encoded_public_key(EVP_PKEY *pkey,
const unsigned char *pub, size_t publen);
+# ifndef OPENSSL_NO_DEPRECATED_3_0
/*
* For backwards compatibility. Use EVP_PKEY_get1_encoded_public_key in
* preference
*/
-#define EVP_PKEY_get1_tls_encodedpoint(pkey, ppt) \
- EVP_PKEY_get1_encoded_public_key((pkey), (ppt))
+# define EVP_PKEY_get1_tls_encodedpoint(pkey, ppt) \
+ EVP_PKEY_get1_encoded_public_key((pkey), (ppt))
+# endif
size_t EVP_PKEY_get1_encoded_public_key(EVP_PKEY *pkey, unsigned char **ppub);