19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
#import "OFASN1Value.h"
OF_ASSUME_NONNULL_BEGIN
#ifdef __cplusplus
extern "C" {
#endif
extern int _OFData_ASN1DERValue_reference;
#ifdef __cplusplus
}
#endif
@interface OFData (ASN1DERValue)
/*!
* @brief The data interpreted as ASN.1 in DER representation and parsed as an
* object.
*
* This is either an OFArray (for a sequence), an OFSet (for a set) or an
* OFASN1Value.
*/
@property (readonly, nonatomic) id ASN1DERValue;
/*!
* @brief Parses the ASN.1 DER representation and returns it as an object.
*
* This is either an OFArray (for a sequence), an OFSet (for a set) or an
* OFASN1Value.
*
* @param depthLimit The maximum depth the parser should accept (defaults to 32
* if not specified, 0 means no limit (insecure!))
* @return The ASN.1 DER representation as an object
*/
- (id)ASN1DERValueWithDepthLimit: (size_t)depthLimit;
@end
OF_ASSUME_NONNULL_END
|
|
|
|
|
|
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
#import "OFASN1Value.h"
OF_ASSUME_NONNULL_BEGIN
#ifdef __cplusplus
extern "C" {
#endif
extern int _OFData_ASN1DERParsing_reference;
#ifdef __cplusplus
}
#endif
@interface OFData (ASN1DERParsing)
/*!
* @brief The data interpreted as ASN.1 in DER representation and parsed as an
* object.
*
* This is either an OFArray (for a sequence), an OFSet (for a set) or an
* OFASN1Value.
*/
@property (readonly, nonatomic) id objectByParsingASN1DER;
/*!
* @brief Parses the ASN.1 DER representation and returns it as an object.
*
* This is either an OFArray (for a sequence), an OFSet (for a set) or an
* OFASN1Value.
*
* @param depthLimit The maximum depth the parser should accept (defaults to 32
* if not specified, 0 means no limit (insecure!))
* @return The ASN.1 DER representation as an object
*/
- (id)objectByParsingASN1DERWithDepthLimit: (size_t)depthLimit;
@end
OF_ASSUME_NONNULL_END
|