TLS: refactored nxt_tls_ticket_key_callback().

Deduplicated code and improved style.
No functional changes.
This commit is contained in:
Valentin Bartenev
2021-08-25 10:33:32 +03:00
parent f50b07c21d
commit dbc5a742fd
2 changed files with 54 additions and 77 deletions

View File

@@ -92,20 +92,6 @@ struct nxt_tls_init_s {
};
struct nxt_tls_ticket_s {
uint8_t aes128;
u_char name[16];
u_char hmac_key[32];
u_char aes_key[32];
};
struct nxt_tls_tickets_s {
nxt_uint_t count;
nxt_tls_ticket_t tickets[];
};
#if (NXT_HAVE_OPENSSL)
extern const nxt_tls_lib_t nxt_openssl_lib;