From 5af409d4a5d8fb8386045d1011ce771b690d2ed9 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Wed, 21 Jun 2017 23:04:58 +0200 Subject: [PATCH] Adjust to ObjFW changes --- src/SSLConnectionFailedException.m | 3 ++- src/SSLSocket.m | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/SSLConnectionFailedException.m b/src/SSLConnectionFailedException.m index 545263f..21eb263 100644 --- a/src/SSLConnectionFailedException.m +++ b/src/SSLConnectionFailedException.m @@ -117,7 +117,8 @@ { self = [super initWithHost: host port: port - socket: socket]; + socket: socket + errNo: 0]; _SSLError = SSLError; _verifyResult = verifyResult; diff --git a/src/SSLSocket.m b/src/SSLSocket.m index ad1533b..85ad610 100644 --- a/src/SSLSocket.m +++ b/src/SSLSocket.m @@ -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