Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Commit 5af409d

Browse files
committed
Adjust to ObjFW changes
1 parent cd3d39a commit 5af409d

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/SSLConnectionFailedException.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ + (instancetype)exceptionWithHost: (OFString *)host
117117
{
118118
self = [super initWithHost: host
119119
port: port
120-
socket: socket];
120+
socket: socket
121+
errNo: 0];
121122

122123
_SSLError = SSLError;
123124
_verifyResult = verifyResult;

src/SSLSocket.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,8 @@ - (size_t)lowlevelReadIntoBuffer: (void *)buffer
342342
return 0;
343343

344344
@throw [OFReadFailedException exceptionWithObject: self
345-
requestedLength: length];
345+
requestedLength: length
346+
errNo: 0];
346347
}
347348

348349
if (ret == 0)
@@ -367,7 +368,8 @@ - (void)lowlevelWriteBuffer: (const void *)buffer
367368

368369
if (SSL_write(_SSL, buffer, (int)length) < length)
369370
@throw [OFWriteFailedException exceptionWithObject: self
370-
requestedLength: length];
371+
requestedLength: length
372+
errNo: 0];
371373
}
372374

373375
- (bool)hasDataInReadBuffer

0 commit comments

Comments
 (0)