ObjFW
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
src
OFTLSSocket.h
1
/*
2
* Copyright (c) 2008, 2009, 2010, 2011, 2012
3
* Jonathan Schleifer <js@webkeks.org>
4
*
5
* All rights reserved.
6
*
7
* This file is part of ObjFW. It may be distributed under the terms of the
8
* Q Public License 1.0, which can be found in the file LICENSE.QPL included in
9
* the packaging of this file.
10
*
11
* Alternatively, it may be distributed under the terms of the GNU General
12
* Public License, either version 2 or 3, which can be found in the file
13
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
14
* file.
15
*/
16
17
#import "objfw-defs.h"
18
19
@class
OFString
;
20
@class
OFArray
;
21
@protocol
OFTLSSocket
;
22
26
@protocol
OFTLSSocketDelegate
35
- (BOOL)socket: (
id
<
OFTLSSocket
>)socket
36
shouldAcceptKeychain: (
OFArray
*)keychain;
37
@end
38
43
@protocol
OFTLSSocket
44
#ifdef OF_HAVE_PROPERTIES
45
@property
(assign) id <OFTLSSocketDelegate>
delegate
;
46
@property
(copy)
OFString
*
certificateFile
, *
privateKeyFile
;
47
@property
const
char
*
privateKeyPassphrase
;
48
#endif
49
55
- (void)setDelegate: (
id
<
OFTLSSocketDelegate
>)delegate;
56
62
- (
id
<
OFTLSSocketDelegate
>)delegate;
63
69
- (void)setCertificateFile: (
OFString
*)certificateFile;
70
76
- (
OFString
*)certificateFile;
77
83
- (void)setPrivateKeyFile: (
OFString
*)privateKeyFile;
84
91
- (
OFString
*)privateKeyFile;
92
102
- (void)setPrivateKeyPassphrase: (const
char
*)privateKeyPassphrase;
103
111
- (const char*)
privateKeyPassphrase
;
112
@end
Generated on Sat Oct 27 2012 22:27:14 for ObjFW by
1.8.2