diff options
author | Andrei Belov <defan@nginx.com> | 2021-03-25 17:32:53 +0300 |
---|---|---|
committer | Andrei Belov <defan@nginx.com> | 2021-03-25 17:32:53 +0300 |
commit | 83d2ce0ae884f73a111f9b1807d5393a150bf116 (patch) | |
tree | 2c483a9eae55233df4e308c5232734e03622cee0 /src/nxt_tls.h | |
parent | d2579d52b9583e5add0a71c6c7fb9f1b0c948a59 (diff) | |
parent | 3c969905bd6db6446b5213acb616e8c04ff546f4 (diff) | |
download | unit-83d2ce0ae884f73a111f9b1807d5393a150bf116.tar.gz unit-83d2ce0ae884f73a111f9b1807d5393a150bf116.tar.bz2 |
Merged with the default branch.1.23.0-1
Diffstat (limited to 'src/nxt_tls.h')
-rw-r--r-- | src/nxt_tls.h | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/src/nxt_tls.h b/src/nxt_tls.h index d9fcc6a8..c44bfe56 100644 --- a/src/nxt_tls.h +++ b/src/nxt_tls.h @@ -23,28 +23,47 @@ #define NXT_TLS_BUFFER_SIZE 4096 -typedef struct nxt_tls_conf_s nxt_tls_conf_t; - +typedef struct nxt_tls_conf_s nxt_tls_conf_t; +typedef struct nxt_tls_bundle_conf_s nxt_tls_bundle_conf_t; typedef struct { nxt_int_t (*library_init)(nxt_task_t *task); void (*library_free)(nxt_task_t *task); nxt_int_t (*server_init)(nxt_task_t *task, - nxt_tls_conf_t *conf); + nxt_tls_conf_t *conf, nxt_mp_t *mp, + nxt_bool_t last); void (*server_free)(nxt_task_t *task, nxt_tls_conf_t *conf); } nxt_tls_lib_t; -struct nxt_tls_conf_s { +typedef struct { + nxt_tls_bundle_conf_t *bundle; + + nxt_str_t name; +} nxt_tls_bundle_hash_item_t; + + +struct nxt_tls_bundle_conf_s { void *ctx; + + nxt_fd_t chain_file; + nxt_str_t *name; + + nxt_tls_bundle_conf_t *next; +}; + + +struct nxt_tls_conf_s { + nxt_tls_bundle_conf_t *bundle; + nxt_lvlhsh_t bundle_hash; + void (*conn_init)(nxt_task_t *task, nxt_tls_conf_t *conf, nxt_conn_t *c); const nxt_tls_lib_t *lib; - nxt_fd_t chain_file; char *ciphers; char *ca_certificate; |