Implement setting the private key and certificate.

This commit is contained in:
Jonathan Schleifer 2011-03-29 00:23:32 +02:00
parent 6e5b389529
commit d8095cf714
2 changed files with 55 additions and 6 deletions

View file

@ -5,10 +5,20 @@
@interface SSLSocket: OFTCPSocket
{
SSL *ssl;
OFString *privateKeyFile;
OFString *certificateFile;
}
- initWithSocket: (OFTCPSocket*)socket;
#ifdef OF_HAVE_PROPERTIES
@property (copy) OFString *privateKeyFile;
@property (copy) OFString *certificateFile;
#endif
- initWithSocket: (OFTCPSocket*)socket;
/* Change the return type */
- (SSLSocket*)accept;
- (void)setPrivateKeyFile: (OFString*)file;
- (OFString*)privateKeyFile;
- (void)setCertificateFile: (OFString*)file;
- (OFString*)certificateFile;
@end