aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2011-04-05 14:44:09 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2011-04-05 14:44:09 +0200
commit4ea837d951d7534cc0da4a225d1a79c4102fb080 (patch)
tree0cff637f970d6e1b4ffeecc61fe0858c32ab9cd6 /src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c
parentdae5a088c52f5e0a666fe91bc3ce587a950c7ffd (diff)
downloadstrongswan-4ea837d951d7534cc0da4a225d1a79c4102fb080.tar.bz2
strongswan-4ea837d951d7534cc0da4a225d1a79c4102fb080.tar.xz
implemented get|set_identifier() for eap_mschapv2_t
Diffstat (limited to 'src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c')
-rw-r--r--src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c b/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c
index 22b90543b..1dd94f6fb 100644
--- a/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c
+++ b/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c
@@ -1148,6 +1148,18 @@ METHOD(eap_method_t, get_msk, status_t,
return FAILED;
}
+METHOD(eap_method_t, get_identifier, u_int8_t,
+ private_eap_mschapv2_t *this)
+{
+ return this->identifier;
+}
+
+METHOD(eap_method_t, set_identifier, void,
+ private_eap_mschapv2_t *this, u_int8_t identifier)
+{
+ this->identifier = identifier;
+}
+
METHOD(eap_method_t, is_mutual, bool,
private_eap_mschapv2_t *this)
{
@@ -1179,6 +1191,8 @@ static private_eap_mschapv2_t *eap_mschapv2_create_generic(identification_t *ser
.get_type = _get_type,
.is_mutual = _is_mutual,
.get_msk = _get_msk,
+ .get_identifier = _get_identifier,
+ .set_identifier = _set_identifier,
.destroy = _destroy,
},
},