diff options
Diffstat (limited to 'src/userpref.h')
| -rw-r--r-- | src/userpref.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/userpref.h b/src/userpref.h index 553c5df..5171929 100644 --- a/src/userpref.h +++ b/src/userpref.h | |||
| @@ -28,44 +28,44 @@ | |||
| 28 | * | 28 | * |
| 29 | * @return the HostID if exist in config file. Returns NULL otherwise. | 29 | * @return the HostID if exist in config file. Returns NULL otherwise. |
| 30 | */ | 30 | */ |
| 31 | char* get_host_id(); | 31 | char *get_host_id(); |
| 32 | 32 | ||
| 33 | /** | 33 | /** |
| 34 | * Determine if we already paired this device. | 34 | * Determine if we already paired this device. |
| 35 | * | 35 | * |
| 36 | * @return 1 if device is already paired. Returns 0 otherwise. | 36 | * @return 1 if device is already paired. Returns 0 otherwise. |
| 37 | */ | 37 | */ |
| 38 | int is_device_known(char* uid); | 38 | int is_device_known(char *uid); |
| 39 | 39 | ||
| 40 | /** | 40 | /** |
| 41 | * @return 1 if everything went well. Returns 0 otherwise. | 41 | * @return 1 if everything went well. Returns 0 otherwise. |
| 42 | */ | 42 | */ |
| 43 | int store_device_public_key(char* uid, char* public_key); | 43 | int store_device_public_key(char *uid, char *public_key); |
| 44 | 44 | ||
| 45 | /** | 45 | /** |
| 46 | * @return 1 if everything went well. Returns 0 otherwise. | 46 | * @return 1 if everything went well. Returns 0 otherwise. |
| 47 | */ | 47 | */ |
| 48 | int get_root_private_key(gnutls_datum_t* root_privkey); | 48 | int get_root_private_key(gnutls_datum_t * root_privkey); |
| 49 | 49 | ||
| 50 | /** | 50 | /** |
| 51 | * @return 1 if everything went well. Returns 0 otherwise. | 51 | * @return 1 if everything went well. Returns 0 otherwise. |
| 52 | */ | 52 | */ |
| 53 | int get_host_private_key(gnutls_datum_t* host_privkey); | 53 | int get_host_private_key(gnutls_datum_t * host_privkey); |
| 54 | 54 | ||
| 55 | /** | 55 | /** |
| 56 | * @return 1 if everything went well. Returns 0 otherwise. | 56 | * @return 1 if everything went well. Returns 0 otherwise. |
| 57 | */ | 57 | */ |
| 58 | int get_root_certificate(gnutls_datum_t* root_cert); | 58 | int get_root_certificate(gnutls_datum_t * root_cert); |
| 59 | 59 | ||
| 60 | /** | 60 | /** |
| 61 | * @return 1 if everything went well. Returns 0 otherwise. | 61 | * @return 1 if everything went well. Returns 0 otherwise. |
| 62 | */ | 62 | */ |
| 63 | int get_host_certificate(gnutls_datum_t* host_cert); | 63 | int get_host_certificate(gnutls_datum_t * host_cert); |
| 64 | 64 | ||
| 65 | /** | 65 | /** |
| 66 | * Setup a brand new config file. | 66 | * Setup a brand new config file. |
| 67 | * @return 1 if everything went well. Returns 0 otherwise. | 67 | * @return 1 if everything went well. Returns 0 otherwise. |
| 68 | */ | 68 | */ |
| 69 | int init_config_file(char* host_id, gnutls_datum_t* root_key, gnutls_datum_t* host_key, gnutls_datum_t* root_cert, gnutls_datum_t* host_cert); | 69 | int init_config_file(char *host_id, gnutls_datum_t * root_key, gnutls_datum_t * host_key, gnutls_datum_t * root_cert, |
| 70 | gnutls_datum_t * host_cert); | ||
| 70 | #endif | 71 | #endif |
| 71 | |||
