summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/demos/x509/mkreq.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2003-05-11 21:34:11 +0000
committermarkus <markus@openbsd.org>2003-05-11 21:34:11 +0000
commit3a5f3d0e407fc493f4a740bd79f4e3c586fc3841 (patch)
treeca1fe47248cc912e2a530c11856550d9f5d60cb9 /lib/libssl/src/demos/x509/mkreq.c
parent-DROKEN_RENAME not needed for these. (diff)
downloadwireguard-openbsd-3a5f3d0e407fc493f4a740bd79f4e3c586fc3841.tar.xz
wireguard-openbsd-3a5f3d0e407fc493f4a740bd79f4e3c586fc3841.zip
import 0.9.7b (without idea and rc5)
Diffstat (limited to 'lib/libssl/src/demos/x509/mkreq.c')
-rw-r--r--lib/libssl/src/demos/x509/mkreq.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libssl/src/demos/x509/mkreq.c b/lib/libssl/src/demos/x509/mkreq.c
index d69dcc392b9..3dfc65f1643 100644
--- a/lib/libssl/src/demos/x509/mkreq.c
+++ b/lib/libssl/src/demos/x509/mkreq.c
@@ -8,7 +8,9 @@
#include <openssl/pem.h>
#include <openssl/conf.h>
#include <openssl/x509v3.h>
+#ifndef OPENSSL_NO_ENGINE
#include <openssl/engine.h>
+#endif
int mkreq(X509_REQ **x509p, EVP_PKEY **pkeyp, int bits, int serial, int days);
int add_ext(STACK_OF(X509_REQUEST) *sk, int nid, char *value);
@@ -33,7 +35,9 @@ int main(int argc, char **argv)
X509_REQ_free(req);
EVP_PKEY_free(pkey);
+#ifndef OPENSSL_NO_ENGINE
ENGINE_cleanup();
+#endif
CRYPTO_cleanup_all_ex_data();
CRYPTO_mem_leaks(bio_err);