Add modes/cts128.c, Ciphertext Stealing implementation.
[openssl.git] / demos / x509 / mkcert.c
index 8304d30e0b656f24545483de1ba0b50224a93a35..c5e67b8e28e47dde3249d6964daacc82063ea480 100644 (file)
@@ -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);