nxt_tls.h (1885:09b857a2cca9) nxt_tls.h (1920:7c19530e2502)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#ifndef _NXT_TLS_H_INCLUDED_
8#define _NXT_TLS_H_INCLUDED_

--- 14 unchanged lines hidden (view full) ---

23 * and compatible with tunnels.
24 */
25
26#define NXT_TLS_BUFFER_SIZE 4096
27
28
29typedef struct nxt_tls_conf_s nxt_tls_conf_t;
30typedef struct nxt_tls_bundle_conf_s nxt_tls_bundle_conf_t;
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#ifndef _NXT_TLS_H_INCLUDED_
8#define _NXT_TLS_H_INCLUDED_

--- 14 unchanged lines hidden (view full) ---

23 * and compatible with tunnels.
24 */
25
26#define NXT_TLS_BUFFER_SIZE 4096
27
28
29typedef struct nxt_tls_conf_s nxt_tls_conf_t;
30typedef struct nxt_tls_bundle_conf_s nxt_tls_bundle_conf_t;
31typedef struct nxt_tls_init_s nxt_tls_init_t;
31
32typedef struct {
33 nxt_int_t (*library_init)(nxt_task_t *task);
34 void (*library_free)(nxt_task_t *task);
35
32
33typedef struct {
34 nxt_int_t (*library_init)(nxt_task_t *task);
35 void (*library_free)(nxt_task_t *task);
36
36 nxt_int_t (*server_init)(nxt_task_t *task,
37 nxt_tls_conf_t *conf, nxt_mp_t *mp,
38 nxt_conf_value_t *conf_cmds,
37 nxt_int_t (*server_init)(nxt_task_t *task, nxt_mp_t *mp,
38 nxt_tls_init_t *tls_init,
39 nxt_bool_t last);
40 void (*server_free)(nxt_task_t *task,
41 nxt_tls_conf_t *conf);
42} nxt_tls_lib_t;
43
44
45typedef struct {
46 nxt_tls_bundle_conf_t *bundle;

--- 26 unchanged lines hidden (view full) ---

73 char *ca_certificate;
74
75 size_t buffer_size;
76
77 uint8_t no_wait_shutdown; /* 1 bit */
78};
79
80
39 nxt_bool_t last);
40 void (*server_free)(nxt_task_t *task,
41 nxt_tls_conf_t *conf);
42} nxt_tls_lib_t;
43
44
45typedef struct {
46 nxt_tls_bundle_conf_t *bundle;

--- 26 unchanged lines hidden (view full) ---

73 char *ca_certificate;
74
75 size_t buffer_size;
76
77 uint8_t no_wait_shutdown; /* 1 bit */
78};
79
80
81struct nxt_tls_init_s {
82 size_t cache_size;
83 nxt_time_t timeout;
84 nxt_conf_value_t *conf_cmds;
85
86 nxt_tls_conf_t *conf;
87};
88
89
81#if (NXT_HAVE_OPENSSL)
82extern const nxt_tls_lib_t nxt_openssl_lib;
83
84void nxt_cdecl nxt_openssl_log_error(nxt_task_t *task, nxt_uint_t level,
85 const char *fmt, ...);
86u_char *nxt_openssl_copy_error(u_char *p, u_char *end);
87#endif
88

--- 14 unchanged lines hidden ---
90#if (NXT_HAVE_OPENSSL)
91extern const nxt_tls_lib_t nxt_openssl_lib;
92
93void nxt_cdecl nxt_openssl_log_error(nxt_task_t *task, nxt_uint_t level,
94 const char *fmt, ...);
95u_char *nxt_openssl_copy_error(u_char *p, u_char *end);
96#endif
97

--- 14 unchanged lines hidden ---