diff options
author | Martin Willi <martin@revosec.ch> | 2012-07-09 17:15:52 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-07-16 14:55:06 +0200 |
commit | 87dd205b61ae8c0125b459959fcc7349fa27bb74 (patch) | |
tree | a6c138a105bf40ce5a4b1b60047ed3a76cbe22ca /src/libstrongswan/plugins/openssl/openssl_hasher.c | |
parent | e185612dd8011ca4f3de460640f74e6a652cbf32 (diff) | |
download | strongswan-87dd205b61ae8c0125b459959fcc7349fa27bb74.tar.bz2 strongswan-87dd205b61ae8c0125b459959fcc7349fa27bb74.tar.xz |
Add a return value to hasher_t.allocate_hash()
Diffstat (limited to 'src/libstrongswan/plugins/openssl/openssl_hasher.c')
-rw-r--r-- | src/libstrongswan/plugins/openssl/openssl_hasher.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_hasher.c b/src/libstrongswan/plugins/openssl/openssl_hasher.c index 5b353647a..67b49c186 100644 --- a/src/libstrongswan/plugins/openssl/openssl_hasher.c +++ b/src/libstrongswan/plugins/openssl/openssl_hasher.c @@ -120,18 +120,15 @@ METHOD(hasher_t, get_hash, bool, return TRUE; } -METHOD(hasher_t, allocate_hash, void, +METHOD(hasher_t, allocate_hash, bool, private_openssl_hasher_t *this, chunk_t chunk, chunk_t *hash) { if (hash) { *hash = chunk_alloc(get_hash_size(this)); - get_hash(this, chunk, hash->ptr); - } - else - { - get_hash(this, chunk, NULL); + return get_hash(this, chunk, hash->ptr); } + return get_hash(this, chunk, NULL); } METHOD(hasher_t, destroy, void, |