aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtls/tls_socket.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2014-04-01 14:53:28 +0200
committerMartin Willi <martin@revosec.ch>2014-04-01 14:53:28 +0200
commitb87f7840bc090de5b76328c4c12dfb7e27e73f7e (patch)
treee50a2bad6ed7edbd0151516ff7220de44c25d6eb /src/libtls/tls_socket.h
parent96e3142c39a69cfc99fc808f2df3f9d409b05357 (diff)
parent5ba9f734577321f0445ee38625cdea075d1bb9cf (diff)
downloadstrongswan-b87f7840bc090de5b76328c4c12dfb7e27e73f7e.tar.bz2
strongswan-b87f7840bc090de5b76328c4c12dfb7e27e73f7e.tar.xz
Merge branch 'tls-unit-tests'
Add some initial unit-tests to libtls, testing all supported cipher suites against self, both with and without client authentication, for all supported TLS versions.
Diffstat (limited to 'src/libtls/tls_socket.h')
-rw-r--r--src/libtls/tls_socket.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libtls/tls_socket.h b/src/libtls/tls_socket.h
index 75130a4d3..0d4db3b41 100644
--- a/src/libtls/tls_socket.h
+++ b/src/libtls/tls_socket.h
@@ -104,9 +104,12 @@ struct tls_socket_t {
* @param peer client identity, NULL for no client authentication
* @param fd socket to read/write from
* @param cache session cache to use, or NULL
+ * @param max_version maximun TLS version to negotiate
+ * @param nullok accept NULL encryption ciphers
* @return TLS socket wrapper
*/
tls_socket_t *tls_socket_create(bool is_server, identification_t *server,
- identification_t *peer, int fd, tls_cache_t *cache);
+ identification_t *peer, int fd, tls_cache_t *cache,
+ tls_version_t max_version, bool nullok);
#endif /** TLS_SOCKET_H_ @}*/