ObjOpenSSL  Check-in [5695c6cedc]

Overview
Comment:Only call SSL_shutdown if we have an SSL context.
This would otherwise cause trouble for listening sockets.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 5695c6cedc75c2a277c0efe59329aa54464fb8ffd7886caa948fb2a0a73bf05e
User & Date: js on 2011-10-22 16:33:04
Other Links: manifest | tags
Context
2011-10-22
16:36
Register helpers for thread-safety with OpenSSL. check-in: 54c783b25f user: jos@kuijpersvof.nl tags: trunk
16:33
Only call SSL_shutdown if we have an SSL context.
This would otherwise cause trouble for listening sockets.
check-in: 5695c6cedc user: js tags: trunk
15:46
Use -[pendingBytes] of the superclass if we have no SSL context.
This happens if we are a listening socket.
check-in: 704eff4870 user: js tags: trunk
Changes

Modified src/SSLSocket.m from [4d5d5d3a67] to [caea951286].

178
179
180
181
182
183
184

185
186
187
188
189
190
191
192
	}

	return newSocket;
}

- (void)close
{

	SSL_shutdown(ssl);

	[super close];
}

- (size_t)_readNBytes: (size_t)length
	   intoBuffer: (void*)buffer
{







>
|







178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
	}

	return newSocket;
}

- (void)close
{
	if (ssl != NULL)
		SSL_shutdown(ssl);

	[super close];
}

- (size_t)_readNBytes: (size_t)length
	   intoBuffer: (void*)buffer
{