summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-09-06 01:19:12 +0200
committerGravatar Martin Szulecki2013-09-17 11:43:34 +0200
commit49eb72122d3d95f6aa80f6b17c393d75fd6077bc (patch)
tree78b8459804c14ca1545dbbc7689f94e11c7c8669 /src
parent55869758d72338696139806f32cee696848f9875 (diff)
downloadlibimobiledevice-49eb72122d3d95f6aa80f6b17c393d75fd6077bc.tar.gz
libimobiledevice-49eb72122d3d95f6aa80f6b17c393d75fd6077bc.tar.bz2
Fix broken build of GnuTLS and silence two compiler warnings
Diffstat (limited to 'src')
-rw-r--r--src/idevice.c2
-rw-r--r--src/lockdown.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/idevice.c b/src/idevice.c
index 4a6f544..f35c666 100644
--- a/src/idevice.c
+++ b/src/idevice.c
@@ -758,7 +758,7 @@ idevice_error_t idevice_connection_enable_ssl(idevice_connection_t connection)
gnutls_x509_privkey_init(&ssl_data_loc->root_privkey);
gnutls_x509_privkey_init(&ssl_data_loc->host_privkey);
- userpref_error_t uerr = userpref_get_keys_and_certs(ssl_data_loc->root_privkey, ssl_data_loc->root_cert, ssl_data_loc->host_privkey, ssl_data_loc->host_cert);
+ userpref_error_t uerr = userpref_device_record_get_keys_and_certs(connection->udid, ssl_data_loc->root_privkey, ssl_data_loc->root_cert, ssl_data_loc->host_privkey, ssl_data_loc->host_cert);
if (uerr != USERPREF_E_SUCCESS) {
debug_info("Error %d when loading keys and certificates! %d", uerr);
}
diff --git a/src/lockdown.c b/src/lockdown.c
index c7a3c0d..a8f3e1e 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -1473,7 +1473,7 @@ lockdownd_error_t lockdownd_gen_pair_cert_for_udid(const char *udid, key_data_t
gnutls_x509_privkey_init(&root_privkey);
gnutls_x509_privkey_init(&host_privkey);
- uret = userpref_get_keys_and_certs(root_privkey, root_cert, host_privkey, host_cert);
+ uret = userpref_device_record_get_keys_and_certs(udid, root_privkey, root_cert, host_privkey, host_cert);
if (USERPREF_E_SUCCESS == uret) {
/* generate device certificate */
@@ -1497,7 +1497,7 @@ lockdownd_error_t lockdownd_gen_pair_cert_for_udid(const char *udid, key_data_t
gnutls_datum_t pem_root_cert = { NULL, 0 };
gnutls_datum_t pem_host_cert = { NULL, 0 };
- uret = userpref_get_certs_as_pem(&pem_root_cert, &pem_host_cert);
+ uret = userpref_device_record_get_certs_as_pem(udid, &pem_root_cert, &pem_host_cert);
if (USERPREF_E_SUCCESS == uret) {
/* copy buffer for output */