summaryrefslogtreecommitdiff
path: root/src/libtls/tls.h
diff options
context:
space:
mode:
authorYves-Alexis Perez <corsac@debian.org>2013-04-26 14:57:47 +0200
committerYves-Alexis Perez <corsac@debian.org>2013-04-26 14:57:47 +0200
commite8f63514e9b56f6a2f977a56438d59ccab45bdca (patch)
treea0b54b11d647db27fa018214d2bf675dd350d466 /src/libtls/tls.h
parent196d9f518fd657d6560bfe3b05885d47ccd6bbd5 (diff)
parent10e5fb2b9b2f27c83b3e5a1d048b158d5cf42a43 (diff)
downloadvyos-strongswan-e8f63514e9b56f6a2f977a56438d59ccab45bdca.tar.gz
vyos-strongswan-e8f63514e9b56f6a2f977a56438d59ccab45bdca.zip
Merge tag 'upstream/5.0.3'
Upstream version 5.0.3
Diffstat (limited to 'src/libtls/tls.h')
-rw-r--r--src/libtls/tls.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libtls/tls.h b/src/libtls/tls.h
index 6b4876f73..7f45b1e09 100644
--- a/src/libtls/tls.h
+++ b/src/libtls/tls.h
@@ -193,6 +193,20 @@ struct tls_t {
bool (*is_server)(tls_t *this);
/**
+ * Return the server identity.
+ *
+ * @return server identity
+ */
+ identification_t* (*get_server_id)(tls_t *this);
+
+ /**
+ * Return the peer identity.
+ *
+ * @return peer identity
+ */
+ identification_t* (*get_peer_id)(tls_t *this);
+
+ /**
* Get the negotiated TLS/SSL version.
*
* @return negotiated TLS version