diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-11-11 22:20:29 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-11-12 22:20:41 +0900 |
| commit | d974c935cdfd90ffe412e287cef058377a55e755 (patch) | |
| tree | 751a88c68b42340d6fdf32da1d44528c0c28230c /src/console.cc | |
| parent | d289dc1108324ff5589ab103ef0863faaa3c5de1 (diff) | |
WinTLS: Rewrite writeDatarefactor-wintls-write
We re-wrote WinTLSSession::writeData. The major points are:
* Buffer is now preallocated once handshake is finished. Previously,
they are allocated each time when we send one TLS record.
* Schannel uses header, body and trailer for each secBuffer. Now we
send them off at once using WSASend which is windows counterpart of
sendv. Previously, we do memmove if some of them are truncated.
* We don't try to send application data in
WinTLSSession::closeConnection, since semantically we need same
application data used to create TLS record before. Using 0 length
data to finish sending buffered data looks like a hack.
Diffstat (limited to 'src/console.cc')
0 files changed, 0 insertions, 0 deletions
