diff options
| -rw-r--r-- | meta-oe/recipes-devtools/uw-imap/uw-imap/uw-imap-newer-tls.patch | 29 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb | 1 |
2 files changed, 30 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/uw-imap/uw-imap/uw-imap-newer-tls.patch b/meta-oe/recipes-devtools/uw-imap/uw-imap/uw-imap-newer-tls.patch new file mode 100644 index 0000000000..958abc90f8 --- /dev/null +++ b/meta-oe/recipes-devtools/uw-imap/uw-imap/uw-imap-newer-tls.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> | ||
| 2 | Upstream-Status: Pending | ||
| 3 | |||
| 4 | --- imap-2007f/src/osdep/unix/ssl_unix.c.old 2024-05-08 09:41:06.183450584 +0200 | ||
| 5 | +++ imap-2007f/src/osdep/unix/ssl_unix.c 2024-05-08 09:43:38.512931933 +0200 | ||
| 6 | @@ -220,7 +220,11 @@ | ||
| 7 | if (ssl_last_error) fs_give ((void **) &ssl_last_error); | ||
| 8 | ssl_last_host = host; | ||
| 9 | if (!(stream->context = SSL_CTX_new ((flags & NET_TLSCLIENT) ? | ||
| 10 | +#if OPENSSL_VERSION_NUMBER >= 0x10100000 | ||
| 11 | + TLS_client_method () : | ||
| 12 | +#else | ||
| 13 | TLSv1_client_method () : | ||
| 14 | +#endif | ||
| 15 | SSLv23_client_method ()))) | ||
| 16 | return "SSL context failed"; | ||
| 17 | SSL_CTX_set_options (stream->context,0); | ||
| 18 | @@ -703,7 +707,11 @@ | ||
| 19 | } | ||
| 20 | /* create context */ | ||
| 21 | if (!(stream->context = SSL_CTX_new (start_tls ? | ||
| 22 | +#if OPENSSL_VERSION_NUMBER >= 0x10100000 | ||
| 23 | + TLS_server_method () : | ||
| 24 | +#else | ||
| 25 | TLSv1_server_method () : | ||
| 26 | +#endif | ||
| 27 | SSLv23_server_method ()))) | ||
| 28 | syslog (LOG_ALERT,"Unable to create SSL context, host=%.80s", | ||
| 29 | tcp_clienthost ()); | ||
diff --git a/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb b/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb index dcb59f4ea0..17faa3aa6e 100644 --- a/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb +++ b/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb | |||
| @@ -15,6 +15,7 @@ SRC_URI = "https://fossies.org/linux/misc/old/imap-${PV}.tar.gz \ | |||
| 15 | file://0001-Do-not-build-mtest.patch \ | 15 | file://0001-Do-not-build-mtest.patch \ |
| 16 | file://0002-tmail-Include-ctype.h-for-isdigit.patch \ | 16 | file://0002-tmail-Include-ctype.h-for-isdigit.patch \ |
| 17 | file://0001-Fix-Wincompatible-function-pointer-types.patch \ | 17 | file://0001-Fix-Wincompatible-function-pointer-types.patch \ |
| 18 | file://uw-imap-newer-tls.patch \ | ||
| 18 | " | 19 | " |
| 19 | 20 | ||
| 20 | SRC_URI[md5sum] = "2126fd125ea26b73b20f01fcd5940369" | 21 | SRC_URI[md5sum] = "2126fd125ea26b73b20f01fcd5940369" |
