Migrate all enumerators to venumerate() interface change
This commit is contained in:
@@ -1026,9 +1026,14 @@ typedef struct {
|
||||
} verify_enumerator_t;
|
||||
|
||||
METHOD(enumerator_t, verify_enumerate, bool,
|
||||
verify_enumerator_t *this, u_int *alg, const char **plugin, bool *valid)
|
||||
verify_enumerator_t *this, va_list args)
|
||||
{
|
||||
const char **plugin;
|
||||
entry_t *entry;
|
||||
u_int *alg;
|
||||
bool *valid;
|
||||
|
||||
VA_ARGS_VGET(args, alg, plugin, valid);
|
||||
|
||||
if (!this->inner->enumerate(this->inner, &entry))
|
||||
{
|
||||
@@ -1123,7 +1128,8 @@ METHOD(crypto_factory_t, create_verify_enumerator, enumerator_t*,
|
||||
}
|
||||
INIT(enumerator,
|
||||
.public = {
|
||||
.enumerate = (void*)_verify_enumerate,
|
||||
.enumerate = enumerator_enumerate_default,
|
||||
.venumerate = _verify_enumerate,
|
||||
.destroy = _verify_destroy,
|
||||
},
|
||||
.inner = inner,
|
||||
|
||||
Reference in New Issue
Block a user