aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_client.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-01-24 16:42:18 +0000
committerlloyd <[email protected]>2012-01-24 16:42:18 +0000
commite4eb73dca7d7a74ecf8ef792d65640c4e44e2ab1 (patch)
tree5e7cd62ff1fe191c0369a41617b43ebf77d20ef9 /src/tls/tls_client.cpp
parentb8a8ba0428cd4235e1ac2ba8530e8f817a166773 (diff)
We can now actually handle multiple certificate types in the server
and will choose one depending on which ciphersuites the client offered.
Diffstat (limited to 'src/tls/tls_client.cpp')
-rw-r--r--src/tls/tls_client.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tls/tls_client.cpp b/src/tls/tls_client.cpp
index 215ff6972..ba0d1e506 100644
--- a/src/tls/tls_client.cpp
+++ b/src/tls/tls_client.cpp
@@ -299,10 +299,11 @@ void Client::process_handshake_msg(Handshake_Type type,
if(state->received_handshake_msg(CERTIFICATE_REQUEST))
{
- std::vector<byte> types = state->cert_req->acceptable_types();
+ const std::vector<std::string>& types =
+ state->cert_req->acceptable_cert_types();
std::vector<X509_Certificate> client_certs =
- creds.cert_chain("", // FIXME use types here
+ creds.cert_chain(types,
"tls-client",
state->client_hello->sni_hostname());