summaryrefslogtreecommitdiff
path: root/apps/req.c
diff options
context:
space:
mode:
authorgeoff <geoff>2002-12-08 05:38:43 +0000
committergeoff <geoff>2002-12-08 05:38:43 +0000
commit75b382488ef5cb9c4356408501b222f6c0dbae35 (patch)
tree09d8e0a57ba1aad686b56136d7cd3777411aa6d9 /apps/req.c
parentded0f56a2aeec01cb7ae687738bab31b36f83052 (diff)
downloadopenssl-75b382488ef5cb9c4356408501b222f6c0dbae35.tar.gz
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/req.c')
-rw-r--r--apps/req.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/req.c b/apps/req.c
index a582e6977..4dca798e4 100644
--- a/apps/req.c
+++ b/apps/req.c
@@ -56,6 +56,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
+
#include <stdio.h>
#include <stdlib.h>
#include <time.h>