diff options
author | nectar <nectar@FreeBSD.org> | 2003-02-19 23:17:42 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2003-02-19 23:17:42 +0000 |
commit | 6c9986c446b6cf77f5e83d111dbcca682d6fdd71 (patch) | |
tree | e5eb3878430323e978956db174c9c51c7997ba4a /crypto/openssl/demos | |
parent | b6c07e9a21ba42613fc3906d3efb586dd5c9a846 (diff) | |
download | FreeBSD-src-6c9986c446b6cf77f5e83d111dbcca682d6fdd71.zip FreeBSD-src-6c9986c446b6cf77f5e83d111dbcca682d6fdd71.tar.gz |
Vendor import of OpenSSL 0.9.7a.
Diffstat (limited to 'crypto/openssl/demos')
-rw-r--r-- | crypto/openssl/demos/x509/mkcert.c | 4 | ||||
-rw-r--r-- | crypto/openssl/demos/x509/mkreq.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/crypto/openssl/demos/x509/mkcert.c b/crypto/openssl/demos/x509/mkcert.c index 8304d30..c5e67b8 100644 --- a/crypto/openssl/demos/x509/mkcert.c +++ b/crypto/openssl/demos/x509/mkcert.c @@ -9,7 +9,9 @@ #include <openssl/pem.h> #include <openssl/conf.h> #include <openssl/x509v3.h> +#ifndef OPENSSL_NO_ENGINE #include <openssl/engine.h> +#endif int mkcert(X509 **x509p, EVP_PKEY **pkeyp, int bits, int serial, int days); int add_ext(X509 *cert, int nid, char *value); @@ -35,7 +37,9 @@ int main(int argc, char **argv) X509_free(x509); EVP_PKEY_free(pkey); +#ifndef OPENSSL_NO_ENGINE ENGINE_cleanup(); +#endif CRYPTO_cleanup_all_ex_data(); CRYPTO_mem_leaks(bio_err); diff --git a/crypto/openssl/demos/x509/mkreq.c b/crypto/openssl/demos/x509/mkreq.c index d69dcc3..3dfc65f 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); |