nghttpx: Fix hmac_keylen should be 16 for aes-128-cbc

This commit is contained in:
Tatsuhiro Tsujikawa 2015-08-12 00:38:07 +09:00
parent b406d2da9e
commit b384b76f66
1 changed files with 1 additions and 1 deletions

View File

@ -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();