aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtls/tls.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2011-12-31 01:41:56 +0100
committerMartin Willi <martin@revosec.ch>2011-12-31 13:14:49 +0100
commit6a5c86b7ada9dd6a57290f228fd06b20cdf7011b (patch)
tree5879b5f15615624aef0c62d0c0230b6ca9bdf4e3 /src/libtls/tls.h
parentca5767621ba5491b2a2a0c011178249124f32cf7 (diff)
downloadstrongswan-6a5c86b7ada9dd6a57290f228fd06b20cdf7011b.tar.bz2
strongswan-6a5c86b7ada9dd6a57290f228fd06b20cdf7011b.tar.xz
Implemented TLS session resumption both as client and as server
Diffstat (limited to 'src/libtls/tls.h')
-rw-r--r--src/libtls/tls.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libtls/tls.h b/src/libtls/tls.h
index 068ba542c..e22b0facc 100644
--- a/src/libtls/tls.h
+++ b/src/libtls/tls.h
@@ -35,6 +35,7 @@ typedef struct tls_t tls_t;
#include <library.h>
#include "tls_application.h"
+#include "tls_cache.h"
/**
* TLS/SSL version numbers
@@ -240,10 +241,11 @@ void libtls_init(void);
* @param peer peer identity, NULL for no client authentication
* @param purpose purpose this TLS stack instance is used for
* @param application higher layer application or NULL if none
+ * @param cache session cache to use, or NULL
* @return TLS stack
*/
tls_t *tls_create(bool is_server, identification_t *server,
identification_t *peer, tls_purpose_t purpose,
- tls_application_t *application);
+ tls_application_t *application, tls_cache_t *cache);
#endif /** TLS_H_ @}*/