dav/config.h

changeset 40
a95ee94b9204
parent 38
b855f76e965b
child 43
03076907b58a
equal deleted inserted replaced
39:3e55bed345f9 40:a95ee94b9204
29 #ifndef CONFIG_H 29 #ifndef CONFIG_H
30 #define CONFIG_H 30 #define CONFIG_H
31 31
32 #include <ucx/string.h> 32 #include <ucx/string.h>
33 #include <stdbool.h> 33 #include <stdbool.h>
34 #include <libidav/webdav.h>
34 35
35 #ifdef __cplusplus 36 #ifdef __cplusplus
36 extern "C" { 37 extern "C" {
37 #endif 38 #endif
38 39
39 typedef struct Repository Repository; 40 typedef struct Repository Repository;
40 typedef struct Key Key; 41 typedef struct DavKey Key;
41 typedef struct Proxy Proxy; 42 typedef struct Proxy Proxy;
42 43
43 #define HTTP_PROXY 1 44 #define HTTP_PROXY 1
44 #define HTTPS_PROXY 2 45 #define HTTPS_PROXY 2
45 46
60 bool encrypt; 61 bool encrypt;
61 bool decrypt; 62 bool decrypt;
62 bool store_key_property; 63 bool store_key_property;
63 }; 64 };
64 65
65 struct Key {
66 char *name;
67 KeyType type;
68 void *data;
69 size_t length;
70 };
71
72 struct Proxy { 66 struct Proxy {
73 char *url; 67 char *url;
74 char *user; 68 char *user;
75 char *password; 69 char *password;
76 char *no; 70 char *no;
77 }; 71 };
78 72
79 void load_config(); 73 void load_config(DavContext *ctx);
80 void load_repository(xmlNode *reponode); 74 void load_repository(xmlNode *reponode);
81 void load_key(xmlNode *keynode); 75 void load_key(xmlNode *keynode);
82 void load_proxy(xmlNode *proxynode, int type); 76 void load_proxy(xmlNode *proxynode, int type);
83 sstr_t load_key_file(char *filename); 77 sstr_t load_key_file(char *filename);
84 78

mercurial