Use a seperate section for each nested struct member in INIT macro
This commit is contained in:
@@ -1563,11 +1563,13 @@ des_crypter_t *des_crypter_create(encryption_algorithm_t algo)
|
||||
private_des_crypter_t *this;
|
||||
|
||||
INIT(this,
|
||||
.public.crypter = {
|
||||
.get_block_size = _get_block_size,
|
||||
.get_iv_size = _get_iv_size,
|
||||
.get_key_size = _get_key_size,
|
||||
.destroy = _destroy,
|
||||
.public = {
|
||||
.crypter = {
|
||||
.get_block_size = _get_block_size,
|
||||
.get_iv_size = _get_iv_size,
|
||||
.get_key_size = _get_key_size,
|
||||
.destroy = _destroy,
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
@@ -47,7 +47,11 @@ plugin_t *des_plugin_create()
|
||||
private_des_plugin_t *this;
|
||||
|
||||
INIT(this,
|
||||
.public.plugin.destroy = _destroy,
|
||||
.public = {
|
||||
.plugin = {
|
||||
.destroy = _destroy,
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
lib->crypto->add_crypter(lib->crypto, ENCR_3DES,
|
||||
|
||||
Reference in New Issue
Block a user