diff options
author | Georgy Kibardin | 2018-09-24 20:31:19 +0300 |
---|---|---|
committer | Georgy Kibardin | 2018-09-24 20:31:19 +0300 |
commit | b8b4d5e5c969905f4605c25bc4925f36f0da0d16 (patch) | |
tree | ec6e42280d07696b4ec58b5152d0149e0cf44210 | |
parent | 90edf0852b9d7032212158be4bcf4a3781c5c8d0 (diff) | |
download | aur-b8b4d5e5c969905f4605c25bc4925f36f0da0d16.tar.gz |
Passing SNI header
-rw-r--r-- | 17babc.patch | 11 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 18 insertions, 1 deletions
diff --git a/17babc.patch b/17babc.patch new file mode 100644 index 000000000000..26842eddcdd3 --- /dev/null +++ b/17babc.patch @@ -0,0 +1,11 @@ +--- a/src/socket.c ++++ b/src/socket.c +@@ -271,6 +271,8 @@ + + init_wakeup( &conn->ssl_fake, ssl_fake_cb, conn ); + conn->ssl = SSL_new( ((server_conf_t *)conn->conf)->SSLContext ); ++ if (ssl_return( "set server name", conn, SSL_set_tlsext_host_name( conn->ssl, conn->conf->host ) ) < 0) ++ return; + SSL_set_fd( conn->ssl, conn->fd ); + SSL_set_mode( conn->ssl, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER ); + socket_expect_read( conn, 1 ); @@ -2,7 +2,7 @@ pkgname=isync-utf8-mailboxes pkgver=1.3.0 -pkgrel=1 +pkgrel=2 pkgdesc="IMAP and MailDir mailbox synchronizer" arch=('x86_64') url="http://isync.sourceforge.net" @@ -12,6 +12,12 @@ depends=('libsasl' 'zlib') source=(git+https://git.code.sf.net/u/shashurup/isync#branch=utf8-mailboxes) sha512sums=(SKIP) +prepare() { + cd isync + + patch -Np1 -i "$srcdir"/../17babc.patch +} + build() { cd isync ./autogen.sh |