ObjOpenSSL  Diff

Differences From Artifact [89dcbc8ece]:

To Artifact [5dc22a018c]:


239
240
241
242
243
244
245
246
247


248
249
250
251
252
253
254
239
240
241
242
243
244
245


246
247
248
249
250
251
252
253
254







-
-
+
+







{
	if (ssl != NULL)
		SSL_shutdown(ssl);

	[super close];
}

- (size_t)_readIntoBuffer: (void*)buffer
		   length: (size_t)length
- (size_t)lowlevelReadIntoBuffer: (void*)buffer
			  length: (size_t)length
{
	ssize_t ret;

	if (length > INT_MAX)
		@throw [OFOutOfRangeException exceptionWithClass: [self class]];

	if (sock == INVALID_SOCKET)
281
282
283
284
285
286
287
288
289


290
291
292
293
294
295
296
281
282
283
284
285
286
287


288
289
290
291
292
293
294
295
296







-
-
+
+








	if (ret == 0)
		atEndOfStream = YES;

	return ret;
}

- (void)_writeBuffer: (const void*)buffer
	      length: (size_t)length
- (void)lowlevelWriteBuffer: (const void*)buffer
		     length: (size_t)length
{
	if (length > INT_MAX)
		@throw [OFOutOfRangeException exceptionWithClass: [self class]];

	if (sock == INVALID_SOCKET)
		@throw [OFNotConnectedException exceptionWithClass: [self class]
							    socket: self];