summaryrefslogtreecommitdiff
path: root/src/WinTLSSession.h
Commit message (Collapse)AuthorAgeFilesLines
* Add missing <array>Hernan Martinez2022-06-231-1/+1
|
* `make clang-format`Tatsuhiro Tsujikawa2016-12-151-1/+1
|
* WinTLS: Rewrite writeDatarefactor-wintls-writeTatsuhiro Tsujikawa2016-11-121-4/+40
| | | | | | | | | | | | | | | | 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.
* WinTLS: Fix hang because of buffered received dataTatsuhiro Tsujikawa2016-01-301-0/+2
| | | | | | | | | | | | | WinTLSSession buffers received decrypted data into its own buffer. If read is requested, it copies the data from its buffer. But if requested buffer size is less than decrypted buffer, some of the data is left in the buffer. Previously, we had no facility to check the existence of this pending data. If this data is the last requested data from remote server, we may end up waiting for read event even if we have already data in our buffer, which may cause hang. This commit fixes this issue by introducing function to return the buffered length in TLSSession. SocketCore also provides the same function, which delegates to TLSSession object.
* make clang-format using clang-format-3.6Tatsuhiro Tsujikawa2015-12-271-26/+8
|
* Fixed some typos in code commentsDan Fandrich2015-01-161-4/+4
|
* Move warn logic into SocketCoreNils Maier2014-12-141-1/+2
| | | | | Also fiddle a bit with the WinTLS implementation, forcing "strong" crypto only for > SSLv3.
* WinTLS: Fix abrupt connection closing and closing in general.Nils Maier2014-09-101-3/+0
| | | | Fixes GH-277
* WinTLS: Fix busy loop on EOFTatsuhiro Tsujikawa2014-09-101-0/+3
| | | | Fixes gh#277
* Consistent style in the platform TLS implementationsNils Maier2014-05-291-49/+69
|
* Implement WinTLSNils Maier2013-09-301-0/+194