Add the number of bytes returned by SSL_pending to -[pendingBytes].

This commit is contained in:
Jonathan Schleifer 2011-04-03 21:53:14 +02:00
parent bbce7d7ed1
commit 22d29b2a53

View file

@ -225,6 +225,11 @@ static SSL_CTX *ctx;
return ret; return ret;
} }
- (size_t)pendingBytes
{
return [super pendingBytes] + SSL_pending(ssl);
}
- (void)setPrivateKeyFile: (OFString*)file - (void)setPrivateKeyFile: (OFString*)file
{ {
OFString *old = privateKeyFile; OFString *old = privateKeyFile;