summaryrefslogtreecommitdiff
path: root/src/WinTLSSession.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix various typosluzpaz2024-01-141-1/+1
| | | | Found via `codespell -q 3 -S "./deps,./ChangeLog.old,./LICENSE.OpenSSL,./doc/manual-src/pt,./doc/sphinx_themes/sphinx_rtd_theme/locale" -L ans,anull,clen,dependant,filetest,fo,hel,nd,orign,padd,parm,servent,tennant,worl,windows`
* Drop SSLv3.0 and TLSv1.0 and add TLSv1.3Tatsuhiro Tsujikawa2019-04-071-8/+2
| | | | TLSv1.3 support is added for GNUTLS and OpenSSL.
* Enable IndentPPDirectivesTatsuhiro Tsujikawa2018-06-091-4/+4
|
* clang-formatTatsuhiro Tsujikawa2018-05-151-1/+2
|
* wintls: Don't log writeData error in closing stateTatsuhiro Tsujikawa2018-01-081-2/+10
|
* WinTLS: Check return valueTatsuhiro Tsujikawa2018-01-041-2/+4
|
* clang-format-5.0Tatsuhiro Tsujikawa2017-11-231-3/+3
|
* wintls: Potential fix for undecrypted readTatsuhiro Tsujikawa2017-10-071-11/+7
|
* WinTLS: Rewrite writeDatarefactor-wintls-writeTatsuhiro Tsujikawa2016-11-121-121/+142
| | | | | | | | | | | | | | | | 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 busy loop on write errorTatsuhiro Tsujikawa2016-11-091-3/+2
|
* WinTLS: Better errors (from WSA)Nils Maier2016-08-291-3/+3
|
* 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-115/+61
|
* WinTLS: Fix potential infinite loopTatsuhiro Tsujikawa2015-08-071-1/+4
|
* Use user-defined literal for k, m, and g (powers of 1024)Tatsuhiro Tsujikawa2015-06-211-2/+2
|
* Fixed some typos in code commentsDan Fandrich2015-01-161-1/+1
|
* Move warn logic into SocketCoreNils Maier2014-12-141-17/+22
| | | | | Also fiddle a bit with the WinTLS implementation, forcing "strong" crypto only for > SSLv3.
* Warn about insecure SSL connections.Nils Maier2014-12-121-1/+29
| | | | Fixed GH-313
* WinTLS: Fix abrupt connection closing and closing in general.Nils Maier2014-09-101-17/+31
| | | | Fixes GH-277
* WinTLS: Return 0 if eof_ is true and decBuf_ is emptyTatsuhiro Tsujikawa2014-09-101-0/+4
|
* WinTLS: Fix busy loop on EOFTatsuhiro Tsujikawa2014-09-101-1/+19
| | | | Fixes gh#277
* Consistent style in the platform TLS implementationsNils Maier2014-05-291-307/+307
|
* WinTLS: Improve error reportingNils Maier2014-04-131-1/+1
|
* WinTLS: Enable --certifcate supportNils Maier2013-09-301-0/+1
|
* Implement WinTLSNils Maier2013-09-301-0/+816