ObjOpenSSL  Check-in [60a6491ea5]

Overview
Comment:Correctly check return value of SSL_write.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 60a6491ea58ce7ffcc2ee1a39a44d560c91239cdaa025d8d6d2afad4e1cdf86f
User & Date: js on 2011-09-11 02:07:08
Other Links: manifest | tags
Context
2011-09-12
20:05
Update to recent ObjFW changes. check-in: 10e7f26817 user: js tags: trunk
2011-09-11
02:07
Correctly check return value of SSL_write. check-in: 60a6491ea5 user: js tags: trunk
02:03
Fix forgotten change. check-in: 7abcafcb74 user: js tags: trunk
Changes

Modified src/SSLSocket.m from [8f42d0a3cf] to [a0165c5a38].

241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
#else
		e->errNo = WSAENOTCONN;
#endif

		@throw e;
	}

	if (SSL_write(ssl, buffer, (int)length) < 1)
		@throw [OFWriteFailedException newWithClass: isa
						     stream: self
					    requestedLength: length];
}

- (size_t)pendingBytes
{







|







241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
#else
		e->errNo = WSAENOTCONN;
#endif

		@throw e;
	}

	if (SSL_write(ssl, buffer, (int)length) < length)
		@throw [OFWriteFailedException newWithClass: isa
						     stream: self
					    requestedLength: length];
}

- (size_t)pendingBytes
{