]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-3.5.5 v3.5.5
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:23:36 +0000 (00:23 -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 d32f78adfa141ab1aa4005faefa4d768ffc91140..55ea702fa31512e7e097bbc0b546de9187efe366 100644 (file)
@@ -24791,3 +24791,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 102edce3c7083995b748d7588d9725abf8fea1e4..d266de25ad77f2c82c50d6f802e8d0dcf20ccbd5 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.5.4"
+#define MAIL_RELEASE_DATE      "20200724"
+#define MAIL_VERSION_NUMBER    "3.5.5"
 
 #ifdef SNAPSHOT
 #define MAIL_VERSION_DATE      "-" MAIL_RELEASE_DATE
index 2ef05536809f2994526fe512ad0f8592af1edb19..135cea4b2f7d162a408ed883b0778d6b5a5bde61 100644 (file)
@@ -409,6 +409,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 24d8be5c7827e25a9e32710fe7da2ccef5f416cb..94e356b4766b8742f2cea4e228dfabf3ef1bac63 100644 (file)
@@ -922,6 +922,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) {
@@ -1158,6 +1160,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 0b81d2b64b199c300342f116a7d0217238c6deda..6d709c8bf9ff73e41e198ac877b72efe91585381 100644 (file)
@@ -527,6 +527,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.
      */