summaryrefslogtreecommitdiffstats
path: root/apps/gendh.c
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2002-12-08 05:38:44 +0000
committerGeoff Thorpe <geoff@openssl.org>2002-12-08 05:38:44 +0000
commit5daec7ea0ed73def95c65d4e23d1a22839355332 (patch)
treefc3b2444e0507902ee0cef514fb8152c90d21dbd /apps/gendh.c
parente9224c717711eefb30038c9b37c69795dda93c9a (diff)
Undefine OPENSSL_NO_DEPRECATED inside openssl application code if we are
being built with it defined - it is not a symbol to affect how openssl itself builds, but to alter the way openssl headers can be used from an API point of view. The "deprecated" function wrappers will always remain inside OpenSSL at least as long as they're still being used internally. :-) The exception is dsaparam which has been updated to the BN_GENCB-based functions to test the new functionality. If GENCB_TEST is defined, dsaparam will support a "-timebomb <n>" switch to cancel parameter-generation if it gets as far as 'n' seconds without completion.
Diffstat (limited to 'apps/gendh.c')
-rw-r--r--apps/gendh.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/gendh.c b/apps/gendh.c
index 98ee413c74..574a13a57a 100644
--- a/apps/gendh.c
+++ b/apps/gendh.c
@@ -57,6 +57,12 @@
* [including the GNU Public Licence.]
*/
+/* Until the key-gen callbacks are modified to use newer prototypes, we allow
+ * deprecated functions for openssl-internal code */
+#ifdef OPENSSL_NO_DEPRECATED
+#undef OPENSSL_NO_DEPRECATED
+#endif
+
#ifndef OPENSSL_NO_DH
#include <stdio.h>
#include <string.h>