]> git.ipfire.org Git - thirdparty/curl.git/commit
rustls: fix handshake done handling
authorStefan Eissing <stefan@eissing.org>
Fri, 17 May 2024 11:23:19 +0000 (13:23 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 17 May 2024 14:51:45 +0000 (16:51 +0200)
commitafffd4c512f56ef4d1bcd18d47bb64cdf603607b
treed29c7eb1499da9f40c7dd5c9b89344ca2954706f
parent13ca4386ba4b0f9721b6f482dfd2a858c38320a9
rustls: fix handshake done handling

- rustls report it has finished the TLS handshake *before*
  all relevant data has been sent off, e.g. it FINISHED message
- On connections the send data immediately, this was never noticed
  as the FINISHED in rustls buffers was send with the app data
- On passive FTP connections, curl does not send any data after
  the handshake, leaving FINISHED unsent and the server never
  responded as it was waiting on this.

Closes #13686
lib/vtls/rustls.c