summaryrefslogtreecommitdiffstats
path: root/src/userpref.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/userpref.h')
-rw-r--r--src/userpref.h18
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 */
31char* get_host_id(); 31char *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 */
38int is_device_known(char* uid); 38int 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 */
43int store_device_public_key(char* uid, char* public_key); 43int 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 */
48int get_root_private_key(gnutls_datum_t* root_privkey); 48int 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 */
53int get_host_private_key(gnutls_datum_t* host_privkey); 53int 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 */
58int get_root_certificate(gnutls_datum_t* root_cert); 58int 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 */
63int get_host_certificate(gnutls_datum_t* host_cert); 63int 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 */
69int 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); 69int 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