Adjust to ObjFW changes

This commit is contained in:
Jonathan Schleifer 2017-06-21 23:04:58 +02:00
parent cd3d39a9c2
commit 5af409d4a5
No known key found for this signature in database
GPG key ID: 28D65178B37F33E3
2 changed files with 6 additions and 3 deletions

View file

@ -117,7 +117,8 @@
{
self = [super initWithHost: host
port: port
socket: socket];
socket: socket
errNo: 0];
_SSLError = SSLError;
_verifyResult = verifyResult;

View file

@ -342,7 +342,8 @@ locking_callback(int mode, int n, const char *file, int line)
return 0;
@throw [OFReadFailedException exceptionWithObject: self
requestedLength: length];
requestedLength: length
errNo: 0];
}
if (ret == 0)
@ -367,7 +368,8 @@ locking_callback(int mode, int n, const char *file, int line)
if (SSL_write(_SSL, buffer, (int)length) < length)
@throw [OFWriteFailedException exceptionWithObject: self
requestedLength: length];
requestedLength: length
errNo: 0];
}
- (bool)hasDataInReadBuffer