ObjOpenSSL  Check-in [87c3eab6d6]

Overview
Comment:Adjust to latest ObjFW changes.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 87c3eab6d69695dafa2a362cb808293e7d9cc3df98ddfa7c452c07d9350fd59c
User & Date: js on 2012-09-20 00:14:04
Other Links: manifest | tags
Context
2012-10-27
18:23
Adjust to recent ObjFW changes. check-in: 41f9946113 user: js tags: trunk
2012-09-20
00:14
Adjust to latest ObjFW changes. check-in: 87c3eab6d6 user: js tags: trunk
2012-09-17
15:51
Indention. check-in: a95890e7ce user: js tags: trunk
Changes

Modified src/SSLSocket.m from [89dcbc8ece] to [5dc22a018c].

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
{
	ssize_t ret;

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

	if (sock == INVALID_SOCKET)







|
|







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)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

	if (ret == 0)
		atEndOfStream = YES;

	return ret;
}

- (void)_writeBuffer: (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];







|
|







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

	if (ret == 0)
		atEndOfStream = YES;

	return ret;
}

- (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];