diff options
author | Martin Willi <martin@revosec.ch> | 2012-07-06 14:40:04 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-07-16 14:53:37 +0200 |
commit | 6ac8d861d9a6353bae7f3be0a032da282ee13309 (patch) | |
tree | 28e1e56191151f5f636013699eaddf333713c9f1 /src/libstrongswan/plugins/hmac/hmac.c | |
parent | 27e1eabbb5c4beaedab832d6a7aceb49a86a3061 (diff) | |
download | strongswan-6ac8d861d9a6353bae7f3be0a032da282ee13309.tar.bz2 strongswan-6ac8d861d9a6353bae7f3be0a032da282ee13309.tar.xz |
Add a return value to mac_t.set_key()
Diffstat (limited to 'src/libstrongswan/plugins/hmac/hmac.c')
-rw-r--r-- | src/libstrongswan/plugins/hmac/hmac.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/hmac/hmac.c b/src/libstrongswan/plugins/hmac/hmac.c index 85ad31776..4f1226505 100644 --- a/src/libstrongswan/plugins/hmac/hmac.c +++ b/src/libstrongswan/plugins/hmac/hmac.c @@ -99,7 +99,7 @@ METHOD(mac_t, get_mac_size, size_t, return this->h->get_hash_size(this->h); } -METHOD(mac_t, set_key, void, +METHOD(mac_t, set_key, bool, private_mac_t *this, chunk_t key) { int i; @@ -128,6 +128,8 @@ METHOD(mac_t, set_key, void, /* begin hashing of inner pad */ this->h->reset(this->h); this->h->get_hash(this->h, this->ipaded_key, NULL); + + return TRUE; } METHOD(mac_t, destroy, void, |