Migrated xcbc plugin to INIT/METHOD macros
This commit is contained in:
@@ -32,10 +32,8 @@ struct private_xcbc_plugin_t {
|
||||
xcbc_plugin_t public;
|
||||
};
|
||||
|
||||
/**
|
||||
* Implementation of xcbc_plugin_t.xcbctroy
|
||||
*/
|
||||
static void destroy(private_xcbc_plugin_t *this)
|
||||
METHOD(plugin_t, destroy, void,
|
||||
private_xcbc_plugin_t *this)
|
||||
{
|
||||
lib->crypto->remove_prf(lib->crypto,
|
||||
(prf_constructor_t)xcbc_prf_create);
|
||||
@@ -49,9 +47,11 @@ static void destroy(private_xcbc_plugin_t *this)
|
||||
*/
|
||||
plugin_t *xcbc_plugin_create()
|
||||
{
|
||||
private_xcbc_plugin_t *this = malloc_thing(private_xcbc_plugin_t);
|
||||
private_xcbc_plugin_t *this;
|
||||
|
||||
this->public.plugin.destroy = (void(*)(plugin_t*))destroy;
|
||||
INIT(this,
|
||||
.public.plugin.destroy = _destroy,
|
||||
);
|
||||
|
||||
lib->crypto->add_prf(lib->crypto, PRF_AES128_XCBC,
|
||||
(prf_constructor_t)xcbc_prf_create);
|
||||
|
||||
Reference in New Issue
Block a user