1 #ifndef __JBXL_JBXL_ASN1_NODE_H_
2 #define __JBXL_JBXL_ASN1_NODE_H_
11 #define JBXL_ASN1_ANCHOR 0xff
13 #define JBXL_ASN1_PRIMITIVE 0x00
14 #define JBXL_ASN1_CNSTRCTD 0x20
16 #define JBXL_ASN1_UNIVERSAL 0x00
17 #define JBXL_ASN1_APPLI 0x40
18 #define JBXL_ASN1_CONTEXT 0x80
19 #define JBXL_ASN1_PRIVATE 0xc0
21 #define JBXL_ASN1_END 0x00
22 #define JBXL_ASN1_BOOL 0x01
23 #define JBXL_ASN1_INT 0x02
24 #define JBXL_ASN1_BIT 0x03
25 #define JBXL_ASN1_OCT 0x04
26 #define JBXL_ASN1_NULL 0x05
27 #define JBXL_ASN1_OBJ 0x06
28 #define JBXL_ASN1_DSC 0x07
29 #define JBXL_ASN1_EXT 0x08
30 #define JBXL_ASN1_REAL 0x09
31 #define JBXL_ASN1_ENU 0x0a
32 #define JBXL_ASN1_EMB 0x0b
33 #define JBXL_ASN1_UTF8 0x0c
34 #define JBXL_ASN1_OID 0x0d
35 #define JBXL_ASN1_SEQ 0x10
36 #define JBXL_ASN1_SET 0x11
38 #define JBXL_ASN1_NMSTR 0x12
39 #define JBXL_ASN1_PRSTR 0x13
40 #define JBXL_ASN1_TLSTR 0x14
41 #define JBXL_ASN1_VDSTR 0x15
42 #define JBXL_ASN1_IA5 0x16
43 #define JBXL_ASN1_UTC 0x17
44 #define JBXL_ASN1_GTM 0x18
45 #define JBXL_ASN1_GRSTR 0x19
46 #define JBXL_ASN1_VSSTR 0x1a
47 #define JBXL_ASN1_GNSTR 0x1b
48 #define JBXL_ASN1_UNSTR 0x1c
49 #define JBXL_ASN1_CHSTR 0x1d
50 #define JBXL_ASN1_BMSTR 0x1e
52 #define JBXL_ASN1_SEQ_CNSTRCTD 0x30
53 #define JBXL_ASN1_SET_CNSTRCTD 0x31
57 void asn1_id_type(
int id,
int* type,
int* cnst,
int* tag);
void asn1_print_tag_value(FILE *fp, int tag, Buffer buf)
void asn1_print_id(FILE *fp, int id)
void asn1_id_type(int id, int *type, int *cnst, int *tag)