Use a seperate section for each nested struct member in INIT macro

This commit is contained in:
Martin Willi
2010-08-18 12:15:03 +02:00
parent 53115857ae
commit ba31fe1fd6
77 changed files with 615 additions and 448 deletions
+9 -7
View File
@@ -422,13 +422,15 @@ static eap_tls_t *eap_tls_create(identification_t *server,
private_eap_tls_t *this;
INIT(this,
.public.eap_method = {
.initiate = _initiate,
.process = _process,
.get_type = _get_type,
.is_mutual = _is_mutual,
.get_msk = _get_msk,
.destroy = _destroy,
.public = {
.eap_method = {
.initiate = _initiate,
.process = _process,
.get_type = _get_type,
.is_mutual = _is_mutual,
.get_msk = _get_msk,
.destroy = _destroy,
},
},
.is_server = is_server,
);
@@ -38,7 +38,9 @@ plugin_t *eap_tls_plugin_create()
eap_tls_plugin_t *this;
INIT(this,
.plugin.destroy = _destroy,
.plugin = {
.destroy = _destroy,
},
);
charon->eap->add_method(charon->eap, EAP_TLS, 0, EAP_SERVER,