nghttpx: Fix hmac_keylen should be 16 for aes-128-cbc
This commit is contained in:
parent
b406d2da9e
commit
b384b76f66
|
@ -775,7 +775,7 @@ void memcached_get_ticket_key_cb(struct ev_loop *loop, ev_timer *w,
|
||||||
auto key = TicketKey();
|
auto key = TicketKey();
|
||||||
key.cipher = get_config()->tls_ticket_key_cipher;
|
key.cipher = get_config()->tls_ticket_key_cipher;
|
||||||
key.hmac = EVP_sha256();
|
key.hmac = EVP_sha256();
|
||||||
key.hmac_keylen = EVP_MD_size(key.hmac);
|
key.hmac_keylen = hmac_keylen;
|
||||||
|
|
||||||
std::copy_n(p, key.data.name.size(), key.data.name.data());
|
std::copy_n(p, key.data.name.size(), key.data.name.data());
|
||||||
p += key.data.name.size();
|
p += key.data.name.size();
|
||||||
|
|
Loading…
Reference in New Issue