xref: /unit/src/nxt_cert.h (revision 1488)
1774Svbart@nginx.com 
2774Svbart@nginx.com /*
3774Svbart@nginx.com  * Copyright (C) Valentin V. Bartenev
4774Svbart@nginx.com  * Copyright (C) NGINX, Inc.
5774Svbart@nginx.com  */
6774Svbart@nginx.com 
7774Svbart@nginx.com #ifndef _NXT_CERT_INCLUDED_
8774Svbart@nginx.com #define _NXT_CERT_INCLUDED_
9774Svbart@nginx.com 
10774Svbart@nginx.com 
11774Svbart@nginx.com typedef struct nxt_cert_s  nxt_cert_t;
12774Svbart@nginx.com 
13774Svbart@nginx.com nxt_cert_t *nxt_cert_mem(nxt_task_t *task, nxt_buf_mem_t *mbuf);
14774Svbart@nginx.com void nxt_cert_destroy(nxt_cert_t *cert);
15774Svbart@nginx.com 
16774Svbart@nginx.com void nxt_cert_info_init(nxt_task_t *task, nxt_array_t *certs);
17774Svbart@nginx.com nxt_int_t nxt_cert_info_save(nxt_str_t *name, nxt_cert_t *cert);
18774Svbart@nginx.com nxt_conf_value_t *nxt_cert_info_get(nxt_str_t *name);
19774Svbart@nginx.com nxt_conf_value_t *nxt_cert_info_get_all(nxt_mp_t *mp);
20774Svbart@nginx.com nxt_int_t nxt_cert_info_delete(nxt_str_t *name);
21774Svbart@nginx.com 
22*1488St.nateldemoura@f5.com nxt_array_t *nxt_cert_store_load(nxt_task_t *task, nxt_mp_t *mem_pool);
23774Svbart@nginx.com void nxt_cert_store_release(nxt_array_t *certs);
24774Svbart@nginx.com 
25774Svbart@nginx.com void nxt_cert_store_get(nxt_task_t *task, nxt_str_t *name, nxt_mp_t *mp,
26774Svbart@nginx.com     nxt_port_rpc_handler_t handler, void *ctx);
27774Svbart@nginx.com void nxt_cert_store_delete(nxt_task_t *task, nxt_str_t *name, nxt_mp_t *mp);
28774Svbart@nginx.com 
29774Svbart@nginx.com void nxt_cert_store_get_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg);
30774Svbart@nginx.com void nxt_cert_store_delete_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg);
31774Svbart@nginx.com 
32774Svbart@nginx.com #endif /* _NXT_CERT_INCLUDED_ */
33