summaryrefslogtreecommitdiffstats
path: root/src/userpref.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/userpref.h')
-rw-r--r--src/userpref.h44
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*/
30char* get_host_id(); 30char* 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*/
37int 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*/
43int 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*/
49char* get_root_private_key();
50
51/**
52* \fn char* get_host_private_key()
53* \return HostPrivateKey if exists. Returns NULL otherwise.
54*/
55char* get_host_private_key();
56
57/**
58* \fn char* get_root_certificate()
59* \return RootCertificate if exists. Returns NULL otherwise.
60*/
61char* get_root_certificate();
62
63/**
64* \fn char* get_host_certificate()
65* \return HostCertificate if exists. Returns NULL otherwise.
66*/
67char* 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*/
74int 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