tls: Export a function to list supported TLS cipher suites

This commit is contained in:
Martin Willi
2014-04-01 14:28:55 +02:00
parent c0efaaebe3
commit ac5717c9e9
2 changed files with 66 additions and 18 deletions
+9
View File
@@ -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_ @}*/