update to libetpan-1.7
while there, remove a trailing whitespace in pkg/DESCR tweak from aja@, ok jca@
This commit is contained in:
parent
aa607f1be8
commit
3d9a78cac9
@ -1,15 +1,13 @@
|
||||
# $OpenBSD: Makefile,v 1.20 2016/04/20 10:18:16 danj Exp $
|
||||
# $OpenBSD: Makefile,v 1.21 2016/05/01 20:11:16 danj Exp $
|
||||
|
||||
COMMENT= mail purpose library
|
||||
|
||||
GH_ACCOUNT= dinhviethoa
|
||||
GH_PROJECT= libetpan
|
||||
GH_TAGNAME= 1.6
|
||||
DISTNAME= libetpan-1.6
|
||||
REVISION= 1
|
||||
GH_TAGNAME= 1.7
|
||||
CATEGORIES= mail devel
|
||||
|
||||
SHARED_LIBS= etpan 15.0
|
||||
SHARED_LIBS= etpan 16.0
|
||||
|
||||
HOMEPAGE= http://www.etpan.org/libetpan.html
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (libetpan-1.6.tar.gz) = eWKx+URb4k0ety2t2rrrtCcHTBSlDp2tDOvewETHHhc=
|
||||
SIZE (libetpan-1.6.tar.gz) = 6144117
|
||||
SHA256 (libetpan-1.7.tar.gz) = R9DASditzc/QaY6fH8uFQWsLL0du7R9SqucsKIPPBbA=
|
||||
SIZE (libetpan-1.7.tar.gz) = 6184289
|
||||
|
@ -1,24 +0,0 @@
|
||||
$OpenBSD: patch-configure_ac,v 1.1 2015/09/17 20:28:33 jca Exp $
|
||||
|
||||
Fix wrong logic that turns off curl and expat support.
|
||||
|
||||
--- configure.ac.orig Fri Oct 31 22:41:02 2014
|
||||
+++ configure.ac Thu Sep 17 19:08:19 2015
|
||||
@@ -581,7 +581,7 @@ dnl libcurl
|
||||
libcurl=no
|
||||
AC_ARG_WITH(curl, [ --with-curl[=DIR] curl install directory (default=auto)],
|
||||
[], [with_curl=auto])
|
||||
-if test "x$with_curl" != "xno"; then
|
||||
+if test "x$with_curl" = "xno"; then
|
||||
:
|
||||
elif test "x$with_curl" != "xauto"; then
|
||||
OCPPFLAGS="$CPPFLAGS"
|
||||
@@ -639,7 +639,7 @@ dnl expat
|
||||
libexpat=no
|
||||
AC_ARG_WITH(expat, [ --with-expat[=DIR] expat install directory (default=auto)],
|
||||
[], [with_expat=auto])
|
||||
-if test "x$with_expat" != "xno"; then
|
||||
+if test "x$with_expat" = "xno"; then
|
||||
:
|
||||
elif test "x$with_expat" != "xauto"; then
|
||||
OCPPFLAGS="$CPPFLAGS"
|
@ -1,66 +0,0 @@
|
||||
$OpenBSD: patch-src_data-types_mailstream_ssl_c,v 1.1 2016/04/20 10:18:16 danj Exp $
|
||||
|
||||
When encrypting the connection with STARTTLS the only method
|
||||
allowed was TLSv1. Change this to allow TLSv1.2 (or whatever the
|
||||
strongest method is).
|
||||
|
||||
Additionally tls_data_new() and ssl_data_new() did the same (with
|
||||
exception to the nailed method in tls_data_new()), so drop one
|
||||
of them.
|
||||
https://github.com/dinhviethoa/libetpan/commit/7f1f97f4d59d5724af97f4d32424c2841715561c.patch
|
||||
|
||||
--- src/data-types/mailstream_ssl.c.orig Tue Apr 19 14:04:46 2016
|
||||
+++ src/data-types/mailstream_ssl.c Tue Apr 19 14:03:25 2016
|
||||
@@ -485,15 +485,21 @@ again:
|
||||
static struct mailstream_ssl_data * ssl_data_new(int fd, time_t timeout,
|
||||
void (* callback)(struct mailstream_ssl_context * ssl_context, void * cb_data), void * cb_data)
|
||||
{
|
||||
- return ssl_data_new_full(fd, timeout, SSLv23_client_method(), callback, cb_data);
|
||||
+ return ssl_data_new_full(fd, timeout,
|
||||
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
|
||||
+ TLS_client_method(),
|
||||
+#else
|
||||
+ /* Despite their name the SSLv23_*method() functions have nothing to do
|
||||
+ * with the availability of SSLv2 or SSLv3. What these functions do is
|
||||
+ * negotiate with the peer the highest available SSL/TLS protocol version
|
||||
+ * available. The name is as it is for historic reasons. This is a very
|
||||
+ * common confusion and is the main reason why these names have been
|
||||
+ * deprecated in the latest dev version of OpenSSL. */
|
||||
+ SSLv23_client_method(),
|
||||
+#endif
|
||||
+ callback, cb_data);
|
||||
}
|
||||
|
||||
-static struct mailstream_ssl_data * tls_data_new(int fd, time_t timeout,
|
||||
- void (* callback)(struct mailstream_ssl_context * ssl_context, void * cb_data), void * cb_data)
|
||||
-{
|
||||
- return ssl_data_new_full(fd, timeout, TLSv1_client_method(), callback, cb_data);
|
||||
-}
|
||||
-
|
||||
#else
|
||||
|
||||
static struct mailstream_ssl_context * mailstream_ssl_context_new(gnutls_session session, int fd);
|
||||
@@ -625,11 +631,6 @@ static struct mailstream_ssl_data * ssl_data_new(int f
|
||||
err:
|
||||
return NULL;
|
||||
}
|
||||
-static struct mailstream_ssl_data * tls_data_new(int fd, time_t timeout,
|
||||
- void (* callback)(struct mailstream_ssl_context * ssl_context, void * cb_data), void * cb_data)
|
||||
-{
|
||||
- return ssl_data_new(fd, timeout, callback, cb_data);
|
||||
-}
|
||||
#endif
|
||||
|
||||
static void ssl_data_free(struct mailstream_ssl_data * ssl_data)
|
||||
@@ -681,10 +682,7 @@ static mailstream_low * mailstream_low_ssl_open_full(i
|
||||
mailstream_low * s;
|
||||
struct mailstream_ssl_data * ssl_data;
|
||||
|
||||
- if (starttls)
|
||||
- ssl_data = tls_data_new(fd, timeout, callback, cb_data);
|
||||
- else
|
||||
- ssl_data = ssl_data_new(fd, timeout, callback, cb_data);
|
||||
+ ssl_data = ssl_data_new(fd, timeout, callback, cb_data);
|
||||
|
||||
if (ssl_data == NULL)
|
||||
goto err;
|
@ -3,7 +3,7 @@ middleware for different kinds of mail access. When using the drivers
|
||||
interface, the interface is the same for all kinds of mail access,
|
||||
remote and local mailboxes.
|
||||
|
||||
It will be used for low-level mail handling:
|
||||
It will be used for low-level mail handling:
|
||||
- network protocols over TCP/IP and SSL / TCP/IP (including IPv6)
|
||||
+ IMAP
|
||||
+ NNTP
|
||||
|
Loading…
x
Reference in New Issue
Block a user