aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.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/gcrypt/gcrypt_rsa_public_key.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/gcrypt/gcrypt_rsa_public_key.c')
-rw-r--r--src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.c b/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.c
index a49a6e5e2..f8645da97 100644
--- a/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.c
+++ b/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.c
@@ -322,17 +322,19 @@ gcrypt_rsa_public_key_t *gcrypt_rsa_public_key_load(key_type_t type,
}
INIT(this,
- .public.key = {
- .get_type = _get_type,
- .verify = _verify,
- .encrypt = _encrypt_,
- .equals = public_key_equals,
- .get_keysize = _get_keysize,
- .get_fingerprint = _get_fingerprint,
- .has_fingerprint = public_key_has_fingerprint,
- .get_encoding = _get_encoding,
- .get_ref = _get_ref,
- .destroy = _destroy,
+ .public = {
+ .key = {
+ .get_type = _get_type,
+ .verify = _verify,
+ .encrypt = _encrypt_,
+ .equals = public_key_equals,
+ .get_keysize = _get_keysize,
+ .get_fingerprint = _get_fingerprint,
+ .has_fingerprint = public_key_has_fingerprint,
+ .get_encoding = _get_encoding,
+ .get_ref = _get_ref,
+ .destroy = _destroy,
+ },
},
.ref = 1,
);