mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-09-02 02:48:32 +00:00
remove condition
This commit is contained in:
@@ -369,8 +369,6 @@ In XFTP v2 the handshake is only used for version negotiation, but `routerCert`
|
||||
|
||||
`keyHash` is the CA fingerprint used by client to validate TLS certificate chain and is checked by a router against its own key.
|
||||
|
||||
`entitlementProof` is ignored on the web handshake, so a session opened from the browser never gets an entitlement.
|
||||
|
||||
`ignoredPart` in handshake allows to add additional parameters in handshake without changing protocol version - the client and routers must ignore any extra bytes within the original block length.
|
||||
|
||||
For TLS transport client should assert that `sessionIdentifier` is equal to `tls-unique` channel binding defined in [RFC 5929][14] (TLS Finished message struct); we pass it in `routerHello` block to allow communication over some other transport protocol (possibly, with another channel binding).
|
||||
|
||||
@@ -185,7 +185,6 @@ xftpServer cfg@XFTPServerConfig {xftpPort, transportConfig, inactiveClientExpira
|
||||
| otherwise -> processHello Nothing
|
||||
Just (HandshakeSent pk ent_)
|
||||
| webHello -> processHello (Just pk)
|
||||
| webHandshake -> processClientHandshake pk (EntChecked Nothing)
|
||||
| otherwise -> processClientHandshake pk ent_
|
||||
Just (HandshakeAccepted thParams)
|
||||
| webHello -> processHello (serverPrivKey <$> thAuth thParams)
|
||||
|
||||
Reference in New Issue
Block a user