aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtls/tls_eap.h
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2011-04-05 18:14:58 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2011-04-05 18:14:58 +0200
commit6f69fb013435bb5b0c9b331fbd19f8ed094792dd (patch)
tree23530e1085c0184527e5cb7958206168606aadcf /src/libtls/tls_eap.h
parent2e44a2753fd582c43d388c4b3b38ad18df7c9e24 (diff)
downloadstrongswan-6f69fb013435bb5b0c9b331fbd19f8ed094792dd.tar.bz2
strongswan-6f69fb013435bb5b0c9b331fbd19f8ed094792dd.tar.xz
implemented get|set_identifier() for tls_eap_t
Diffstat (limited to 'src/libtls/tls_eap.h')
-rw-r--r--src/libtls/tls_eap.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libtls/tls_eap.h b/src/libtls/tls_eap.h
index ebda2636d..186703f97 100644
--- a/src/libtls/tls_eap.h
+++ b/src/libtls/tls_eap.h
@@ -62,6 +62,21 @@ struct tls_eap_t {
chunk_t (*get_msk)(tls_eap_t *this);
/**
+ * Get the current EAP identifier.
+ *
+ * @return identifier
+ */
+ u_int8_t (*get_identifier)(tls_eap_t *this);
+
+ /**
+ * Set the EAP identifier to a deterministic value, overwriting
+ * the randomly initialized default value.
+ *
+ * @param identifier EAP identifier
+ */
+ void (*set_identifier) (tls_eap_t *this, u_int8_t identifier);
+
+ /**
* Destroy a tls_eap_t.
*/
void (*destroy)(tls_eap_t *this);