Lines Matching refs:dir_res
72 {"name", store_name, ITEM(dir_res.hdr.name), 0, ITEM_REQUIRED, 0},
73 {"description", store_str, ITEM(dir_res.hdr.desc), 0, 0, 0},
74 {"dirport", store_pint32, ITEM(dir_res.DIRport), 0, ITEM_DEFAULT, 9101},
75 {"address", store_str, ITEM(dir_res.address), 0, ITEM_REQUIRED, 0},
76 {"password", store_password, ITEM(dir_res.password), 0, 0, 0},
77 {"tlsauthenticate",store_bool, ITEM(dir_res.tls_authenticate), 0, 0, 0},
78 {"tlsenable", store_bool, ITEM(dir_res.tls_enable), 0, 0, 0},
79 {"tlsrequire", store_bool, ITEM(dir_res.tls_require), 0, 0, 0},
80 {"tlscacertificatefile", store_dir, ITEM(dir_res.tls_ca_certfile), 0, 0, 0},
81 {"tlscacertificatedir", store_dir, ITEM(dir_res.tls_ca_certdir), 0, 0, 0},
82 {"tlscertificate", store_dir, ITEM(dir_res.tls_certfile), 0, 0, 0},
83 {"tlskey", store_dir, ITEM(dir_res.tls_keyfile), 0, 0, 0},
84 {"heartbeatinterval", store_time, ITEM(dir_res.heartbeat_interval), 0, ITEM_DEFAULT, 5 * 60},
143 res->dir_res.address, res->dir_res.DIRport); in dump_resource()
178 if (res->dir_res.hdr.name) { in free_resource()
179 free(res->dir_res.hdr.name); in free_resource()
181 if (res->dir_res.hdr.desc) { in free_resource()
182 free(res->dir_res.hdr.desc); in free_resource()
187 if (res->dir_res.address) { in free_resource()
188 free(res->dir_res.address); in free_resource()
190 if (res->dir_res.tls_ctx) { in free_resource()
191 free_tls_context(res->dir_res.tls_ctx); in free_resource()
193 if (res->dir_res.tls_ca_certfile) { in free_resource()
194 free(res->dir_res.tls_ca_certfile); in free_resource()
196 if (res->dir_res.tls_ca_certdir) { in free_resource()
197 free(res->dir_res.tls_ca_certdir); in free_resource()
199 if (res->dir_res.tls_certfile) { in free_resource()
200 free(res->dir_res.tls_certfile); in free_resource()
202 if (res->dir_res.tls_keyfile) { in free_resource()
203 free(res->dir_res.tls_keyfile); in free_resource()
258 if (!bit_is_set(i, res_all.dir_res.hdr.item_present)) { in save_resource()
289 if (res_all.dir_res.hdr.name) { in save_resource()
290 free(res_all.dir_res.hdr.name); in save_resource()
291 res_all.dir_res.hdr.name = NULL; in save_resource()
293 if (res_all.dir_res.hdr.desc) { in save_resource()
294 free(res_all.dir_res.hdr.desc); in save_resource()
295 res_all.dir_res.hdr.desc = NULL; in save_resource()