summaryrefslogtreecommitdiff
path: root/crypto/openssl/demos/x509/mkreq.c
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2003-02-19 23:17:42 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2003-02-19 23:17:42 +0000
commit015ec3c905309d93aded0cb5fd0ab620cb881e07 (patch)
treea69ee61bbf542766bf3da5184b2fbaec03d0c6fe /crypto/openssl/demos/x509/mkreq.c
parent0c977c9c53916de8a0f52bac1e50a6d89e22801d (diff)
parentfceca8a37790004b7d28e0ba02bd2d47101a818f (diff)
Notes
Diffstat (limited to 'crypto/openssl/demos/x509/mkreq.c')
-rw-r--r--crypto/openssl/demos/x509/mkreq.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/openssl/demos/x509/mkreq.c b/crypto/openssl/demos/x509/mkreq.c
index d69dcc392b9f..3dfc65f16435 100644
--- a/crypto/openssl/demos/x509/mkreq.c
+++ b/crypto/openssl/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);