allow access from objective-c
This commit is contained in:
parent
b9e3de2d50
commit
d8826a9db3
@ -47,7 +47,7 @@
|
|||||||
- (void)testSocketManager {
|
- (void)testSocketManager {
|
||||||
SocketClientManager* manager = [SocketClientManager sharedManager];
|
SocketClientManager* manager = [SocketClientManager sharedManager];
|
||||||
[manager addSocket:self.socket labeledAs:@"test"];
|
[manager addSocket:self.socket labeledAs:@"test"];
|
||||||
[manager removeSocketWithLabel:@"test"];
|
[manager removeSocketWithLabel:@"test"];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
import Security
|
import Security
|
||||||
|
|
||||||
public class SSLCert {
|
public class SSLCert : NSObject {
|
||||||
var certData: NSData?
|
var certData: NSData?
|
||||||
var key: SecKeyRef?
|
var key: SecKeyRef?
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ public class SSLCert {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class SSLSecurity {
|
public class SSLSecurity : NSObject {
|
||||||
public var validatedDN = true //should the domain name be validated?
|
public var validatedDN = true //should the domain name be validated?
|
||||||
|
|
||||||
var isReady = false //is the key processing done?
|
var isReady = false //is the key processing done?
|
||||||
@ -88,6 +88,8 @@ public class SSLSecurity {
|
|||||||
- returns: a representation security object to be used with
|
- returns: a representation security object to be used with
|
||||||
*/
|
*/
|
||||||
public init(certs: [SSLCert], usePublicKeys: Bool) {
|
public init(certs: [SSLCert], usePublicKeys: Bool) {
|
||||||
|
super.init()
|
||||||
|
|
||||||
self.usePublicKeys = usePublicKeys
|
self.usePublicKeys = usePublicKeys
|
||||||
|
|
||||||
if self.usePublicKeys {
|
if self.usePublicKeys {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user