]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-3.2.18 v3.2.18
authorWietse Venema <wietse@porcupine.org>
Fri, 24 Jul 2020 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <postfix-users@dukhovni.org>
Sat, 25 Jul 2020 02:14:46 +0000 (00:14 -0200)
postfix/HISTORY
postfix/src/global/mail_version.h
postfix/src/tls/tls_client.c
postfix/src/tls/tls_misc.c
postfix/src/tls/tls_server.c

index 1b905bb061e5e7cbc9d13fe30b530a1e0bdf3805..3837b12c40933e59b45a828244807c2461c58fc1 100644 (file)
@@ -23343,3 +23343,21 @@ Apologies for any names omitted.
        for the expanded CNAME. Therefore, sending the correct SNI
        name should not break existing mail flows. Fixed by Viktor
        Dukhovni. File: src/tls/tls_client.c.
+
+20200710
+
+       Bugfix (introduced: Postfix 3.0): minor memory leaks in the
+       Postfix TLS library, found during tests. File: tls/tls_misc.c.
+
+20200712
+
+       Bugfix (introduced: Postfix 3.0): 4kbyte per session memory
+       leak in the Postfix TLS library, found during tests. File:
+       tls/tls_misc.c.
+
+20200724
+
+       Workaround for distros that override Postfix protocol
+       settings in a system-wide OpenSSL configuration file, causing
+       interoperability problems after an OS update. File:
+       tls/tls_client.c, tls/tls_server.c.
index d8cece3faa628d08827cd39343b51e6333a60544..e0d56a2f320457b19c435d60083f6f488d10debe 100644 (file)
@@ -20,8 +20,8 @@
   * Patches change both the patchlevel and the release date. Snapshots have no
   * patchlevel; they change the release date only.
   */
-#define MAIL_RELEASE_DATE      "20200627"
-#define MAIL_VERSION_NUMBER    "3.2.17"
+#define MAIL_RELEASE_DATE      "20200724"
+#define MAIL_VERSION_NUMBER    "3.2.18"
 
 #ifdef SNAPSHOT
 #define MAIL_VERSION_DATE      "-" MAIL_RELEASE_DATE
index 72f90090c372f5d22dd2af0d0b4361984cdb7497..557033123e924e11001ec642e3706db3e93445ea 100644 (file)
@@ -375,6 +375,11 @@ TLS_APPL_STATE *tls_client_init(const TLS_CLIENT_INIT_PROPS *props)
     off |= tls_bug_bits();
     SSL_CTX_set_options(client_ctx, off);
 
+    /* Enable all supported protocols */
+#if OPENSSL_VERSION_NUMBER >= 0x1010000fUL
+    SSL_CTX_set_min_proto_version(client_ctx, 0);
+#endif
+
     /*
      * Set the call-back routine for verbose logging.
      */
index ee6a26e7516b844085741e07891175e119e10e52..e401669e89fa547dfbab37fb85fe1cc02466e56b 100644 (file)
@@ -961,6 +961,8 @@ void    tls_get_signature_params(TLS_SESS_STATE *TLScontext)
         */
        if (SSL_get_signature_nid(ssl, &nid) && nid != NID_undef)
            locl_sig_dgst = OBJ_nid2sn(nid);
+
+       X509_free(cert);
     }
     /* Signature algorithms for the peer end of the connection */
     if ((cert = SSL_get_peer_certificate(ssl)) != 0) {
@@ -1189,6 +1191,22 @@ void    tls_free_context(TLS_SESS_STATE *TLScontext)
        myfree(TLScontext->peer_cert_fprint);
     if (TLScontext->peer_pkey_fprint)
        myfree(TLScontext->peer_pkey_fprint);
+    if (TLScontext->kex_name)
+       myfree((void *) TLScontext->kex_name);
+    if (TLScontext->kex_curve)
+       myfree((void *) TLScontext->kex_curve);
+    if (TLScontext->clnt_sig_name)
+       myfree((void *) TLScontext->clnt_sig_name);
+    if (TLScontext->clnt_sig_curve)
+       myfree((void *) TLScontext->clnt_sig_curve);
+    if (TLScontext->clnt_sig_dgst)
+       myfree((void *) TLScontext->clnt_sig_dgst);
+    if (TLScontext->srvr_sig_name)
+       myfree((void *) TLScontext->srvr_sig_name);
+    if (TLScontext->srvr_sig_curve)
+       myfree((void *) TLScontext->srvr_sig_curve);
+    if (TLScontext->srvr_sig_dgst)
+       myfree((void *) TLScontext->srvr_sig_dgst);
     if (TLScontext->errorcert)
        X509_free(TLScontext->errorcert);
     if (TLScontext->untrusted)
index 9c25c2fe28cce33e454a9a49f681281c00409ada..6489bb114b0be73032f94047587b944ac747165c 100644 (file)
@@ -526,6 +526,11 @@ TLS_APPL_STATE *tls_server_init(const TLS_SERVER_INIT_PROPS *props)
 
     SSL_CTX_set_options(server_ctx, off);
 
+    /* Enable all supported protocols */
+#if OPENSSL_VERSION_NUMBER >= 0x1010000fUL
+    SSL_CTX_set_min_proto_version(server_ctx, 0);
+#endif
+
     /*
      * Global protocol selection.
      */