diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-02-21 11:28:57 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-02-21 11:28:57 +0100 |
commit | 991c958240f2f0d2d21eac050b1d02ca0ebd5299 (patch) | |
tree | d8f64df16087630abf3aa9dd2dcc9b9d8b7d8b40 /lib/algorithms.h | |
parent | 4d48c199e0cd96bd324e85af92baecf7308cd356 (diff) | |
download | gnutls-991c958240f2f0d2d21eac050b1d02ca0ebd5299.tar.gz |
check the negotiated TLS/DTLS version prior to offering a ciphersuite a server
Diffstat (limited to 'lib/algorithms.h')
-rw-r--r-- | lib/algorithms.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/algorithms.h b/lib/algorithms.h index 7b5004f8f1..97e6935de2 100644 --- a/lib/algorithms.h +++ b/lib/algorithms.h @@ -156,6 +156,13 @@ inline static int _gnutls_digest_is_secure(const mac_entry_st * e) int _gnutls_supported_ciphersuites(gnutls_session_t session, uint8_t * cipher_suites, unsigned int max_cipher_suite_size); +int +_gnutls_remove_unwanted_ciphersuites(gnutls_session_t session, + uint8_t * cipher_suites, + int cipher_suites_size, + gnutls_pk_algorithm_t * pk_algos, + size_t pk_algos_size); + const char *_gnutls_cipher_suite_get_name(const uint8_t suite[2]); gnutls_mac_algorithm_t _gnutls_cipher_suite_get_prf(const uint8_t suite[2]); |