1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

comms/libimobiledevice: Handle missing SSLv3 case

Approved by:	SSL blanket
This commit is contained in:
John Marino 2016-09-09 22:22:43 +00:00
parent be88cafb1e
commit 73b9b079f7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=421640
2 changed files with 12 additions and 2 deletions

View File

@ -13,8 +13,7 @@ LICENSE?= LGPL21
SLAVE_PORT?= no
USES+= cpe libtool pathfix pkgconfig tar:bzip2
USE_OPENSSL= yes
USES+= cpe libtool pathfix pkgconfig ssl tar:bzip2
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=openssl_CFLAGS="-I${OPENSSLINC}" \
openssl_LIBS="-L${OPENSSLLIB} -lssl -lcrypto"

View File

@ -0,0 +1,11 @@
--- src/idevice.c.orig 2015-01-28 01:10:32 UTC
+++ src/idevice.c
@@ -678,7 +678,7 @@ LIBIMOBILEDEVICE_API idevice_error_t ide
}
BIO_set_fd(ssl_bio, (int)(long)connection->data, BIO_NOCLOSE);
- SSL_CTX *ssl_ctx = SSL_CTX_new(SSLv3_method());
+ SSL_CTX *ssl_ctx = SSL_CTX_new(SSLv23_method());
if (ssl_ctx == NULL) {
debug_info("ERROR: Could not create SSL context.");
BIO_free(ssl_bio);