Commit b384b76f authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

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

parent b406d2da
......@@ -775,7 +775,7 @@ void memcached_get_ticket_key_cb(struct ev_loop *loop, ev_timer *w,
auto key = TicketKey();
key.cipher = get_config()->tls_ticket_key_cipher;
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());
p += key.data.name.size();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment