summaryrefslogtreecommitdiffstats
path: root/crypto/dh/dh_prn.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-02-03 10:05:31 +0100
committerPauli <paul.dale@oracle.com>2020-02-20 10:04:57 +0100
commitada66e78ef535fe80e422bbbadffe8e7863d457c (patch)
treec9caa2b3cd516d99937b02d50e16fc0dda1509b8 /crypto/dh/dh_prn.c
parentDH: add CHANGES entry listing the deprecated DH functions. (diff)
downloadopenssl-ada66e78ef535fe80e422bbbadffe8e7863d457c.tar.xz
openssl-ada66e78ef535fe80e422bbbadffe8e7863d457c.zip
Deprecate the low level Diffie-Hellman functions.
Use of the low level DH functions has been informally discouraged for a long time. We now formally deprecate them. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11024)
Diffstat (limited to 'crypto/dh/dh_prn.c')
-rw-r--r--crypto/dh/dh_prn.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/dh/dh_prn.c b/crypto/dh/dh_prn.c
index d0e1ab3d06..28027a4a4f 100644
--- a/crypto/dh/dh_prn.c
+++ b/crypto/dh/dh_prn.c
@@ -7,6 +7,12 @@
* https://www.openssl.org/source/license.html
*/
+/*
+ * DH low level APIs are deprecated for public use, but still ok for
+ * internal use.
+ */
+#include "internal/deprecated.h"
+
#include <stdio.h>
#include "internal/cryptlib.h"
#include <openssl/evp.h>