Implement setting the private key and certificate.
This commit is contained in:
parent
6e5b389529
commit
d8095cf714
2 changed files with 55 additions and 6 deletions
|
@ -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
|
||||
|
|
Reference in a new issue