summaryrefslogtreecommitdiffstats
path: root/common/userpref.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-07-27 03:36:45 +0200
committerGravatar Nikias Bassen2021-07-27 03:36:45 +0200
commitab1c815340afc2883c9ef08795eebd9bed1858c5 (patch)
treea188e92dfdff14e501bf42b5d880155468cffbdd /common/userpref.h
parent19eca85f90d9950596e1c6021d7b0f89407f5d7f (diff)
downloadlibimobiledevice-ab1c815340afc2883c9ef08795eebd9bed1858c5.tar.gz
libimobiledevice-ab1c815340afc2883c9ef08795eebd9bed1858c5.tar.bz2
Add support for MbedTLS
Diffstat (limited to 'common/userpref.h')
-rw-r--r--common/userpref.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/userpref.h b/common/userpref.h
index 4ea630f..072721a 100644
--- a/common/userpref.h
+++ b/common/userpref.h
@@ -27,7 +27,7 @@
27#include <config.h> 27#include <config.h>
28#endif 28#endif
29 29
30#ifdef HAVE_OPENSSL 30#if defined(HAVE_OPENSSL) || defined(HAVE_MBEDTLS)
31typedef struct { 31typedef struct {
32 unsigned char *data; 32 unsigned char *data;
33 unsigned int size; 33 unsigned int size;
@@ -68,7 +68,7 @@ userpref_error_t userpref_save_pair_record(const char *udid, uint32_t device_id,
68userpref_error_t userpref_delete_pair_record(const char *udid); 68userpref_error_t userpref_delete_pair_record(const char *udid);
69 69
70userpref_error_t pair_record_generate_keys_and_certs(plist_t pair_record, key_data_t public_key); 70userpref_error_t pair_record_generate_keys_and_certs(plist_t pair_record, key_data_t public_key);
71#ifdef HAVE_OPENSSL 71#if defined(HAVE_OPENSSL) || defined(HAVE_MBEDTLS)
72userpref_error_t pair_record_import_key_with_name(plist_t pair_record, const char* name, key_data_t* key); 72userpref_error_t pair_record_import_key_with_name(plist_t pair_record, const char* name, key_data_t* key);
73userpref_error_t pair_record_import_crt_with_name(plist_t pair_record, const char* name, key_data_t* cert); 73userpref_error_t pair_record_import_crt_with_name(plist_t pair_record, const char* name, key_data_t* cert);
74#else 74#else