Experimental SSL support
This commit is contained in:
@@ -9,13 +9,26 @@
|
||||
#import "MBIMHTTPConnection.h"
|
||||
|
||||
#import "MBIMBridge.h"
|
||||
#import "MBIMBridge_Private.h"
|
||||
#import "MBIMBridgeOperation.h"
|
||||
|
||||
#import <Security/Security.h>
|
||||
|
||||
@implementation MBIMHTTPConnection {
|
||||
NSMutableData *_bodyData;
|
||||
MBIMBridgeOperation *_currentOperation;
|
||||
}
|
||||
|
||||
- (BOOL)isSecureServer
|
||||
{
|
||||
return [[MBIMBridge sharedInstance] usesSSL];
|
||||
}
|
||||
|
||||
- (NSArray *)sslIdentityAndCertificates
|
||||
{
|
||||
return [[MBIMBridge sharedInstance] sslCertificateAndIdentity];
|
||||
}
|
||||
|
||||
- (BOOL)supportsMethod:(NSString *)method atPath:(NSString *)path
|
||||
{
|
||||
if ([method isEqualToString:@"GET"] || [method isEqualToString:@"POST"]) {
|
||||
|
||||
Reference in New Issue
Block a user