ObjOpenSSL  Diff

Differences From Artifact [5841f82ac0]:

To Artifact [3aefdbc324]:


351
352
353
354
355
356
357
358

359
360
361
362
363


364


365
366

367

368
369

370
371

372
373
374
375
376
377
378
351
352
353
354
355
356
357

358

359
360
361
362
363
364

365
366
367
368
369

370
371

372
373
374
375
376
377
378
379
380
381
382







-
+
-




+
+
-
+
+


+
-
+

-
+


+








	return ret;
}

- (void)lowlevelWriteBuffer: (const void *)buffer
		     length: (size_t)length
{
	if (length > INT_MAX)
	int bytesWritten;
		@throw [OFOutOfRangeException exception];

	if (_socket == INVALID_SOCKET)
		@throw [OFNotOpenException exceptionWithObject: self];

	if (length > INT_MAX)
		@throw [OFOutOfRangeException exception];
	if (_atEndOfStream)

	if ((bytesWritten = SSL_write(_SSL, buffer, (int)length)) < 0)
		@throw [OFWriteFailedException exceptionWithObject: self
						   requestedLength: length
						      bytesWritten: 0
							     errNo: ENOTCONN];
							     errNo: 0];

	if (SSL_write(_SSL, buffer, (int)length) < length)
	if ((size_t)bytesWritten != length)
		@throw [OFWriteFailedException exceptionWithObject: self
						   requestedLength: length
						      bytesWritten: bytesWritten
							     errNo: 0];
}

- (bool)hasDataInReadBuffer
{
	if (_SSL != NULL && SSL_pending(_SSL) > 0)
		return true;