diff options
author | Martin Szulecki | 2014-03-21 02:28:16 +0100 |
---|---|---|
committer | Martin Szulecki | 2014-03-21 02:28:16 +0100 |
commit | dd981981c2b262e8939dd96dbcb93c5d1c520622 (patch) | |
tree | 7a400b6c3f227cb50952633e3eb3a45a84eaa25f /src | |
parent | dbf8c6a2553b4476e0d0682ce5854b6c14f0b4ff (diff) | |
download | libimobiledevice-dd981981c2b262e8939dd96dbcb93c5d1c520622.tar.gz libimobiledevice-dd981981c2b262e8939dd96dbcb93c5d1c520622.tar.bz2 |
idevice: Use correct import helper for keys and certs
Diffstat (limited to 'src')
-rw-r--r-- | src/idevice.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/idevice.c b/src/idevice.c index c656517..065d55c 100644 --- a/src/idevice.c +++ b/src/idevice.c @@ -685,7 +685,7 @@ idevice_error_t idevice_connection_enable_ssl(idevice_connection_t connection) key_data_t root_cert = { NULL, 0 }; key_data_t root_privkey = { NULL, 0 }; - pair_record_import_key_with_name(pair_record, USERPREF_ROOT_CERTIFICATE_KEY, &root_cert); + pair_record_import_crt_with_name(pair_record, USERPREF_ROOT_CERTIFICATE_KEY, &root_cert); pair_record_import_key_with_name(pair_record, USERPREF_ROOT_PRIVATE_KEY_KEY, &root_privkey); /* Set up OpenSSL */ @@ -772,8 +772,8 @@ 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); - pair_record_import_key_with_name(pair_record, USERPREF_ROOT_CERTIFICATE_KEY, ssl_data_loc->root_cert); - pair_record_import_key_with_name(pair_record, USERPREF_HOST_CERTIFICATE_KEY, ssl_data_loc->host_cert); + pair_record_import_crt_with_name(pair_record, USERPREF_ROOT_CERTIFICATE_KEY, ssl_data_loc->root_cert); + pair_record_import_crt_with_name(pair_record, USERPREF_HOST_CERTIFICATE_KEY, ssl_data_loc->host_cert); pair_record_import_key_with_name(pair_record, USERPREF_ROOT_PRIVATE_KEY_KEY, ssl_data_loc->root_privkey); pair_record_import_key_with_name(pair_record, USERPREF_HOST_PRIVATE_KEY_KEY, ssl_data_loc->host_privkey); |