aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/hmac/hmac_signer.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-08-18 12:15:03 +0200
committerMartin Willi <martin@revosec.ch>2010-08-18 12:15:03 +0200
commitba31fe1fd65feba781434ee4fabd9b1fd6432ecb (patch)
tree3d7073eb9bb51512d073eeccd3f0b3b5d32e1ff5 /src/libstrongswan/plugins/hmac/hmac_signer.c
parent53115857ae5f3b25e889f394de0c61e7cc455c74 (diff)
downloadstrongswan-ba31fe1fd65feba781434ee4fabd9b1fd6432ecb.tar.bz2
strongswan-ba31fe1fd65feba781434ee4fabd9b1fd6432ecb.tar.xz
Use a seperate section for each nested struct member in INIT macro
Diffstat (limited to 'src/libstrongswan/plugins/hmac/hmac_signer.c')
-rw-r--r--src/libstrongswan/plugins/hmac/hmac_signer.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/libstrongswan/plugins/hmac/hmac_signer.c b/src/libstrongswan/plugins/hmac/hmac_signer.c
index b5cbf1eb4..26483a990 100644
--- a/src/libstrongswan/plugins/hmac/hmac_signer.c
+++ b/src/libstrongswan/plugins/hmac/hmac_signer.c
@@ -172,14 +172,16 @@ hmac_signer_t *hmac_signer_create(integrity_algorithm_t algo)
}
INIT(this,
- .public.signer = {
- .get_signature = _get_signature,
- .allocate_signature = _allocate_signature,
- .verify_signature = _verify_signature,
- .get_key_size = _get_key_size,
- .get_block_size = _get_block_size,
- .set_key = _set_key,
- .destroy = _destroy,
+ .public = {
+ .signer = {
+ .get_signature = _get_signature,
+ .allocate_signature = _allocate_signature,
+ .verify_signature = _verify_signature,
+ .get_key_size = _get_key_size,
+ .get_block_size = _get_block_size,
+ .set_key = _set_key,
+ .destroy = _destroy,
+ },
},
.block_size = min(trunc, hmac->get_block_size(hmac)),
.hmac = hmac,