Project

General

Profile

Bug #309

imap ssl_connect fails due to missing sni extension

Added by Arie Bikker over 3 years ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Category:
LibSylph
Target version:
-
Start date:
11/22/2018
Due date:
% Done:

0%

Estimated time:

Description

Our mail provider uses a load balancer in front of the real server. For this to work the connection needs to be made with an additional "server name identification" (SNI).
Otherwise the connection fails because the balancer/server does not know which certificate to use - and consequently does not send any.
I found a workaround by adding the sni info to the ssl context in the file libsylph/ssl.c with the patch as below.
I am no specialist at ssl-programming, but this works for me. Please review the suggested change and possibly commit.

--->8---- additional sni workaround patch based on 3.7 source
  • libsylph/ssl.c Thu Feb 2 09:02:49 2017
    --- /home/user/src/sylpheed/libsylph_ssl.c Fri Nov 22 10:28:00 2018
    • 239,244 **
      --- 239,245 ----
      return FALSE;
      }
      sockinfo->ssl = SSL_new(ssl_ctx_SSLv23);
      + SSL_set_tlsext_host_name(sockinfo->ssl, sockinfo->hostname);
      break;
      case SSL_METHOD_TLSv1:
      if (!ssl_ctx_TLSv1) { *******
    • 246,251 ***
      --- 247,253 ----
      return FALSE;
      }
      sockinfo->ssl = SSL_new(ssl_ctx_TLSv1);
      + SSL_set_tlsext_host_name(sockinfo->ssl, sockinfo->hostname);
      break;
      default:
      g_warning(_("Unknown SSL method *PROGRAM BUG
      \n"));
#1

Updated by Antonio Ospite over 3 years ago

Duplicate of https://sylpheed.sraoss.jp/redmine/issues/306 this can be closed

#2

Updated by replica watches 5 months ago

https://www.bestwatchaaa.com/Corum-replica.html Louis Vuitton https://www.hotwatchsreplica.com/Chopard.html affirmed https://www.bestwatchaaa.com/Tissot-replica.html https://www.allshopwatch.com/IWC-a-hot.html https://www.bestwatchss.com/Piaget-Replica-Watches.html past https://www.bestwatchss.com/Sinn-Replica-Watches.html as https://www.replicawatchsshop.cc/Piaget-Replica.html world leading brand https://www.hotwatchsreplica.com/hamilton.html https://www.bestwatchaaa.com/Omega-replica.html https://www.replicawatchsshop.cc/Bvlgari-Replica.html https://www.allshopwatch.com/Chopard-a-hot.html industry. https://www.hotwatchsreplica.com/IWC.html https://www.hotwatchsreplica.com/Franck-Muller.html https://www.allshopwatch.com/Vacheron-Constantin-a-hot.html now https://www.allwatchesen.com/ https://www.replicawatchsshop.cc/Longines-Replica.html of https://www.hotwatchsreplica.com/U-Boat.html https://www.hotwatchsreplica.com/Rado.html https://www.allshopwatch.com/Bulgari-a-hot.html Timeless and prestigious, Replica https://www.bestwatchaaa.com/Rado-replica.html https://www.replicawatchsshop.cc/Chopard-Replica.html Watches https://www.replicawatchsshop.cc/Audemars-Piguet-Replica.html https://www.bestwatchaaa.com/Cartier-replica.html evolved and adapted https://www.bestwatchss.com/Ebel-Replica-Watches.html become https://www.bestwatchss.com/ https://www.bestwatchaaa.com/Vacheron-Constantin-replica.html https://www.bestwatchaaa.com/Seiko-replica.html in https://www.allshopwatch.com/Breitling-a-hot.html The https://www.allshopwatch.com/Harry-Winston-a-hot.html https://www.hotwatchsreplica.com/ https://www.allshopwatch.com/TW-Steel-a-hot.html https://www.bestwatchss.com/Chopard-Replica-Watches.html is not only https://www.hotwatchsreplica.com/Romain-Jerome.html https://www.hotwatchsreplica.com/Parmigiani.html http://www.classicwatchess.com/ but also https://www.bestwatchaaa.com/Bell-Ross-replica.html piece https://www.replicawatchsshop.cc/Patek-Philippe-Replica.html art. Wearing it https://www.hotwatchsreplica.com/Raymond-Weil.html your https://www.hotwatchsreplica.com/Hublot.html https://www.bestwatchss.com/Hublot-Replica-Watches.html https://www.hotwatchsreplica.com/Oris.html clicking https://www.hotwatchsreplica.com/Alain-Silberstein.html https://www.replicawatchsshop.cc/Corum-Replica.html https://www.bestwatchaaa.com/Roger-Dubuis-replica.html the eternal https://www.hotwatchsreplica.com/porsche-design.html https://www.bestwatchss.com/Maurice-Lacroix-Replica-Watches.html The Louis https://www.bestwatchss.com/Bvlgari-Replica-Watches.html https://www.hotwatchsreplica.com/blancpain.html watch https://www.allshopwatch.com/ over the https://www.watchrm.com/ https://www.bestwatchaaa.com/Alain-Silberstein-replica.html https://www.luxuryshopwatch.com/ https://www.bestwatchss.com/Linde-Werdelin-Replica-Watches.html edition https://www.swisswatchesale.com/ https://www.allshopwatch.com/Ulysse-Nardin-a-hot.html the exquisite fine work https://www.bestwatchss.com/Glashutte-Replica-Watches.html inside out. Each https://www.hotwatchsreplica.com/A.Lange-Sohne.html is made https://www.shopwatchus.com/ https://www.bestwatchaaa.com/Invicta-replica.html highest https://www.bestwatchaaa.com/Bedat-Co-replica.html standard https://www.allshopwatch.com/Bovet-a-hot.html best quality https://www.bestwatchss.com/Vacheron-Constantin-Replica-Watches.html https://www.allshopwatch.com/Patek-Philippe-a-hot.html spend less but enjoy more.

Also available in: Atom PDF