aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtls/tls_crypto.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_crypto.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_crypto.h')
-rw-r--r--src/libtls/tls_crypto.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libtls/tls_crypto.h b/src/libtls/tls_crypto.h
index 5512b1f48..a42e07bb3 100644
--- a/src/libtls/tls_crypto.h
+++ b/src/libtls/tls_crypto.h
@@ -572,4 +572,13 @@ struct tls_crypto_t {
*/
tls_crypto_t *tls_crypto_create(tls_t *tls, tls_cache_t *cache);
+/**
+ * Get a list of all supported TLS cipher suites.
+ *
+ * @param null include supported NULL encryption suites
+ * @param suites pointer to allocated suites array, to free(), or NULL
+ * @return number of suites supported
+ */
+int tls_crypto_get_supported_suites(bool null, tls_cipher_suite_t **suites);
+
#endif /** TLS_CRYPTO_H_ @}*/