1 2 /* 3 * Copyright (C) Valentin V. Bartenev 4 * Copyright (C) NGINX, Inc. 5 */ 6 7 #ifndef _NXT_CERT_INCLUDED_ 8 #define _NXT_CERT_INCLUDED_ 9 10 11 typedef struct nxt_cert_s nxt_cert_t; 12 13 nxt_cert_t *nxt_cert_mem(nxt_task_t *task, nxt_buf_mem_t *mbuf); 14 void nxt_cert_destroy(nxt_cert_t *cert); 15 16 void nxt_cert_info_init(nxt_task_t *task, nxt_array_t *certs); 17 nxt_int_t nxt_cert_info_save(nxt_str_t *name, nxt_cert_t *cert); 18 nxt_conf_value_t *nxt_cert_info_get(nxt_str_t *name); 19 nxt_conf_value_t *nxt_cert_info_get_all(nxt_mp_t *mp); 20 nxt_int_t nxt_cert_info_delete(nxt_str_t *name); 21 22 nxt_array_t *nxt_cert_store_load(nxt_task_t *task, nxt_mp_t *mem_pool); 23 void nxt_cert_store_release(nxt_array_t *certs); 24 25 void nxt_cert_store_get(nxt_task_t *task, nxt_str_t *name, nxt_mp_t *mp, 26 nxt_port_rpc_handler_t handler, void *ctx); 27 void nxt_cert_store_delete(nxt_task_t *task, nxt_str_t *name, nxt_mp_t *mp); 28 29 void nxt_cert_store_get_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg); 30 void nxt_cert_store_delete_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg); 31 32 #endif /* _NXT_CERT_INCLUDED_ */ 33