summaryrefslogtreecommitdiff
path: root/src/TLSSession.h
Commit message (Collapse)AuthorAgeFilesLines
* clang-format-5.0Tatsuhiro Tsujikawa2017-11-231-1/+1
|
* Use default where possibleNils Maier2016-08-291-2/+2
|
* WinTLS: Fix hang because of buffered received dataTatsuhiro Tsujikawa2016-01-301-0/+4
| | | | | | | | | | | | | 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-5/+2
|
* Fixed some typos in code commentsDan Fandrich2015-01-161-3/+3
|
* Move warn logic into SocketCoreNils Maier2014-12-141-2/+3
| | | | | Also fiddle a bit with the WinTLS implementation, forcing "strong" crypto only for > SSLv3.
* Update TLSSession::checkDirection() docTatsuhiro Tsujikawa2013-04-091-2/+2
| | | | | | | | Make it clear that TLS_WANT_READ must be returned if underlying SSL/TLS lib does not indicate I/O direction. This is because SocketCore sets wantRead_ = true when TLS_WANT_READ is returned and otherwise sets wantWrite_ = true. We only want to set wantWrite_ = true iff we have some pending data to send.
* AppleTLS: Implement AppleTLS and Apple Message DigestNils Maier2013-04-051-61/+78
|
* Abstract TLS session implementationTatsuhiro Tsujikawa2013-04-031-0/+104
Now TLS session object is abstracted as TLSSession class. Currently, we have GNUTLS and OpenSSL implementations.