diff options
author | Martin Willi <martin@revosec.ch> | 2014-03-25 10:12:51 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2014-04-01 14:28:55 +0200 |
commit | e15f64cc81818f3769b91b2372559a64f0b92b7b (patch) | |
tree | 456b0adf9106a10292b28bca48cd01bed3927738 /src/libtls/tls_socket.h | |
parent | 5313880261fe271ac5b334ccacf92d6253efaf3d (diff) | |
download | strongswan-e15f64cc81818f3769b91b2372559a64f0b92b7b.tar.bz2 strongswan-e15f64cc81818f3769b91b2372559a64f0b92b7b.tar.xz |
tls: Support a maximum TLS version to negotiate using TLS socket abstraction
Diffstat (limited to 'src/libtls/tls_socket.h')
-rw-r--r-- | src/libtls/tls_socket.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libtls/tls_socket.h b/src/libtls/tls_socket.h index 54278dd01..0d4db3b41 100644 --- a/src/libtls/tls_socket.h +++ b/src/libtls/tls_socket.h @@ -104,11 +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, - bool nullok); + tls_version_t max_version, bool nullok); #endif /** TLS_SOCKET_H_ @}*/ |