Skip to content

Commit

Permalink
Revert "Fix SSL version negotiation with newer versions of OpenSSL"
Browse files Browse the repository at this point in the history
This reverts commit 6ce120c.
The change had the negative effect that connecting to older iOS devices wouldn't work anymore.
  • Loading branch information
nikias committed Jun 16, 2016
1 parent 6ce120c commit dc4c75d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/idevice.c
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,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(SSLv23_method());
SSL_CTX *ssl_ctx = SSL_CTX_new(SSLv3_method());
if (ssl_ctx == NULL) {
debug_info("ERROR: Could not create SSL context.");
BIO_free(ssl_bio);
Expand Down

0 comments on commit dc4c75d

Please sign in to comment.