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
+1 -1
View File
@@ -156,7 +156,7 @@ static status_t process_server_hello(private_tls_peer_t *this,
return NEED_MORE;
}
suite = cipher;
if (!this->crypto->select_cipher_suite(this->crypto, &suite, 1))
if (!this->crypto->select_cipher_suite(this->crypto, &suite, 1, KEY_ANY))
{
DBG1(DBG_TLS, "received TLS cipher suite %N inacceptable",
tls_cipher_suite_names, suite);