Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 434016 Details for
Bug 582758
app-pda/libimobiledevice (all version) does not build against >=net-libs/gnutls-3.4.0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for idevice.c
idevice.patch (text/plain), 2.01 KB, created by
Markus Strobl
on 2016-05-12 01:36:02 UTC
(
hide
)
Description:
Patch for idevice.c
Filename:
MIME Type:
Creator:
Markus Strobl
Created:
2016-05-12 01:36:02 UTC
Size:
2.01 KB
patch
obsolete
>--- src/idevice.c 2015-01-27 19:10:32.000000000 -0600 >+++ src/idevice.c_new 2016-05-11 20:18:07.957990190 -0500 >@@ -626,7 +626,11 @@ > /** > * Internally used gnutls callback function that gets called during handshake. > */ >+#if GNUTLS_VERSION_NUMBER >= 0x020b07 >+static int internal_cert_callback(gnutls_session_t session, const gnutls_datum_t * req_ca_rdn, int nreqs, const gnutls_pk_algorithm_t * sign_algos, int sign_algos_length, gnutls_retr2_st * st) >+#else > static int internal_cert_callback(gnutls_session_t session, const gnutls_datum_t * req_ca_rdn, int nreqs, const gnutls_pk_algorithm_t * sign_algos, int sign_algos_length, gnutls_retr_st * st) >+#endif > { > int res = -1; > gnutls_certificate_type_t type = gnutls_certificate_type_get(session); >@@ -634,8 +638,13 @@ > ssl_data_t ssl_data = (ssl_data_t)gnutls_session_get_ptr(session); > if (ssl_data && ssl_data->host_privkey && ssl_data->host_cert) { > debug_info("Passing certificate"); >+#if GNUTLS_VERSION_NUMBER >= 0x020b07 >+ st->cert_type = type; >+ st->key_type = GNUTLS_PRIVKEY_X509; >+#else > st->type = type; >- st->ncerts = 1; >+#endif >+ st->ncerts = 1; > st->cert.x509 = &ssl_data->host_cert; > st->key.x509 = ssl_data->host_privkey; > st->deinit_all = 0; >@@ -743,7 +752,11 @@ > debug_info("enabling SSL mode"); > errno = 0; > gnutls_certificate_allocate_credentials(&ssl_data_loc->certificate); >- gnutls_certificate_client_set_retrieve_function(ssl_data_loc->certificate, internal_cert_callback); >+#if GNUTLS_VERSION_NUMBER >= 0x020b07 >+ gnutls_certificate_set_retrieve_function(ssl_data_loc->certificate, internal_cert_callback); >+#else >+ gnutls_certificate_client_set_retrieve_function(ssl_data_loc->certificate, internal_cert_callback); >+#endif > gnutls_init(&ssl_data_loc->session, GNUTLS_CLIENT); > gnutls_priority_set_direct(ssl_data_loc->session, "NONE:+VERS-SSL3.0:+ANON-DH:+RSA:+AES-128-CBC:+AES-256-CBC:+SHA1:+MD5:+COMP-NULL", NULL); > gnutls_credentials_set(ssl_data_loc->session, GNUTLS_CRD_CERTIFICATE, ssl_data_loc->certificate);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 582758
:
433968
| 434016