summaryrefslogtreecommitdiffstats
path: root/apps/gendsa.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-02-07 08:09:53 +1000
committerPauli <paul.dale@oracle.com>2020-02-12 08:52:42 +1000
commit1ddf2594e18137aeb7ce861e54f46824db76e36f (patch)
treee3dba8a2ebf5bcde9e10242c9af842b2f36d6f8a /apps/gendsa.c
parentc2ec4a16f79cec06b5449bd8728f2e03fa16e22b (diff)
dsa: deprecate applications that depend on the low level DSA functions.
speed is updated to not support DSA instead of being removed. The dhparam, dsaparam, dsa and gendsa commands are deprecated but still exist without NO_DEPRECATED defined. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10977)
Diffstat (limited to 'apps/gendsa.c')
-rw-r--r--apps/gendsa.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/gendsa.c b/apps/gendsa.c
index 12806ef2dd..686168c692 100644
--- a/apps/gendsa.c
+++ b/apps/gendsa.c
@@ -7,8 +7,11 @@
* https://www.openssl.org/source/license.html
*/
+/* We need to use some deprecated APIs */
+#define OPENSSL_SUPPRESS_DEPRECATED
+
#include <openssl/opensslconf.h>
-#ifdef OPENSSL_NO_DSA
+#if defined(OPENSSL_NO_DSA) || defined(OPENSSL_NO_DEPRECATED_3_0)
NON_EMPTY_TRANSLATION_UNIT
#else