42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
#define OID_SRVName @"1.3.6.1.5.5.7.8.7"
@interface X509OID: OFObject <OFCopying>
{
OFString *_string;
}
- initWithUTF8String: (const char*)string;
@end
@interface X509Certificate: OFObject
{
X509 *_certificate;
OFDictionary *_issuer;
OFDictionary *_subject;
OFDictionary *_subjectAlternativeName;
}
- initWithFile: (OFString*)file;
- initWithX509Struct: (X509*)cert;
- (OFDictionary*)issuer;
- (OFDictionary*)subject;
- (OFDictionary*)subjectAlternativeName;
- (bool)hasCommonNameMatchingDomain: (OFString*)domain;
- (bool)hasDNSNameMatchingDomain: (OFString*)domain;
- (bool)hasSRVNameMatchingDomain: (OFString*)domain
service: (OFString*)service;
- (bool)X509_isAssertedDomain: (OFString*)asserted
equalDomain: (OFString*)domain;
- (OFDictionary*)X509_dictionaryFromX509Name: (X509_NAME*)name;
- (X509OID*)X509_stringFromASN1Object: (ASN1_OBJECT*)obj;
- (OFString*)X509_stringFromASN1String: (ASN1_STRING*)str;
@end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
#define OID_SRVName @"1.3.6.1.5.5.7.8.7"
@interface X509OID: OFObject <OFCopying>
{
OFString *_string;
}
- initWithUTF8String: (const char *)string;
@end
@interface X509Certificate: OFObject
{
X509 *_certificate;
OFDictionary *_issuer;
OFDictionary *_subject;
OFDictionary *_subjectAlternativeName;
}
- initWithFile: (OFString *)file;
- initWithX509Struct: (X509 *)cert;
- (OFDictionary *)issuer;
- (OFDictionary *)subject;
- (OFDictionary *)subjectAlternativeName;
- (bool)hasCommonNameMatchingDomain: (OFString *)domain;
- (bool)hasDNSNameMatchingDomain: (OFString *)domain;
- (bool)hasSRVNameMatchingDomain: (OFString *)domain
service: (OFString *)service;
- (bool)X509_isAssertedDomain: (OFString *)asserted
equalDomain: (OFString *)domain;
- (OFDictionary *)X509_dictionaryFromX509Name: (X509_NAME *)name;
- (X509OID *)X509_stringFromASN1Object: (ASN1_OBJECT *)obj;
- (OFString *)X509_stringFromASN1String: (ASN1_STRING *)str;
@end
|