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/libcharon/sa/authenticators/eap_authenticator.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/libcharon/sa/authenticators/eap_authenticator.c')
-rw-r--r-- | src/libcharon/sa/authenticators/eap_authenticator.c | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/src/libcharon/sa/authenticators/eap_authenticator.c b/src/libcharon/sa/authenticators/eap_authenticator.c index 23105f640..0a2cb658c 100644 --- a/src/libcharon/sa/authenticators/eap_authenticator.c +++ b/src/libcharon/sa/authenticators/eap_authenticator.c @@ -652,13 +652,6 @@ eap_authenticator_t *eap_authenticator_create_builder(ike_sa_t *ike_sa, .received_nonce = received_nonce, .sent_init = sent_init, .sent_nonce = sent_nonce, - .msk = chunk_empty, - .method = NULL, - .eap_payload = NULL, - .eap_complete = FALSE, - .auth_complete = FALSE, - .eap_identity = NULL, - .require_mutual = FALSE, ); return &this->public; @@ -674,24 +667,19 @@ eap_authenticator_t *eap_authenticator_create_verifier(ike_sa_t *ike_sa, private_eap_authenticator_t *this; INIT(this, - .public.authenticator = { - .build = _build_server, - .process = _process_server, - .is_mutual = _is_mutual, - .destroy = _destroy, + .public = { + .authenticator = { + .build = _build_server, + .process = _process_server, + .is_mutual = _is_mutual, + .destroy = _destroy, + }, }, .ike_sa = ike_sa, .received_init = received_init, .received_nonce = received_nonce, .sent_init = sent_init, .sent_nonce = sent_nonce, - .msk = chunk_empty, - .method = NULL, - .eap_payload = NULL, - .eap_complete = FALSE, - .auth_complete = FALSE, - .eap_identity = NULL, - .require_mutual = FALSE, ); return &this->public; |