ObjOpenSSL  Check-in [ba8d67c63c]

Overview
Comment:Add the number of bytes returned by SSL_pending to -[pendingBytes].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ba8d67c63ce4dbad65dfad7ad2227cb4fa8d5dd6224fc29b7122b1d18d4f3000
User & Date: js on 2011-04-03 19:53:14
Other Links: manifest | tags
Context
2011-04-23
19:54
Adjust to recent ObjFW changes. check-in: a25be8be43 user: js tags: trunk
2011-04-03
19:53
Add the number of bytes returned by SSL_pending to -[pendingBytes]. check-in: ba8d67c63c user: js tags: trunk
2011-03-28
23:59
Fix stupid typo in Makefile. check-in: 10eba7be60 user: js tags: trunk
Changes

Modified src/SSLSocket.m from [3aca96c73c] to [cc0f0dbfcb].

220
221
222
223
224
225
226





227
228
229
230
231
232
233
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238







+
+
+
+
+







	if ((ret = SSL_write(ssl, buf, (int)size)) < 1)
		@throw [OFWriteFailedException newWithClass: isa
						     stream: self
					      requestedSize: size];

	return ret;
}

- (size_t)pendingBytes
{
	return [super pendingBytes] + SSL_pending(ssl);
}

- (void)setPrivateKeyFile: (OFString*)file
{
	OFString *old = privateKeyFile;
	privateKeyFile = [file copy];
	[old release];
}