Skip to content

Commit

Permalink
clarify conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhijaju committed Apr 27, 2023
1 parent 2ea5b59 commit e950163
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -792,10 +792,11 @@ sequence<{{WebTransportHash}}> |serverCertificateHashes|, run these steps.
|networkPartitionKey|, |url|, false, |newConnection|, and |http3Only|. If the user agent
supports more than one congestion control algorithm, choose one appropriate for
|congestionControl| for sending of data on this |connection|. When obtaining a connection, if
|serverCertificateHashes| is specified instead of the default certificate verification algorithm,
validate the certificate against [=custom certificate requirements=], and then
[=verify a certificate hash|verify the certificate hash=] against |serverCertificateHashes|.
The certificate is considered valid if and only if both of those checks pass.
|serverCertificateHashes| is specified, instead of using the default certificate verification
algorithm, consider the certificate valid if it meets the [=custom certificate
requirements=] and if [=verify a certificate hash|verifying the certificate hash=] against
|serverCertificateHashes| returns true. If either condition is not met, let |connection| be
failure.
1. If |connection| is failure, then abort the remaining steps and [=queue a network task=] with
|transport| to run these steps:
1. If |transport|.{{[[State]]}} is `"closed"` or `"failed"`, then abort these steps.
Expand Down

0 comments on commit e950163

Please sign in to comment.