diff options
Diffstat (limited to 'src/lib/libssl/src/demos/x509/mkreq.c')
-rw-r--r-- | src/lib/libssl/src/demos/x509/mkreq.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/libssl/src/demos/x509/mkreq.c b/src/lib/libssl/src/demos/x509/mkreq.c index d69dcc392b..3dfc65f164 100644 --- a/src/lib/libssl/src/demos/x509/mkreq.c +++ b/src/lib/libssl/src/demos/x509/mkreq.c | |||
@@ -8,7 +8,9 @@ | |||
8 | #include <openssl/pem.h> | 8 | #include <openssl/pem.h> |
9 | #include <openssl/conf.h> | 9 | #include <openssl/conf.h> |
10 | #include <openssl/x509v3.h> | 10 | #include <openssl/x509v3.h> |
11 | #ifndef OPENSSL_NO_ENGINE | ||
11 | #include <openssl/engine.h> | 12 | #include <openssl/engine.h> |
13 | #endif | ||
12 | 14 | ||
13 | int mkreq(X509_REQ **x509p, EVP_PKEY **pkeyp, int bits, int serial, int days); | 15 | int mkreq(X509_REQ **x509p, EVP_PKEY **pkeyp, int bits, int serial, int days); |
14 | int add_ext(STACK_OF(X509_REQUEST) *sk, int nid, char *value); | 16 | int add_ext(STACK_OF(X509_REQUEST) *sk, int nid, char *value); |
@@ -33,7 +35,9 @@ int main(int argc, char **argv) | |||
33 | X509_REQ_free(req); | 35 | X509_REQ_free(req); |
34 | EVP_PKEY_free(pkey); | 36 | EVP_PKEY_free(pkey); |
35 | 37 | ||
38 | #ifndef OPENSSL_NO_ENGINE | ||
36 | ENGINE_cleanup(); | 39 | ENGINE_cleanup(); |
40 | #endif | ||
37 | CRYPTO_cleanup_all_ex_data(); | 41 | CRYPTO_cleanup_all_ex_data(); |
38 | 42 | ||
39 | CRYPTO_mem_leaks(bio_err); | 43 | CRYPTO_mem_leaks(bio_err); |