diff options
author | Martin Willi <martin@revosec.ch> | 2015-03-30 10:25:41 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2015-04-13 14:52:30 +0200 |
commit | c2906c8f21af7555e0f786b6474cf4c7dc0c7651 (patch) | |
tree | 7d6ab93bb38fa0201aa771e56c1a0334fc3b903e /src/libipsec/esp_context.c | |
parent | 7394ad92aeeb12316fa3710d3ac2138d7cee7c6c (diff) | |
download | strongswan-c2906c8f21af7555e0f786b6474cf4c7dc0c7651.tar.bz2 strongswan-c2906c8f21af7555e0f786b6474cf4c7dc0c7651.tar.xz |
openssl: Don't pre-initialize OpenSSL HMAC with an empty key
With OpenSSL commit 929b0d70c19f60227f89fac63f22a21f21950823 setting an empty
key fails if no previous key has been set on that HMAC.
In 9138f49e we explicitly added the check we remove now, as HMAC_Update()
might crash if HMAC_Init_ex() has not been called yet. To avoid that, we
set and check a flag locally to let any get_mac() call fail if set_key() has
not yet been called.
Diffstat (limited to 'src/libipsec/esp_context.c')
0 files changed, 0 insertions, 0 deletions