root / asi-http-request-with-pithos / Classes / Tests / ClientCertificateTests.h @ be116d22
History | View | Annotate | Download (639 Bytes)
1 |
//
|
---|---|
2 |
// ClientCertificateTests.h
|
3 |
// Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest
|
4 |
//
|
5 |
// Created by Ben Copsey on 18/08/2010.
|
6 |
// Copyright 2010 All-Seeing Interactive. All rights reserved.
|
7 |
//
|
8 |
|
9 |
// Currently, these tests only work on iOS - it looks like the method for parsing the PKCS12 file would need to be ported
|
10 |
|
11 |
#import <Foundation/Foundation.h>
|
12 |
#import <Security/Security.h>
|
13 |
#import "ASITestCase.h" |
14 |
|
15 |
@interface ClientCertificateTests : ASITestCase {
|
16 |
|
17 |
} |
18 |
- (void)testClientCertificate;
|
19 |
+ (BOOL)extractIdentity:(SecIdentityRef *)outIdentity andTrust:(SecTrustRef*)outTrust fromPKCS12Data:(NSData *)inPKCS12Data; |
20 |
|
21 |
@end
|