summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-01-28 12:38:47 +1000
committerPauli <paul.dale@oracle.com>2020-02-04 20:02:55 +1000
commit5e3f9aa4e9a915f25b36bb085515d4786a253385 (patch)
treef4647a215cc450ea54adef7c8a62c08b962d52f7 /include
parentee8db22e271201807358c8f87e272d2e74ad8eb7 (diff)
Deprecate the ECDH functions.
Use of the low level ECDH functions has been informally discouraged for a long time. We now formally deprecate them. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10960)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/ec.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/openssl/ec.h b/include/openssl/ec.h
index 3787d2f807..81e7bd28b8 100644
--- a/include/openssl/ec.h
+++ b/include/openssl/ec.h
@@ -1180,10 +1180,11 @@ DEPRECATEDIN_3_0(int ECDH_KDF_X9_62(unsigned char *out, size_t outlen,
const unsigned char *sinfo, size_t sinfolen,
const EVP_MD *md))
-int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key,
- const EC_KEY *ecdh,
- void *(*KDF) (const void *in, size_t inlen,
- void *out, size_t *outlen));
+DEPRECATEDIN_3_0(int ECDH_compute_key(void *out, size_t outlen,
+ const EC_POINT *pub_key,
+ const EC_KEY *ecdh,
+ void *(*KDF)(const void *in, size_t inlen,
+ void *out, size_t *outlen)))
typedef struct ECDSA_SIG_st ECDSA_SIG;