Skip to content

Commit

Permalink
handle unknown schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannes Rantzsch committed Apr 14, 2022
1 parent f2f75c0 commit 20b48d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib/tls/tls13/tls_client_impl_13.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,11 @@ void Client_Impl_13::client_auth(Channel_Impl_13::AggregatedMessages& flight)
const auto& cert_request = m_handshake_state.certificate_request();

std::vector<std::string> peer_allowed_signature_algos;
for (const auto& scheme : cert_request.signature_schemes())
{ peer_allowed_signature_algos.push_back(signature_algorithm_of_scheme(scheme)); }
for (const Signature_Scheme& scheme : cert_request.signature_schemes())
{
if(signature_scheme_is_known(scheme))
peer_allowed_signature_algos.push_back(signature_algorithm_of_scheme(scheme));
}

std::vector<X509_Certificate> client_certs = credentials_manager().find_cert_chain(
peer_allowed_signature_algos,
Expand Down

0 comments on commit 20b48d3

Please sign in to comment.