summaryrefslogtreecommitdiffstats
path: root/src/userpref.h
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-08-03 20:21:23 +0200
committerGravatar Matt Colyer2008-08-05 23:28:10 -0700
commitc58482a7dbb3978bacfb5ffd8085d915bcde297d (patch)
treec7c42d6359e99f092a6db0066f460dafa367bfcd /src/userpref.h
parentb6ed54477c00e2b4572e898fe0a47aa64a028c26 (diff)
downloadlibplist-c58482a7dbb3978bacfb5ffd8085d915bcde297d.tar.gz
libplist-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.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 @@
*/
char* get_host_id();
+/**
+* \fn int is_device_known(char* public_key)
+* determine if we already paired this device.
+* \return 1 if device is already paired. Returns 0 otherwise.
+*/
+int is_device_known(char* public_key);
+
+/**
+* \fn int store_device_public_key(char* public_key)
+* \return 1 if everything went well. Returns 0 otherwise.
+*/
+int store_device_public_key(char* public_key);
+
+/**
+* \fn char* get_root_private_key()
+* \return RootPrivateKey if exists. Returns NULL otherwise.
+*/
+char* get_root_private_key();
+
+/**
+* \fn char* get_host_private_key()
+* \return HostPrivateKey if exists. Returns NULL otherwise.
+*/
+char* get_host_private_key();
+
+/**
+* \fn char* get_root_certificate()
+* \return RootCertificate if exists. Returns NULL otherwise.
+*/
+char* get_root_certificate();
+
+/**
+* \fn char* get_host_certificate()
+* \return HostCertificate if exists. Returns NULL otherwise.
+*/
+char* get_host_certificate();
+
+/**
+* \fn int init_config_file(char* host_id, char* root_private_key, char* host_private_key, char* root_cert, char* host_cert)
+* setup a brand new config file.
+* \return 1 if everything went well. Returns 0 otherwise.
+*/
+int init_config_file(char* host_id, char* root_private_key, char* host_private_key, char* root_cert, char* host_cert);
#endif
+