aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtls/tls.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-08-24 11:34:43 +0200
committerMartin Willi <martin@revosec.ch>2010-08-24 11:34:43 +0200
commit69e8bb2e8d61a8e7b2a889eaae9722a4e5ed51c6 (patch)
tree1e4fbeded6b1cd5b456a21c594f80a212d7f2b89 /src/libtls/tls.h
parenta2c12359691943ede12f7f515cbe97af1b193e7b (diff)
downloadstrongswan-69e8bb2e8d61a8e7b2a889eaae9722a4e5ed51c6.tar.bz2
strongswan-69e8bb2e8d61a8e7b2a889eaae9722a4e5ed51c6.tar.xz
Pass NULL peer identity to omit TLS peer authentication, added eap-ttls.request_peer_auth option
Diffstat (limited to 'src/libtls/tls.h')
-rw-r--r--src/libtls/tls.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libtls/tls.h b/src/libtls/tls.h
index aa840f8fe..3ade3793b 100644
--- a/src/libtls/tls.h
+++ b/src/libtls/tls.h
@@ -96,12 +96,8 @@ enum tls_purpose_t {
TLS_PURPOSE_EAP_TLS,
/** outer authentication and protection in EAP-TTLS */
TLS_PURPOSE_EAP_TTLS,
- /** EAP-TTLS with client authentication */
- TLS_PURPOSE_EAP_TTLS_CLIENT_AUTH,
- /** non-EAP TLS without client authentication */
+ /** non-EAP TLS */
TLS_PURPOSE_GENERIC,
- /** non-EAP TLS with client authentication */
- TLS_PURPOSE_GENERIC_CLIENT_AUTH,
};
/**
@@ -185,7 +181,7 @@ struct tls_t {
*
* @param is_server TRUE to act as server, FALSE for client
* @param server server identity
- * @param peer peer identity
+ * @param peer peer identity, NULL for no client authentication
* @param purpse purpose this TLS stack instance is used for
* @param application higher layer application or NULL if none
* @return TLS stack