1 /*************************************************/
3 /* Description: list of exported object by */
5 /*************************************************/
10 #include "x509_asn1.h"
12 #define UNIVERSAL 0x00
13 #define APPLICATION 0x40
14 #define CONTEXT_SPECIFIC 0x80
16 #define STRUCTURED 0x20
20 _asn1_octet_der(unsigned char *str
,int str_len
,unsigned char *der
,int *der_len
);
23 _asn1_get_octet_der(unsigned char *der
,int *der_len
,unsigned char *str
,int str_size
, int *str_len
);
26 _asn1_bit_der(unsigned char *str
,int bit_len
,unsigned char *der
,int *der_len
);
29 _asn1_get_bit_der(unsigned char *der
,int *der_len
,unsigned char *str
, int str_size
, int *bit_len
);
32 asn1_create_der(node_asn
*root
,char *name
,unsigned char *der
,int *len
);
35 asn1_get_der(node_asn
*root
,unsigned char *der
,int len
);
38 asn1_get_start_end_der(node_asn
*root
,unsigned char *der
,int len
,char *name_element
,int *start
, int *end
);
41 _asn1_get_length_der(unsigned char *der
,int *len
);
44 _asn1_length_der(unsigned long len
,unsigned char *ans
,int *ans_len
);
47 _asn1_ltostr(long v
,char *str
);