summaryrefslogtreecommitdiff
path: root/src/stransport_stream.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed some Secure Transport issues on OS XPierre-Olivier Latour2015-06-111-20/+36
| | | | | | | | | The read and write callbacks passed to SSLSetIOFuncs() have been rewritten to match the implementation used on opensource.apple.com and other open source projects like VLC. This change also fixes a bug where the read callback could get into an infinite loop when 0 bytes were read.
* SecureTransport: handle graceful closescmn/secure-transportCarlos Martín Nieto2015-04-231-2/+3
| | | | | On close, we might get a return code which looks like an error but just means that the other side closed gracefully. Handle that.
* SecureTransport: require TLS v1.xCarlos Martín Nieto2015-04-231-0/+2
| | | | | Anything SSL is deprecated. Let's make sure we don't try to use SSL v3 when talking to the server.
* SecureTransport: allow overriding a bad certificateCarlos Martín Nieto2015-04-231-14/+41
| | | | | | Do not automatically fail on a bad certificate, but let the caller decide. This means we don't need our switch on errors anymore but can return a string representation from the security framework.
* Add a SecureTransport TLS channelCarlos Martín Nieto2015-04-231-0/+219
As an alternative to OpenSSL when we're on OS X. This one can actually take advantage of stacking the streams.