Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/PKGBUILD b/PKGBUILD
- index 63104ce..537871e 100644
- --- a/PKGBUILD
- +++ b/PKGBUILD
- @@ -13,9 +13,19 @@ depends=('gnutls' 'openssl' 'libgcrypt' 'libplist-git' 'libusbmuxd-git')
- makedepends=('git')
- provides=('libiphone-git' 'libiphone' 'libimobiledevice')
- conflicts=('libiphone-git' 'libiphone' 'libimobiledevice')
- -
- -source=("git://git.sukimashita.com/libimobiledevice.git")
- -sha512sums=('SKIP')
- +source=(
- + "git://git.sukimashita.com/libimobiledevice.git"
- + "ssl.patch"
- +)
- +sha512sums=(
- + 'SKIP'
- + 'b1aee96962d972ae107f3ec3b1124dbd226ff0b976b6b0d18c1f4afe523ab042747f10cb52109117e73e7e4ff883b1c63fb307a05d8f5f17ce9c5a2e05e6cfe5'
- +)
- +
- +prepare() {
- + cd libimobiledevice
- + patch -p0 -i $srcdir/ssl.patch
- +}
- pkgver() {
- cd libimobiledevice
- diff --git a/ssl.patch b/ssl.patch
- new file mode 100644
- index 0000000..333a62b
- --- /dev/null
- +++ b/ssl.patch
- @@ -0,0 +1,13 @@
- +diff --git src/idevice.c src/idevice.c
- +index b776e84..2d44723 100644
- +--- src/idevice.c
- ++++ src/idevice.c
- +@@ -678,7 +678,7 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_connection_enable_ssl(idevice_conne
- + }
- + 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);
- --
- 2.7.2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement