aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/crypto/aead.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-07-06 16:11:15 +0200
committerMartin Willi <martin@revosec.ch>2012-07-16 14:53:38 +0200
commit3b96189a2afa4949e1d9cdf7c9fa8244d8d817f0 (patch)
tree16564618b94304c2bca7e925fc9e6693b6226161 /src/libstrongswan/crypto/aead.c
parente35abbe588636c5ca73d8aaa9082314289346bd9 (diff)
downloadstrongswan-3b96189a2afa4949e1d9cdf7c9fa8244d8d817f0.tar.bz2
strongswan-3b96189a2afa4949e1d9cdf7c9fa8244d8d817f0.tar.xz
Add a return value to crypter_t.decrypt()
Diffstat (limited to 'src/libstrongswan/crypto/aead.c')
-rw-r--r--src/libstrongswan/crypto/aead.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstrongswan/crypto/aead.c b/src/libstrongswan/crypto/aead.c
index 0915cd1de..595b75f87 100644
--- a/src/libstrongswan/crypto/aead.c
+++ b/src/libstrongswan/crypto/aead.c
@@ -105,8 +105,7 @@ METHOD(aead_t, decrypt, bool,
DBG1(DBG_LIB, "MAC verification failed");
return FALSE;
}
- this->crypter->decrypt(this->crypter, encrypted, iv, plain);
- return TRUE;
+ return this->crypter->decrypt(this->crypter, encrypted, iv, plain);
}
METHOD(aead_t, get_block_size, size_t,