ObjFW  All files named "src/OFTLSSocket.m"

History for src/OFTLSSocket.m

2021-11-13
13:04
Renamed to src/OFTLSStream.m. Completely rework the TLS/SSL API

The previous API could never work cleanly and would always require
hacks, as it needed intercepting all interactions of OFTCPSocket with
the raw socket and did not work at all if the OFTCPSocket had anything
in its read buffer before starting the TLS handshake. This also could
not be fixed easily, as it would have required the object to contain two
read buffers, one for the unencrypted connection and one for the
encrypted connection. There was also no clean way to perform the
handshake in a non-blocking way.

The new API is a lot cleaner and requires none of the hacks, but using
it requires slightly more work. But this is more than made up for by
making a fully asynchronous handshake possible. It uses the concept of a
stream wrapping another stream, meaning the entire connecting part is
being handled by OFTCPSocket and then the connected socket is passed off
to OFTLSStream to wrap it. This also makes for a lot cleaner separation
of concerns. check-in: [d30efa8bbf] user: js, branch: trunk, size: 0

2021-11-07
19:39
OFTLSSocket: Reduce methods to override file: [dab6e3fd2b] check-in: [79ac3fe177] user: js, branch: trunk, size: 4646 [annotate] [blame] [check-ins using] [diff]
2021-11-06
17:36
Fix OFTLSSocket for the case sockets are not FDs file: [d04b51f1a5] check-in: [746ddd7d7f] user: js, branch: trunk, size: 4709 [annotate] [blame] [check-ins using] [diff]
00:10
Added: Make OFTLSSocket an abstract class

This should make it easier to add TLS support using various
implementations. file: [d6f41e909e] check-in: [34cb121dc5] user: js, branch: trunk, size: 4757 [annotate] [blame] [check-ins using]