aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/tnccs_11/tnccs_11.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2013-01-20 23:36:31 +0100
committerAndreas Steffen <andreas.steffen@strongswan.org>2013-02-11 15:30:44 +0100
commitbd1ee5bdc43979824e883f0c11d509700d8e9d4c (patch)
tree59508623649a1aff04106f005f48dc98ba247efe /src/libcharon/plugins/tnccs_11/tnccs_11.c
parentebb87f08f7cb3b5402cea1d7ad7e3ef559bd3451 (diff)
downloadstrongswan-bd1ee5bdc43979824e883f0c11d509700d8e9d4c.tar.bz2
strongswan-bd1ee5bdc43979824e883f0c11d509700d8e9d4c.tar.xz
make AR identities available to IMVs via IF-IMV 1.4 draft
Diffstat (limited to 'src/libcharon/plugins/tnccs_11/tnccs_11.c')
-rw-r--r--src/libcharon/plugins/tnccs_11/tnccs_11.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libcharon/plugins/tnccs_11/tnccs_11.c b/src/libcharon/plugins/tnccs_11/tnccs_11.c
index c1224af75..4720f797a 100644
--- a/src/libcharon/plugins/tnccs_11/tnccs_11.c
+++ b/src/libcharon/plugins/tnccs_11/tnccs_11.c
@@ -505,6 +505,18 @@ METHOD(tls_t, is_server, bool,
return this->is_server;
}
+METHOD(tls_t, get_server_id, identification_t*,
+ private_tnccs_11_t *this)
+{
+ return this->server;
+}
+
+METHOD(tls_t, get_peer_id, identification_t*,
+ private_tnccs_11_t *this)
+{
+ return this->peer;
+}
+
METHOD(tls_t, get_purpose, tls_purpose_t,
private_tnccs_11_t *this)
{
@@ -558,6 +570,8 @@ tls_t *tnccs_11_create(bool is_server, identification_t *server,
.process = _process,
.build = _build,
.is_server = _is_server,
+ .get_server_id = _get_server_id,
+ .get_peer_id = _get_peer_id,
.get_purpose = _get_purpose,
.is_complete = _is_complete,
.get_eap_msk = _get_eap_msk,