diff options
author | Martin Willi <martin@revosec.ch> | 2014-03-24 14:28:50 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2014-04-01 14:28:55 +0200 |
commit | ac5717c9e914edf89ede26ad1d0cbdf16004a6cb (patch) | |
tree | 3ebde6d37fe8def519c81af4de473632a5d609bf /src/libtls/tls_crypto.h | |
parent | c0efaaebe36c0aa896952355e04b8e36ecbd051b (diff) | |
download | strongswan-ac5717c9e914edf89ede26ad1d0cbdf16004a6cb.tar.bz2 strongswan-ac5717c9e914edf89ede26ad1d0cbdf16004a6cb.tar.xz |
tls: Export a function to list supported TLS cipher suites
Diffstat (limited to 'src/libtls/tls_crypto.h')
-rw-r--r-- | src/libtls/tls_crypto.h | 9 |
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_ @}*/ |