diff options
author | Tobias Brunner <tobias@strongswan.org> | 2017-05-11 09:17:02 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2017-05-26 13:56:44 +0200 |
commit | 95a63bf2813cd6ecad912237688526bbcc3481ee (patch) | |
tree | ab656955ac9380b54fe6becaca3ca97a9c7549c4 /src/libpttls/sasl/sasl_mechanism.c | |
parent | 16bffa8b55542ba7c29fa8b856b26cdcdf2de869 (diff) | |
download | strongswan-95a63bf2813cd6ecad912237688526bbcc3481ee.tar.bz2 strongswan-95a63bf2813cd6ecad912237688526bbcc3481ee.tar.xz |
Migrate all enumerators to venumerate() interface change
Diffstat (limited to 'src/libpttls/sasl/sasl_mechanism.c')
-rw-r--r-- | src/libpttls/sasl/sasl_mechanism.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libpttls/sasl/sasl_mechanism.c b/src/libpttls/sasl/sasl_mechanism.c index 05a02e56d..4e54de314 100644 --- a/src/libpttls/sasl/sasl_mechanism.c +++ b/src/libpttls/sasl/sasl_mechanism.c @@ -59,8 +59,11 @@ typedef struct { } mech_enumerator_t; METHOD(enumerator_t, mech_enumerate, bool, - mech_enumerator_t *this, char **name) + mech_enumerator_t *this, va_list args) { + char **name; + + VA_ARGS_VGET(args, name); while (this->i < countof(mechs)) { if (mechs[this->i].server == this->server) @@ -83,7 +86,8 @@ enumerator_t* sasl_mechanism_create_enumerator(bool server) INIT(enumerator, .public = { - .enumerate = (void*)_mech_enumerate, + .enumerate = enumerator_enumerate_default, + .venumerate = _mech_enumerate, .destroy = (void*)free, }, .server = server, |