]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
Bitrot: OpenSSL 1.1.0 and later (de)initialization is implicit
authorViktor Dukhovni <postfix-users@dukhovni.org>
Thu, 17 Mar 2016 21:00:32 +0000 (17:00 -0400)
committerViktor Dukhovni <postfix-users@dukhovni.org>
Thu, 26 May 2016 04:41:55 +0000 (00:41 -0400)
postfix/src/posttls-finger/posttls-finger.c

index 28aa5f1f197e1dcacd8e9189d3a4c297af5fe7e1..fc0894641fc5c90c58f76d04842a73556831c0b5 100644 (file)
@@ -1424,7 +1424,7 @@ static int finger(STATE *state)
     return (0);
 }
 
-#ifdef USE_TLS
+#if defined(USE_TLS) && OPENSSL_VERSION_NUMBER < 0x10100000L
 
 /* ssl_cleanup - free memory allocated in the OpenSSL library */
 
@@ -1442,7 +1442,7 @@ static void ssl_cleanup(void)
     CRYPTO_cleanup_all_ex_data();
 }
 
-#endif
+#endif /* USE_TLS && OPENSSL_VERSION_NUMBER < 0x10100000L */
 
 /* run - do what we were asked to do. */
 
@@ -1832,7 +1832,9 @@ int     main(int argc, char *argv[])
 
     /* Be valgrind friendly and clean-up */
     cleanup(&state);
-#ifdef USE_TLS
+
+    /* OpenSSL 1.1.0 and later (de)initialization is implicit */
+#if defined(USE_TLS) && OPENSSL_VERSION_NUMBER < 0x10100000L
     ssl_cleanup();
 #endif