34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#define ID_localityName @"2.5.4.7"
#define OID_stateOrProvinceName @"2.5.4.8"
#define OID_streetAddress @"2.5.4.9"
#define OID_organizationName @"2.5.4.10"
#define OID_organizationalUnitName @"2.5.4.11"
#define OID_SRVName @"1.3.6.1.5.5.7.8.7"
@interface X509Certificate: OFObject
{
X509 *crt;
OFDictionary *issuer;
OFDictionary *subject;
OFDictionary *subjectAlternativeName;
|
>
>
>
>
>
>
>
|
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
#define ID_localityName @"2.5.4.7"
#define OID_stateOrProvinceName @"2.5.4.8"
#define OID_streetAddress @"2.5.4.9"
#define OID_organizationName @"2.5.4.10"
#define OID_organizationalUnitName @"2.5.4.11"
#define OID_SRVName @"1.3.6.1.5.5.7.8.7"
@interface X509OID: OFObject <OFCopying>
{
OFString *string;
}
- initWithUTF8String: (const char*) str;
@end
@interface X509Certificate: OFObject
{
X509 *crt;
OFDictionary *issuer;
OFDictionary *subject;
OFDictionary *subjectAlternativeName;
|
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
- (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;
- (OFString*)X509_stringFromASN1Object: (ASN1_OBJECT*)obj;
- (OFString*)X509_stringFromASN1String: (ASN1_STRING*)str;
@end
@interface X509OID: OFObject <OFCopying>
{
OFString *string;
}
@end
|
|
<
<
<
<
<
|
66
67
68
69
70
71
72
73
74
75
76
|
- (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
|