Skip to content

Commit

Permalink
ignore validation failures with NO_CERTIFICATE_VALIDATION (#1728)
Browse files Browse the repository at this point in the history
  • Loading branch information
wfurt authored Jul 28, 2021
1 parent d617d1e commit 8f74f85
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/platform/tls_schannel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1976,8 +1976,9 @@ CxPlatTlsWriteDataToSchannel(
}
}
SecPkgContext_CertificateValidationResult CertValidationResult = {0,0};
if (TlsContext->SecConfig->Flags & QUIC_CREDENTIAL_FLAG_REQUIRE_CLIENT_AUTHENTICATION ||
TlsContext->SecConfig->Flags & QUIC_CREDENTIAL_FLAG_DEFER_CERTIFICATE_VALIDATION) {
if (!(TlsContext->SecConfig->Flags & QUIC_CREDENTIAL_FLAG_NO_CERTIFICATE_VALIDATION) &&
(TlsContext->SecConfig->Flags & QUIC_CREDENTIAL_FLAG_REQUIRE_CLIENT_AUTHENTICATION ||
TlsContext->SecConfig->Flags & QUIC_CREDENTIAL_FLAG_DEFER_CERTIFICATE_VALIDATION)) {
//
// Collect the client cert validation result
//
Expand Down

0 comments on commit 8f74f85

Please sign in to comment.