Differences From Artifact [d6f41e909e]:
- File
src/OFTLSSocket.m
— part of check-in
[34cb121dc5]
at
2021-11-06 00:10:48
on branch trunk
— Make OFTLSSocket an abstract class
This should make it easier to add TLS support using various
implementations. (user: js, size: 4757) [annotate] [blame] [check-ins using]
To Artifact [d04b51f1a5]:
- File src/OFTLSSocket.m — part of check-in [746ddd7d7f] at 2021-11-06 17:36:29 on branch trunk — Fix OFTLSSocket for the case sockets are not FDs (user: js, size: 4709) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
127 128 129 130 131 132 133 |
{
self = [super init];
@try {
if ([socket isKindOfClass: [OFTLSSocket class]])
@throw [OFInvalidArgumentException exception];
| > | < | 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
{
self = [super init];
@try {
if ([socket isKindOfClass: [OFTLSSocket class]])
@throw [OFInvalidArgumentException exception];
_socket = socket->_socket;
socket->_socket = OFInvalidSocketHandle;
_verifiesCertificates = true;
} @catch (id e) {
[self release];
@throw e;
}
|
| ︙ | ︙ |