diff options
| author | 2008-08-03 20:21:23 +0200 | |
|---|---|---|
| committer | 2008-08-05 23:28:10 -0700 | |
| commit | c58482a7dbb3978bacfb5ffd8085d915bcde297d (patch) | |
| tree | c7c42d6359e99f092a6db0066f460dafa367bfcd /src/userpref.h | |
| parent | b6ed54477c00e2b4572e898fe0a47aa64a028c26 (diff) | |
| download | libimobiledevice-c58482a7dbb3978bacfb5ffd8085d915bcde297d.tar.gz libimobiledevice-c58482a7dbb3978bacfb5ffd8085d915bcde297d.tar.bz2 | |
prepare config for pairing
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'src/userpref.h')
| -rw-r--r-- | src/userpref.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/userpref.h b/src/userpref.h index b097084..cef0bed 100644 --- a/src/userpref.h +++ b/src/userpref.h | |||
| @@ -29,4 +29,48 @@ | |||
| 29 | */ | 29 | */ |
| 30 | char* get_host_id(); | 30 | char* get_host_id(); |
| 31 | 31 | ||
| 32 | /** | ||
| 33 | * \fn int is_device_known(char* public_key) | ||
| 34 | * determine if we already paired this device. | ||
| 35 | * \return 1 if device is already paired. Returns 0 otherwise. | ||
| 36 | */ | ||
| 37 | int is_device_known(char* public_key); | ||
| 38 | |||
| 39 | /** | ||
| 40 | * \fn int store_device_public_key(char* public_key) | ||
| 41 | * \return 1 if everything went well. Returns 0 otherwise. | ||
| 42 | */ | ||
| 43 | int store_device_public_key(char* public_key); | ||
| 44 | |||
| 45 | /** | ||
| 46 | * \fn char* get_root_private_key() | ||
| 47 | * \return RootPrivateKey if exists. Returns NULL otherwise. | ||
| 48 | */ | ||
| 49 | char* get_root_private_key(); | ||
| 50 | |||
| 51 | /** | ||
| 52 | * \fn char* get_host_private_key() | ||
| 53 | * \return HostPrivateKey if exists. Returns NULL otherwise. | ||
| 54 | */ | ||
| 55 | char* get_host_private_key(); | ||
| 56 | |||
| 57 | /** | ||
| 58 | * \fn char* get_root_certificate() | ||
| 59 | * \return RootCertificate if exists. Returns NULL otherwise. | ||
| 60 | */ | ||
| 61 | char* get_root_certificate(); | ||
| 62 | |||
| 63 | /** | ||
| 64 | * \fn char* get_host_certificate() | ||
| 65 | * \return HostCertificate if exists. Returns NULL otherwise. | ||
| 66 | */ | ||
| 67 | char* get_host_certificate(); | ||
| 68 | |||
| 69 | /** | ||
| 70 | * \fn int init_config_file(char* host_id, char* root_private_key, char* host_private_key, char* root_cert, char* host_cert) | ||
| 71 | * setup a brand new config file. | ||
| 72 | * \return 1 if everything went well. Returns 0 otherwise. | ||
| 73 | */ | ||
| 74 | int init_config_file(char* host_id, char* root_private_key, char* host_private_key, char* root_cert, char* host_cert); | ||
| 32 | #endif | 75 | #endif |
| 76 | |||
