]> git.ipfire.org Git - thirdparty/strongswan.git/blobdiff - src/libstrongswan/plugins/md5/md5_hasher.c
Add a return value to hasher_t.allocate_hash()
[thirdparty/strongswan.git] / src / libstrongswan / plugins / md5 / md5_hasher.c
index dcd2cdd1a8346ca8279d72b934bb8a91900513b7..ea8c45010d8747e4c0e453798ea45124e0106085 100644 (file)
@@ -311,7 +311,7 @@ METHOD(hasher_t, get_hash, bool,
        return TRUE;
 }
 
-METHOD(hasher_t, allocate_hash, void,
+METHOD(hasher_t, allocate_hash, bool,
        private_md5_hasher_t *this, chunk_t chunk, chunk_t *hash)
 {
        chunk_t allocated_hash;
@@ -327,6 +327,7 @@ METHOD(hasher_t, allocate_hash, void,
 
                *hash = allocated_hash;
        }
+       return TRUE;
 }
 
 METHOD(hasher_t, get_hash_size, size_t,