Select private key based on received cipher suites

This commit is contained in:
Martin Willi
2010-09-03 14:54:43 +02:00
parent 37a59a8fbf
commit 4cdade5aae
4 changed files with 116 additions and 50 deletions
+3 -1
View File
@@ -376,10 +376,12 @@ struct tls_crypto_t {
*
* @param suites list of candidates to select from
* @param count number of suites
* @param key key type used, or KEY_ANY
* @return selected suite, 0 if none acceptable
*/
tls_cipher_suite_t (*select_cipher_suite)(tls_crypto_t *this,
tls_cipher_suite_t *suites, int count);
tls_cipher_suite_t *suites, int count,
key_type_t key);
/**
* Get the Diffie-Hellman group to use, if any.