Use a seperate section for each nested struct member in INIT macro
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user