Only set the verify callback if there's one to set!
[openssl.git] / ssl / ssltest.c
index a19f70380cb762f62f4c6a19ffef521522d65a54..0960c1acbcbddbb6ea000b74baa694fa41ac15c1 100644 (file)
 #include <openssl/evp.h>
 #include <openssl/x509.h>
 #include <openssl/ssl.h>
+#include <openssl/engine.h>
 #include <openssl/err.h>
 #include <openssl/rand.h>
 #ifdef OPENSSL_SYS_WINDOWS
@@ -704,6 +705,7 @@ end:
 #ifndef OPENSSL_NO_RSA
        free_tmp_rsa();
 #endif
+       ENGINE_cleanup();
        ERR_free_strings();
        ERR_remove_state(0);
        EVP_cleanup();