ObjFW  History of src/OFTLSSocket.h of 8aeee6680ab34f18

History of file src/OFTLSSocket.h at check-in 8aeee6680ab34f18

2024-06-17
21:08
Always use <ObjFW/ObjFW.h> in documentation file: [19a4dce33f] check-in: [164f2fb4bf] user: js, branch: trunk, size: 5920 [annotate] [blame] [check-ins using] [diff]
2024-04-03
02:16
Change license to LGPLv3 only file: [8c96ff50b1] check-in: [7413a728a7] user: js, branch: trunk, size: 5932 [annotate] [blame] [check-ins using] [diff]
2024-02-03
11:41
Update copyright file: [c6d3017a4d] check-in: [7324ec8590] user: js, branch: 1.0, size: 5779 [annotate] [blame] [check-ins using] [diff]
2024-01-06
00:52
Initial support for Mbed TLS

Mbed TLS is never automatically picked as a TLS implementation and
always needs to be manually enabled using --with-tls=mbedtls. file: [57d0bfe49e] check-in: [11b2a17595] user: js, branch: trunk, size: 5724 [annotate] [blame] [check-ins using] [diff]

2024-01-02
17:17
Update copyright file: [0af95e980d] check-in: [26ddd2e4e4] user: js, branch: trunk, size: 5574 [annotate] [blame] [check-ins using] [diff]
2023-10-15
12:32
Add -[OFStream lowlevelIsAtEndOfStream]

This allows for a much cleaner solution to avoid the internal read
buffer of e.g. a TLS connection never being processed while waiting for
a delimiter. file: [db5ba510f8] check-in: [a61e0594b4] user: js, branch: trunk, size: 5574 [annotate] [blame] [check-ins using] [diff]

2023-08-30
15:02
Add OFTLSStreamImplementation to Amiga .library file: [1b138c67b4] check-in: [8a48cff63c] user: js, branch: amiga-library, size: 5949 [annotate] [blame] [check-ins using] [diff]
2023-01-06
09:04
Update copyright file: [f204428d75] check-in: [8939cbdb52] user: js, branch: trunk, size: 5779 [annotate] [blame] [check-ins using] [diff]
2022-12-27
13:58
Rename OFAlready{Connected -> Open}Exception file: [e2ca141274] check-in: [29a41e5a78] user: js, branch: trunk, size: 5779 [annotate] [blame] [check-ins using] [diff]
2022-10-21
13:07
Document more exceptions file: [8cbbbbbe33] check-in: [a62b254fda] user: js, branch: trunk, size: 5794 [annotate] [blame] [check-ins using] [diff]
2022-09-26
20:32
Document more exceptions file: [66003bcff2] check-in: [4b8c89a6fe] user: js, branch: trunk, size: 5442 [annotate] [blame] [check-ins using] [diff]
2022-02-12
07:46
Update copyright file: [0ae2a154e2] check-in: [1a86b8175b] user: js, branch: trunk, size: 5377 [annotate] [blame] [check-ins using] [diff]
2021-11-21
10:40
OFTLSStream: wrappedStream -> underlyingStream file: [d05dc14c91] check-in: [3ed8cf7a52] user: js, branch: trunk, size: 5377 [annotate] [blame] [check-ins using] [diff]
2021-11-13
20:28
Add OFSecureTransportTLSStream

This implements OFTLSStream using Apple's Secure Transport. While Secure
Transport is declared deprecated by Apple, Apple so far has failed to
provide a suitable replacement. They recommend Network.framework as a
replacement, however it can neither work on arbitrary sockets, nor can
it do STARTTLS. file: [b3a209020a] check-in: [112eb62f7b] user: js, branch: trunk, size: 5359 [annotate] [blame] [check-ins using] [diff]

13:04
Renamed src/OFTLSSocket.h → src/OFTLSStream.h. 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. file: [c91283e053] check-in: [d30efa8bbf] user: js, branch: trunk, size: 4764 [annotate] [blame] [check-ins using] [diff]

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

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

2021-11-05
22:42
Remove TLS server support

The current API is too tied to OpenSSL. file: [d519c5a780] check-in: [a5a3047210] user: js, branch: trunk, size: 1142 [annotate] [blame] [check-ins using] [diff]

2021-01-02
22:04
Update copyright file: [9df190e90e] check-in: [374e1a1bfa] user: js, branch: trunk, size: 5945 [annotate] [blame] [check-ins using] [diff]
2020-10-03
11:35
Use /** */ instead of /*! */ for documentation file: [c7eec148cd] check-in: [163a4a5a2e] user: js, branch: trunk, size: 6034 [annotate] [blame] [check-ins using] [diff]
2020-05-06
00:32
Improve names of several properties file: [ba822d3148] check-in: [bc67e98833] user: js, branch: trunk, size: 6034 [annotate] [blame] [check-ins using] [diff]
2020-01-02
01:51
Update copyright file: [c867497861] check-in: [c7f0229795] user: js, branch: trunk, size: 6099 [annotate] [blame] [check-ins using] [diff]
2019-01-03
19:13
Update copyright file: [455c68c33a] check-in: [0509d7a844] user: js, branch: trunk, size: 6096 [annotate] [blame] [check-ins using] [diff]
2018-12-08
17:05
OFTLSSocketDelegate: Inherit OFTCPSocketDelegate file: [f1fcb70df5] check-in: [d3a4cda21a] user: js, branch: trunk, size: 6090 [annotate] [blame] [check-ins using] [diff]
2018-01-03
19:49
Update copyright notice file: [d8643617ce] check-in: [7e5c81e186] user: js, branch: trunk, size: 6068 [annotate] [blame] [check-ins using] [diff]
2017-11-18
18:50
Documentation: Use @brief for all properties file: [63562e33e5] check-in: [cc3ad3ddd3] user: js, branch: trunk, size: 6045 [annotate] [blame] [check-ins using] [diff]
2017-10-17
00:33
Do not use implicit method return types

Instead, explicitly declare them, as OF_ASSUME_NONNULL_{BEGIN,END} does
not apply to implicit return types. This means that after this commit,
all init methods have a nonnull return type, as they should have. file: [19564dc0db] check-in: [2f4e0df8be] user: js, branch: trunk, size: 6010 [annotate] [blame] [check-ins using] [diff]

2017-09-10
22:32
Add OFInvocation

Only support for storing an invocation, no support for invoking yet. file: [ece0928c2a] check-in: [d6553b4578] user: js, branch: trunk, size: 5996 [annotate] [blame] [check-ins using] [diff]

2017-08-14
13:33
Always have assign before nonatomic file: [e543ca804e] check-in: [4eab54022e] user: js, branch: trunk, size: 5996 [annotate] [blame] [check-ins using] [diff]
2017-08-11
22:26
Always have retain / copy before nonatomic file: [d2aa75bc01] check-in: [9db36c14b5] user: js, branch: trunk, size: 5996 [annotate] [blame] [check-ins using] [diff]
2017-05-13
16:29
Also use nonatomic for non-object properties file: [ec9c77b08c] check-in: [f663d40cbd] user: js, branch: trunk, size: 5996 [annotate] [blame] [check-ins using] [diff]
2017-05-07
20:10
Small code style change

Casts are now written like types in variable declarations. file: [27187de68b] check-in: [4af49a13c3] user: js, branch: trunk, size: 5955 [annotate] [blame] [check-ins using] [diff]

2017-04-30
13:35
Use nonatomic for properties and clean up

This changes retaining behavior, meaning properties are not returned
retained and autoreleased anymore, so a property returned from a getter
now needs to be manually retained and autoreleased before calling the
setter. However, this is rarely the case and not using atomic improves
performance. file: [b87af1f574] check-in: [0a73af49f0] user: js, branch: trunk, size: 5940 [annotate] [blame] [check-ins using] [diff]

2017-02-04
17:45
Fix typos in comments and strings found by aspell file: [a94a468056] check-in: [5a31a537a1] user: js, branch: trunk, size: 5918 [annotate] [blame] [check-ins using] [diff]
2017-01-09
17:36
Update copyright

Forgot to add 2017, even though I already did quite some changes in
2017. file: [979ca5fd2c] check-in: [44f45c2e35] user: js, branch: trunk, size: 5917 [annotate] [blame] [check-ins using] [diff]

2016-05-05
17:05
OFTLSSocket: Fix wrong protocol for delegate file: [8486e61a20] check-in: [55dc5a174c] user: js, branch: trunk, size: 5911 [annotate] [blame] [check-ins using] [diff]
2016-03-06
17:40
OFTLSSocket: Make use of properties file: [81b5fff19e] check-in: [143c61869a] user: js, branch: trunk, size: 5903 [annotate] [blame] [check-ins using] [diff]
2016-01-03
00:43
Update copyright

While at it, also update the mail address. file: [f7601e6c4d] check-in: [cec0f072f8] user: js, branch: 0.8, size: 7690 [annotate] [blame] [check-ins using] [diff]

00:41
Update copyright

While at it, also update the mail address. file: [e9f441720c] check-in: [2a27cf3000] user: js, branch: trunk, size: 7298 [annotate] [blame] [check-ins using] [diff]

2015-11-29
14:20
Clean up optional protocols

Now that we can require GCC >= 4.6, we no longer need to have a category
on OFObject that adds the optional protocol to it. file: [48c2664a3c] check-in: [ba62f00fac] user: js, branch: trunk, size: 7294 [annotate] [blame] [check-ins using] [diff]

11:43
Make properties a requirement and clean up code

This increases the required GCC version from 4.0 to 4.6 (exception:
Apple GCC, which already supports this with >= 4.0 starting with OS X
10.5). Since even GCC 4.6 is really old by now, there is no point in
still supporting something even older and making the code ugly because
of that. While some hardware and OS support was dropped from GCC 4.6
compared to GCC 4.0, there is nothing in there that would be an
interesting target with the exception of BeOS maybe - but a port to BeOS
can also be achieved using the Haiku support. The other dropped OSes are
mostly old versions of OSes while newer ones are still being supported
(and those newer versions of those OSes still support the same
hardware). file: [991f7cbecd] check-in: [48980f2297] user: js, branch: trunk, size: 7335 [annotate] [blame] [check-ins using] [diff]

2015-11-28
19:47
Minor documentation improvements file: [cc8fcde285] check-in: [650b4be224] user: js, branch: trunk, size: 7697 [annotate] [blame] [check-ins using] [diff]
2015-11-21
19:15
Make -[startTLSWithExpectedHost:] accept nil file: [d16d0183c5] check-in: [684233314d] user: js, branch: trunk, size: 7695 [annotate] [blame] [check-ins using] [diff]
2015-06-17
22:11
Add OF_NULLABLE_PROPERTY

This is necessary to make GCC (>= 4.6 and Apple GCC) happy as they don't
like the list of property attributes ending in a comma. file: [d1223f2527] check-in: [80e1a9655b] user: js, branch: trunk, size: 7686 [annotate] [blame] [check-ins using] [diff]

2015-06-13
22:26
Add support for and use the new nullability file: [968eca3d6d] check-in: [9e76144ef8] user: js, branch: trunk, size: 7649 [annotate] [blame] [check-ins using] [diff]
2015-06-12
23:59
Add support for and use the new ObjC generics file: [a7cdac098b] check-in: [5329fe7c1a] user: js, branch: trunk, size: 7465 [annotate] [blame] [check-ins using] [diff]
2015-05-24
19:16
OFTLSSocket: Improved API for easier verification

Verification is done automatically by default now.

If more complex verification is needed, automatic verification can be
disabled and done manually. file: [59dd8c2542] check-in: [94affb5b29] user: js, branch: trunk, size: 7433 [annotate] [blame] [check-ins using] [diff]

2015-01-03
20:57
Update copyright file: [7025a98220] check-in: [cfd374b906] user: js, branch: trunk, size: 6468 [annotate] [blame] [check-ins using] [diff]
2014-02-18
18:50
Documentation: Show correct imports file: [530e7d1224] check-in: [246cfe0807] user: js, branch: trunk, size: 6462 [annotate] [blame] [check-ins using] [diff]
2014-01-04
00:24
Update copyright. file: [1c57260eef] check-in: [3b97fc3cd9] user: js, branch: trunk, size: 6330 [annotate] [blame] [check-ins using] [diff]
2013-03-31
14:20
OFTLSSocket: Add support for SNI. file: [77e63ab2e0] check-in: [2c65fa15ef] user: js, branch: trunk, size: 6324 [annotate] [blame] [check-ins using] [diff]
10:04
Improve OFTLSSocket protocol. file: [ba8f726fac] check-in: [b7b67d7119] user: js, branch: trunk, size: 3703 [annotate] [blame] [check-ins using] [diff]
2013-03-04
17:20
Replace BOOL with bool.

The only places where BOOL is left are those where they are required by
the ABI. file: [dde8b87a0d] check-in: [c5ef582958] user: js, branch: trunk, size: 3301 [annotate] [blame] [check-ins using] [diff]

2013-01-09
22:24
Update copyright. file: [262e8ae0bb] check-in: [813c00ccf0] user: js, branch: trunk, size: 3301 [annotate] [blame] [check-ins using] [diff]
2013-01-07
13:35
Improve API for UTF-16 strings. file: [dcdc2accee] check-in: [02ca89285f] user: js, branch: trunk, size: 3295 [annotate] [blame] [check-ins using] [diff]
2012-10-29
08:00
Documentation improvements. file: [975f02bdfb] check-in: [7a3977d7fd] user: js, branch: 0.7, size: 3295 [annotate] [blame] [check-ins using] [diff]
07:59
Documentation improvements. file: [9e3217c031] check-in: [63bf4de97b] user: js, branch: trunk, size: 3295 [annotate] [blame] [check-ins using] [diff]
2012-10-28
12:38
Switch to a headerdoc-compatible doc format. file: [351d035ebc] check-in: [1ad9565253] user: js, branch: trunk, size: 3206 [annotate] [blame] [check-ins using] [diff]
2012-09-16
11:52
Update Xcode project. file: [882cb079a6] check-in: [b42e3ea732] user: js, branch: trunk, size: 3206 [annotate] [blame] [check-ins using] [diff]
2012-03-04
22:06
Added: Add OFTLSSocket protocol. file: [8ed655cd30] check-in: [dfe3aadc7e] user: js, branch: trunk, size: 3213 [annotate] [blame] [check-ins using]