JunkBox_Lib  1.10.2
asn1_node.h
Go to the documentation of this file.
1 #ifndef __JBXL_JBXL_ASN1_NODE_H_
2 #define __JBXL_JBXL_ASN1_NODE_H_
3 
4 #include "buffer.h"
5 #include "asn1_tool.h"
6 
7 //
8 // http://www5d.biglobe.ne.jp/stssk/asn1/index.html
9 //
10 
11 #define JBXL_ASN1_ANCHOR 0xff
12 
13 #define JBXL_ASN1_PRIMITIVE 0x00
14 #define JBXL_ASN1_CNSTRCTD 0x20
15 
16 #define JBXL_ASN1_UNIVERSAL 0x00
17 #define JBXL_ASN1_APPLI 0x40
18 #define JBXL_ASN1_CONTEXT 0x80
19 #define JBXL_ASN1_PRIVATE 0xc0
20 
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
37 
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
51 
52 #define JBXL_ASN1_SEQ_CNSTRCTD 0x30
53 #define JBXL_ASN1_SET_CNSTRCTD 0x31
54 
55 
56 void asn1_print_id(FILE* fp, int id);
57 void asn1_id_type(int id, int* type, int* cnst, int* tag);
58 void asn1_print_tag_value(FILE* fp, int tag, Buffer buf);
59 
60 
61 #endif // __JBXL_JBXL_ASN1_TOOL_H_
void asn1_print_tag_value(FILE *fp, int tag, Buffer buf)
Definition: asn1_node.c:92
void asn1_print_id(FILE *fp, int id)
Definition: asn1_node.c:76
void asn1_id_type(int id, int *type, int *cnst, int *tag)
Definition: asn1_node.c:63
ASN.1/DER 用ライブラリヘッダ
Buffer型サポートヘッダ
unsigned char ** buf
Definition: jpeg_tool.h:96
Definition: buffer.h:35