diff options
author | Martin Willi <martin@revosec.ch> | 2010-08-18 12:15:03 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-08-18 12:15:03 +0200 |
commit | ba31fe1fd65feba781434ee4fabd9b1fd6432ecb (patch) | |
tree | 3d7073eb9bb51512d073eeccd3f0b3b5d32e1ff5 /src/libstrongswan/plugins/openssl/openssl_ec_public_key.c | |
parent | 53115857ae5f3b25e889f394de0c61e7cc455c74 (diff) | |
download | strongswan-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/openssl/openssl_ec_public_key.c')
-rw-r--r-- | src/libstrongswan/plugins/openssl/openssl_ec_public_key.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_ec_public_key.c b/src/libstrongswan/plugins/openssl/openssl_ec_public_key.c index f680749a3..7461695ad 100644 --- a/src/libstrongswan/plugins/openssl/openssl_ec_public_key.c +++ b/src/libstrongswan/plugins/openssl/openssl_ec_public_key.c @@ -303,17 +303,19 @@ static private_openssl_ec_public_key_t *create_empty() private_openssl_ec_public_key_t *this; INIT(this, - .public.key = { - .get_type = _get_type, - .verify = _verify, - .encrypt = _encrypt, - .get_keysize = _get_keysize, - .equals = public_key_equals, - .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, + .get_keysize = _get_keysize, + .equals = public_key_equals, + .get_fingerprint = _get_fingerprint, + .has_fingerprint = public_key_has_fingerprint, + .get_encoding = _get_encoding, + .get_ref = _get_ref, + .destroy = _destroy, + }, }, .ref = 1, ); |