From 05aa206dcd4a0eb9ca60cee1f09ad703ae60bfab Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Tue, 5 Apr 2011 14:47:19 +0200 Subject: [PATCH] implemented get|set_identifier() for eap_gtc_t --- src/libcharon/plugins/eap_gtc/eap_gtc.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/libcharon/plugins/eap_gtc/eap_gtc.c b/src/libcharon/plugins/eap_gtc/eap_gtc.c index 9473c13b9..7ae16d790 100644 --- a/src/libcharon/plugins/eap_gtc/eap_gtc.c +++ b/src/libcharon/plugins/eap_gtc/eap_gtc.c @@ -239,6 +239,18 @@ METHOD(eap_method_t, get_msk, status_t, return FAILED; } +METHOD(eap_method_t, get_identifier, u_int8_t, + private_eap_gtc_t *this) +{ + return this->identifier; +} + +METHOD(eap_method_t, set_identifier, void, + private_eap_gtc_t *this, u_int8_t identifier) +{ + this->identifier = identifier; +} + METHOD(eap_method_t, is_mutual, bool, private_eap_gtc_t *this) { @@ -267,6 +279,8 @@ static private_eap_gtc_t *eap_gtc_create_generic(identification_t *server, .get_type = _get_type, .is_mutual = _is_mutual, .get_msk = _get_msk, + .get_identifier = _get_identifier, + .set_identifier = _set_identifier, .destroy = _destroy, }, },