quic_tls_negotiation (quic v1.10.0)
View SourceSummary
Functions
Convert an internal cipher atom to its TLS cipher suite code.
Convert a TLS cipher suite code to its internal atom.
Extract the client's key_share public key for a given group atom.
Named-group wire code to atom. An unknown code stays an integer.
Server: pick the first server protocol the client also offered.
Server: select a cipher suite from the client's list.
Decide the key-exchange group for a ClientHello (RFC 8446 §4.1.4).
Functions
Convert an internal cipher atom to its TLS cipher suite code.
Used when building ServerHello to send the correct suite to the client.
Convert a TLS cipher suite code to its internal atom.
Extract the client's key_share public key for a given group atom.
Named-group wire code to atom. An unknown code stays an integer.
Server: pick the first server protocol the client also offered.
Server: select a cipher suite from the client's list.
ClientCipherSuites is a list of TLS cipher suite codes (integers), converted to atoms for internal use. The server's own order decides, so a deployment that must not negotiate a particular suite can say so; without this the preference was fixed in code and a ciphers option had nowhere to take effect.