3 * 'OpenSSL for Ruby' team members
8 * This program is licenced under the same licence as Ruby.
9 * (See the file 'LICENCE'.)
11 #if !defined(_OSSL_ASN1_H_)
15 * ASN1_DATE conversions
17 VALUE
asn1time_to_time(ASN1_TIME
*);
18 time_t time_to_time_t(VALUE
);
21 * ASN1_STRING conversions
23 VALUE
asn1str_to_str(ASN1_STRING
*);
26 * ASN1_INTEGER conversions
28 VALUE
asn1integer_to_num(ASN1_INTEGER
*);
29 ASN1_INTEGER
*num_to_asn1integer(VALUE
, ASN1_INTEGER
*);
35 extern VALUE eASN1Error
;
37 extern VALUE cASN1Data
;
38 extern VALUE cASN1Primitive
;
39 extern VALUE cASN1Constructive
;
41 extern VALUE cASN1Boolean
; /* BOOLEAN */
42 extern VALUE cASN1Integer
, cASN1Enumerated
; /* INTEGER */
43 extern VALUE cASN1BitString
; /* BIT STRING */
44 extern VALUE cASN1OctetString
, cASN1UTF8String
; /* STRINGs */
45 extern VALUE cASN1NumericString
, cASN1PrintableString
;
46 extern VALUE cASN1T61String
, cASN1VideotexString
;
47 extern VALUE cASN1IA5String
, cASN1GraphicString
;
48 extern VALUE cASN1ISO64String
, cASN1GeneralString
;
49 extern VALUE cASN1UniversalString
, cASN1BMPString
;
50 extern VALUE cASN1Null
; /* NULL */
51 extern VALUE cASN1ObjectId
; /* OBJECT IDENTIFIER */
52 extern VALUE cASN1UTCTime
, cASN1GeneralizedTime
; /* TIME */
53 extern VALUE cASN1Sequence
, cASN1Set
; /* CONSTRUCTIVE */
55 ASN1_TYPE
*ossl_asn1_get_asn1type(VALUE
);
57 void Init_ossl_asn1(void);