diff options
author | Martin Willi <martin@revosec.ch> | 2012-07-06 14:34:11 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-07-16 14:53:37 +0200 |
commit | 27e1eabbb5c4beaedab832d6a7aceb49a86a3061 (patch) | |
tree | 25777ac4cb2ed40d08b71448eee497dec728052d /src/libstrongswan/plugins/xcbc/xcbc.c | |
parent | 76a98ee2a1578a7f1f95b63846cefffad9b1df63 (diff) | |
download | strongswan-27e1eabbb5c4beaedab832d6a7aceb49a86a3061.tar.bz2 strongswan-27e1eabbb5c4beaedab832d6a7aceb49a86a3061.tar.xz |
Add a return value to mac_t.get_bytes()
Diffstat (limited to 'src/libstrongswan/plugins/xcbc/xcbc.c')
-rw-r--r-- | src/libstrongswan/plugins/xcbc/xcbc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstrongswan/plugins/xcbc/xcbc.c b/src/libstrongswan/plugins/xcbc/xcbc.c index 59655cb1f..776f15109 100644 --- a/src/libstrongswan/plugins/xcbc/xcbc.c +++ b/src/libstrongswan/plugins/xcbc/xcbc.c @@ -179,7 +179,7 @@ static void final(private_mac_t *this, u_int8_t *out) this->zero = TRUE; } -METHOD(mac_t, get_mac, void, +METHOD(mac_t, get_mac, bool, private_mac_t *this, chunk_t data, u_int8_t *out) { /* update E, do not process last block */ @@ -189,6 +189,7 @@ METHOD(mac_t, get_mac, void, { /* if not in append mode, process last block and output result */ final(this, out); } + return TRUE; } METHOD(mac_t, get_mac_size, size_t, @@ -350,4 +351,4 @@ signer_t *xcbc_signer_create(integrity_algorithm_t algo) return mac_signer_create(xcbc, trunc); } return NULL; -}
\ No newline at end of file +} |