SHARE
TWEET

Untitled

a guest Mar 14th, 2016 149 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/PKGBUILD b/PKGBUILD
  2. index 63104ce..537871e 100644
  3. --- a/PKGBUILD
  4. +++ b/PKGBUILD
  5. @@ -13,9 +13,19 @@ depends=('gnutls' 'openssl' 'libgcrypt' 'libplist-git' 'libusbmuxd-git')
  6.  makedepends=('git')
  7.  provides=('libiphone-git' 'libiphone' 'libimobiledevice')
  8.  conflicts=('libiphone-git' 'libiphone' 'libimobiledevice')
  9. -
  10. -source=("git://git.sukimashita.com/libimobiledevice.git")
  11. -sha512sums=('SKIP')
  12. +source=(
  13. +    "git://git.sukimashita.com/libimobiledevice.git"
  14. +    "ssl.patch"
  15. +)
  16. +sha512sums=(
  17. +    'SKIP'
  18. +    'b1aee96962d972ae107f3ec3b1124dbd226ff0b976b6b0d18c1f4afe523ab042747f10cb52109117e73e7e4ff883b1c63fb307a05d8f5f17ce9c5a2e05e6cfe5'
  19. +)
  20. +
  21. +prepare() {
  22. +    cd libimobiledevice
  23. +    patch -p0 -i $srcdir/ssl.patch
  24. +}
  25.  
  26.  pkgver() {
  27.     cd libimobiledevice
  28. diff --git a/ssl.patch b/ssl.patch
  29. new file mode 100644
  30. index 0000000..333a62b
  31. --- /dev/null
  32. +++ b/ssl.patch
  33. @@ -0,0 +1,13 @@
  34. +diff --git src/idevice.c src/idevice.c
  35. +index b776e84..2d44723 100644
  36. +--- src/idevice.c
  37. ++++ src/idevice.c
  38. +@@ -678,7 +678,7 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_connection_enable_ssl(idevice_conne
  39. +   }
  40. +   BIO_set_fd(ssl_bio, (int)(long)connection->data, BIO_NOCLOSE);
  41. +
  42. +-  SSL_CTX *ssl_ctx = SSL_CTX_new(SSLv3_method());
  43. ++  SSL_CTX *ssl_ctx = SSL_CTX_new(SSLv23_method());
  44. +   if (ssl_ctx == NULL) {
  45. +       debug_info("ERROR: Could not create SSL context.");
  46. +       BIO_free(ssl_bio);
  47. --
  48. 2.7.2
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top