|
|
@ -281,60 +281,50 @@ typedef struct asn1_header_st |
|
|
|
ASN1_METHOD *meth; |
|
|
|
} ASN1_HEADER; |
|
|
|
|
|
|
|
#define ASN1_STRING_length(x) ((x)->length) |
|
|
|
#define ASN1_STRING_type(x) ((x)->type) |
|
|
|
#define ASN1_STRING_data(x) ((x)->data) |
|
|
|
#define M_ASN1_STRING_length(x) ((x)->length) |
|
|
|
#define M_ASN1_STRING_length_set(x, n) ((x)->length = (n)) |
|
|
|
#define M_ASN1_STRING_type(x) ((x)->type) |
|
|
|
#define M_ASN1_STRING_data(x) ((x)->data) |
|
|
|
|
|
|
|
/* Macros for string operations */ |
|
|
|
#define ASN1_BIT_STRING_new() (ASN1_BIT_STRING *)\ |
|
|
|
#define M_ASN1_BIT_STRING_new() (ASN1_BIT_STRING *)\ |
|
|
|
ASN1_STRING_type_new(V_ASN1_BIT_STRING) |
|
|
|
#define ASN1_BIT_STRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define ASN1_BIT_STRING_dup(a) (ASN1_BIT_STRING *)\ |
|
|
|
#define M_ASN1_BIT_STRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_ASN1_BIT_STRING_dup(a) (ASN1_BIT_STRING *)\ |
|
|
|
ASN1_STRING_dup((ASN1_STRING *)a) |
|
|
|
#define ASN1_BIT_STRING_cmp(a,b) ASN1_STRING_cmp(\ |
|
|
|
#define M_ASN1_BIT_STRING_cmp(a,b) ASN1_STRING_cmp(\ |
|
|
|
(ASN1_STRING *)a,(ASN1_STRING *)b) |
|
|
|
#define ASN1_BIT_STRING_set(a,b,c) ASN1_STRING_set((ASN1_STRING *)a,b,c) |
|
|
|
/* i2d_ASN1_BIT_STRING() is a function */ |
|
|
|
/* d2i_ASN1_BIT_STRING() is a function */ |
|
|
|
#define M_ASN1_BIT_STRING_set(a,b,c) ASN1_STRING_set((ASN1_STRING *)a,b,c) |
|
|
|
|
|
|
|
#define ASN1_INTEGER_new() (ASN1_INTEGER *)\ |
|
|
|
#define M_ASN1_INTEGER_new() (ASN1_INTEGER *)\ |
|
|
|
ASN1_STRING_type_new(V_ASN1_INTEGER) |
|
|
|
#define ASN1_INTEGER_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define ASN1_INTEGER_dup(a) (ASN1_INTEGER *)ASN1_STRING_dup((ASN1_STRING *)a) |
|
|
|
#define ASN1_INTEGER_cmp(a,b) ASN1_STRING_cmp(\ |
|
|
|
#define M_ASN1_INTEGER_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_ASN1_INTEGER_dup(a) (ASN1_INTEGER *)ASN1_STRING_dup((ASN1_STRING *)a) |
|
|
|
#define M_ASN1_INTEGER_cmp(a,b) ASN1_STRING_cmp(\ |
|
|
|
(ASN1_STRING *)a,(ASN1_STRING *)b) |
|
|
|
/* ASN1_INTEGER_set() is a function, also see BN_to_ASN1_INTEGER() */ |
|
|
|
/* ASN1_INTEGER_get() is a function, also see ASN1_INTEGER_to_BN() */ |
|
|
|
/* i2d_ASN1_INTEGER() is a function */ |
|
|
|
/* d2i_ASN1_INTEGER() is a function */ |
|
|
|
|
|
|
|
#define ASN1_ENUMERATED_new() (ASN1_ENUMERATED *)\ |
|
|
|
#define M_ASN1_ENUMERATED_new() (ASN1_ENUMERATED *)\ |
|
|
|
ASN1_STRING_type_new(V_ASN1_ENUMERATED) |
|
|
|
#define ASN1_ENUMERATED_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define ASN1_ENUMERATED_dup(a) (ASN1_ENUMERATED *)ASN1_STRING_dup((ASN1_STRING *)a) |
|
|
|
#define ASN1_ENUMERATED_cmp(a,b) ASN1_STRING_cmp(\ |
|
|
|
#define M_ASN1_ENUMERATED_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_ASN1_ENUMERATED_dup(a) (ASN1_ENUMERATED *)ASN1_STRING_dup((ASN1_STRING *)a) |
|
|
|
#define M_ASN1_ENUMERATED_cmp(a,b) ASN1_STRING_cmp(\ |
|
|
|
(ASN1_STRING *)a,(ASN1_STRING *)b) |
|
|
|
/* ASN1_ENUMERATED_set() is a function, also see BN_to_ASN1_ENUMERATED() */ |
|
|
|
/* ASN1_ENUMERATED_get() is a function, also see ASN1_ENUMERATED_to_BN() */ |
|
|
|
/* i2d_ASN1_ENUMERATED() is a function */ |
|
|
|
/* d2i_ASN1_ENUMERATED() is a function */ |
|
|
|
|
|
|
|
#define ASN1_OCTET_STRING_new() (ASN1_OCTET_STRING *)\ |
|
|
|
#define M_ASN1_OCTET_STRING_new() (ASN1_OCTET_STRING *)\ |
|
|
|
ASN1_STRING_type_new(V_ASN1_OCTET_STRING) |
|
|
|
#define ASN1_OCTET_STRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define ASN1_OCTET_STRING_dup(a) (ASN1_OCTET_STRING *)\ |
|
|
|
#define M_ASN1_OCTET_STRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_ASN1_OCTET_STRING_dup(a) (ASN1_OCTET_STRING *)\ |
|
|
|
ASN1_STRING_dup((ASN1_STRING *)a) |
|
|
|
#define ASN1_OCTET_STRING_cmp(a,b) ASN1_STRING_cmp(\ |
|
|
|
#define M_ASN1_OCTET_STRING_cmp(a,b) ASN1_STRING_cmp(\ |
|
|
|
(ASN1_STRING *)a,(ASN1_STRING *)b) |
|
|
|
#define ASN1_OCTET_STRING_set(a,b,c) ASN1_STRING_set((ASN1_STRING *)a,b,c) |
|
|
|
#define ASN1_OCTET_STRING_print(a,b) ASN1_STRING_print(a,(ASN1_STRING *)b) |
|
|
|
#define M_ASN1_OCTET_STRING_set(a,b,c) ASN1_STRING_set((ASN1_STRING *)a,b,c) |
|
|
|
#define M_ASN1_OCTET_STRING_print(a,b) ASN1_STRING_print(a,(ASN1_STRING *)b) |
|
|
|
#define M_i2d_ASN1_OCTET_STRING(a,pp) \ |
|
|
|
i2d_ASN1_bytes((ASN1_STRING *)a,pp,V_ASN1_OCTET_STRING,\ |
|
|
|
V_ASN1_OCTET_STRING) |
|
|
|
/* d2i_ASN1_OCTET_STRING() is a function */ |
|
|
|
V_ASN1_UNIVERSAL) |
|
|
|
|
|
|
|
#define ASN1_PRINTABLE_new() ASN1_STRING_type_new(V_ASN1_T61STRING) |
|
|
|
#define ASN1_PRINTABLE_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_ASN1_PRINTABLE_new() ASN1_STRING_type_new(V_ASN1_T61STRING) |
|
|
|
#define M_ASN1_PRINTABLE_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_i2d_ASN1_PRINTABLE(a,pp) i2d_ASN1_bytes((ASN1_STRING *)a,\ |
|
|
|
pp,a->type,V_ASN1_UNIVERSAL) |
|
|
|
#define M_d2i_ASN1_PRINTABLE(a,pp,l) \ |
|
|
@ -345,10 +335,11 @@ typedef struct asn1_header_st |
|
|
|
B_ASN1_BIT_STRING| \ |
|
|
|
B_ASN1_UNIVERSALSTRING|\ |
|
|
|
B_ASN1_BMPSTRING|\ |
|
|
|
B_ASN1_UTF8STRING|\ |
|
|
|
B_ASN1_UNKNOWN) |
|
|
|
|
|
|
|
#define DIRECTORYSTRING_new() ASN1_STRING_type_new(V_ASN1_PRINTABLESTRING) |
|
|
|
#define DIRECTORYSTRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_DIRECTORYSTRING_new() ASN1_STRING_type_new(V_ASN1_PRINTABLESTRING) |
|
|
|
#define M_DIRECTORYSTRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_i2d_DIRECTORYSTRING(a,pp) i2d_ASN1_bytes((ASN1_STRING *)a,\ |
|
|
|
pp,a->type,V_ASN1_UNIVERSAL) |
|
|
|
#define M_d2i_DIRECTORYSTRING(a,pp,l) \ |
|
|
@ -359,8 +350,8 @@ typedef struct asn1_header_st |
|
|
|
B_ASN1_UNIVERSALSTRING|\ |
|
|
|
B_ASN1_UTF8STRING) |
|
|
|
|
|
|
|
#define DISPLAYTEXT_new() ASN1_STRING_type_new(V_ASN1_VISIBLESTRING) |
|
|
|
#define DISPLAYTEXT_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_DISPLAYTEXT_new() ASN1_STRING_type_new(V_ASN1_VISIBLESTRING) |
|
|
|
#define M_DISPLAYTEXT_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_i2d_DISPLAYTEXT(a,pp) i2d_ASN1_bytes((ASN1_STRING *)a,\ |
|
|
|
pp,a->type,V_ASN1_UNIVERSAL) |
|
|
|
#define M_d2i_DISPLAYTEXT(a,pp,l) \ |
|
|
@ -369,9 +360,9 @@ typedef struct asn1_header_st |
|
|
|
B_ASN1_BMPSTRING|\ |
|
|
|
B_ASN1_UTF8STRING) |
|
|
|
|
|
|
|
#define ASN1_PRINTABLESTRING_new() (ASN1_PRINTABLESTRING *)\ |
|
|
|
#define M_ASN1_PRINTABLESTRING_new() (ASN1_PRINTABLESTRING *)\ |
|
|
|
ASN1_STRING_type_new(V_ASN1_PRINTABLESTRING) |
|
|
|
#define ASN1_PRINTABLESTRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_ASN1_PRINTABLESTRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_i2d_ASN1_PRINTABLESTRING(a,pp) \ |
|
|
|
i2d_ASN1_bytes((ASN1_STRING *)a,pp,V_ASN1_PRINTABLESTRING,\ |
|
|
|
V_ASN1_UNIVERSAL) |
|
|
@ -379,9 +370,9 @@ typedef struct asn1_header_st |
|
|
|
(ASN1_PRINTABLESTRING *)d2i_ASN1_type_bytes\ |
|
|
|
((ASN1_STRING **)a,pp,l,B_ASN1_PRINTABLESTRING) |
|
|
|
|
|
|
|
#define ASN1_T61STRING_new() (ASN1_T61STRING *)\ |
|
|
|
#define M_ASN1_T61STRING_new() (ASN1_T61STRING *)\ |
|
|
|
ASN1_STRING_type_new(V_ASN1_T61STRING) |
|
|
|
#define ASN1_T61STRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_ASN1_T61STRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_i2d_ASN1_T61STRING(a,pp) \ |
|
|
|
i2d_ASN1_bytes((ASN1_STRING *)a,pp,V_ASN1_T61STRING,\ |
|
|
|
V_ASN1_UNIVERSAL) |
|
|
@ -389,10 +380,10 @@ typedef struct asn1_header_st |
|
|
|
(ASN1_T61STRING *)d2i_ASN1_type_bytes\ |
|
|
|
((ASN1_STRING **)a,pp,l,B_ASN1_T61STRING) |
|
|
|
|
|
|
|
#define ASN1_IA5STRING_new() (ASN1_IA5STRING *)\ |
|
|
|
#define M_ASN1_IA5STRING_new() (ASN1_IA5STRING *)\ |
|
|
|
ASN1_STRING_type_new(V_ASN1_IA5STRING) |
|
|
|
#define ASN1_IA5STRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define ASN1_IA5STRING_dup(a) \ |
|
|
|
#define M_ASN1_IA5STRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_ASN1_IA5STRING_dup(a) \ |
|
|
|
(ASN1_IA5STRING *)ASN1_STRING_dup((ASN1_STRING *)a) |
|
|
|
#define M_i2d_ASN1_IA5STRING(a,pp) \ |
|
|
|
i2d_ASN1_bytes((ASN1_STRING *)a,pp,V_ASN1_IA5STRING,\ |
|
|
@ -401,38 +392,25 @@ typedef struct asn1_header_st |
|
|
|
(ASN1_IA5STRING *)d2i_ASN1_type_bytes((ASN1_STRING **)a,pp,l,\ |
|
|
|
B_ASN1_IA5STRING) |
|
|
|
|
|
|
|
#define ASN1_UTCTIME_new() (ASN1_UTCTIME *)\ |
|
|
|
#define M_ASN1_UTCTIME_new() (ASN1_UTCTIME *)\ |
|
|
|
ASN1_STRING_type_new(V_ASN1_UTCTIME) |
|
|
|
#define ASN1_UTCTIME_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define ASN1_UTCTIME_dup(a) (ASN1_UTCTIME *)ASN1_STRING_dup((ASN1_STRING *)a) |
|
|
|
/* i2d_ASN1_UTCTIME() is a function */ |
|
|
|
/* d2i_ASN1_UTCTIME() is a function */ |
|
|
|
/* ASN1_UTCTIME_set() is a function */ |
|
|
|
/* ASN1_UTCTIME_check() is a function */ |
|
|
|
|
|
|
|
#define ASN1_GENERALIZEDTIME_new() (ASN1_GENERALIZEDTIME *)\ |
|
|
|
#define M_ASN1_UTCTIME_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_ASN1_UTCTIME_dup(a) (ASN1_UTCTIME *)ASN1_STRING_dup((ASN1_STRING *)a) |
|
|
|
|
|
|
|
#define M_ASN1_GENERALIZEDTIME_new() (ASN1_GENERALIZEDTIME *)\ |
|
|
|
ASN1_STRING_type_new(V_ASN1_GENERALIZEDTIME) |
|
|
|
#define ASN1_GENERALIZEDTIME_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define ASN1_GENERALIZEDTIME_dup(a) (ASN1_GENERALIZEDTIME *)ASN1_STRING_dup(\ |
|
|
|
#define M_ASN1_GENERALIZEDTIME_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_ASN1_GENERALIZEDTIME_dup(a) (ASN1_GENERALIZEDTIME *)ASN1_STRING_dup(\ |
|
|
|
(ASN1_STRING *)a) |
|
|
|
/* i2d_ASN1_GENERALIZEDTIME() is a function */ |
|
|
|
/* d2i_ASN1_GENERALIZEDTIME() is a function */ |
|
|
|
/* ASN1_GENERALIZEDTIME_set() is a function */ |
|
|
|
/* ASN1_GENERALIZEDTIME_check() is a function */ |
|
|
|
|
|
|
|
#define ASN1_TIME_new() (ASN1_TIME *)\ |
|
|
|
#define M_ASN1_TIME_new() (ASN1_TIME *)\ |
|
|
|
ASN1_STRING_type_new(V_ASN1_UTCTIME) |
|
|
|
#define ASN1_TIME_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define ASN1_TIME_dup(a) (ASN1_TIME *)ASN1_STRING_dup((ASN1_STRING *)a) |
|
|
|
|
|
|
|
/* i2d_ASN1_TIME() is a function */ |
|
|
|
/* d2i_ASN1_TIME() is a function */ |
|
|
|
/* ASN1_TIME_set() is a function */ |
|
|
|
/* ASN1_TIME_check() is a function */ |
|
|
|
#define M_ASN1_TIME_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_ASN1_TIME_dup(a) (ASN1_TIME *)ASN1_STRING_dup((ASN1_STRING *)a) |
|
|
|
|
|
|
|
#define ASN1_GENERALSTRING_new() (ASN1_GENERALSTRING *)\ |
|
|
|
#define M_ASN1_GENERALSTRING_new() (ASN1_GENERALSTRING *)\ |
|
|
|
ASN1_STRING_type_new(V_ASN1_GENERALSTRING) |
|
|
|
#define ASN1_GENERALSTRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_ASN1_GENERALSTRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_i2d_ASN1_GENERALSTRING(a,pp) \ |
|
|
|
i2d_ASN1_bytes((ASN1_STRING *)a,pp,V_ASN1_GENERALSTRING,\ |
|
|
|
V_ASN1_UNIVERSAL) |
|
|
@ -440,9 +418,9 @@ typedef struct asn1_header_st |
|
|
|
(ASN1_GENERALSTRING *)d2i_ASN1_type_bytes\ |
|
|
|
((ASN1_STRING **)a,pp,l,B_ASN1_GENERALSTRING) |
|
|
|
|
|
|
|
#define ASN1_UNIVERSALSTRING_new() (ASN1_UNIVERSALSTRING *)\ |
|
|
|
#define M_ASN1_UNIVERSALSTRING_new() (ASN1_UNIVERSALSTRING *)\ |
|
|
|
ASN1_STRING_type_new(V_ASN1_UNIVERSALSTRING) |
|
|
|
#define ASN1_UNIVERSALSTRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_ASN1_UNIVERSALSTRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_i2d_ASN1_UNIVERSALSTRING(a,pp) \ |
|
|
|
i2d_ASN1_bytes((ASN1_STRING *)a,pp,V_ASN1_UNIVERSALSTRING,\ |
|
|
|
V_ASN1_UNIVERSAL) |
|
|
@ -450,9 +428,9 @@ typedef struct asn1_header_st |
|
|
|
(ASN1_UNIVERSALSTRING *)d2i_ASN1_type_bytes\ |
|
|
|
((ASN1_STRING **)a,pp,l,B_ASN1_UNIVERSALSTRING) |
|
|
|
|
|
|
|
#define ASN1_BMPSTRING_new() (ASN1_BMPSTRING *)\ |
|
|
|
#define M_ASN1_BMPSTRING_new() (ASN1_BMPSTRING *)\ |
|
|
|
ASN1_STRING_type_new(V_ASN1_BMPSTRING) |
|
|
|
#define ASN1_BMPSTRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_ASN1_BMPSTRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_i2d_ASN1_BMPSTRING(a,pp) \ |
|
|
|
i2d_ASN1_bytes((ASN1_STRING *)a,pp,V_ASN1_BMPSTRING,\ |
|
|
|
V_ASN1_UNIVERSAL) |
|
|
@ -460,9 +438,9 @@ typedef struct asn1_header_st |
|
|
|
(ASN1_BMPSTRING *)d2i_ASN1_type_bytes\ |
|
|
|
((ASN1_STRING **)a,pp,l,B_ASN1_BMPSTRING) |
|
|
|
|
|
|
|
#define ASN1_VISIBLESTRING_new() (ASN1_VISIBLESTRING *)\ |
|
|
|
#define M_ASN1_VISIBLESTRING_new() (ASN1_VISIBLESTRING *)\ |
|
|
|
ASN1_STRING_type_new(V_ASN1_VISIBLESTRING) |
|
|
|
#define ASN1_VISIBLESTRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_ASN1_VISIBLESTRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_i2d_ASN1_VISIBLESTRING(a,pp) \ |
|
|
|
i2d_ASN1_bytes((ASN1_STRING *)a,pp,V_ASN1_VISIBLESTRING,\ |
|
|
|
V_ASN1_UNIVERSAL) |
|
|
@ -470,9 +448,9 @@ typedef struct asn1_header_st |
|
|
|
(ASN1_VISIBLESTRING *)d2i_ASN1_type_bytes\ |
|
|
|
((ASN1_STRING **)a,pp,l,B_ASN1_VISIBLESTRING) |
|
|
|
|
|
|
|
#define ASN1_UTF8STRING_new() (ASN1_UTF8STRING *)\ |
|
|
|
#define M_ASN1_UTF8STRING_new() (ASN1_UTF8STRING *)\ |
|
|
|
ASN1_STRING_type_new(V_ASN1_UTF8STRING) |
|
|
|
#define ASN1_UTF8STRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_ASN1_UTF8STRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) |
|
|
|
#define M_i2d_ASN1_UTF8STRING(a,pp) \ |
|
|
|
i2d_ASN1_bytes((ASN1_STRING *)a,pp,V_ASN1_UTF8STRING,\ |
|
|
|
V_ASN1_UNIVERSAL) |
|
|
@ -500,7 +478,7 @@ ASN1_OBJECT * d2i_ASN1_OBJECT(ASN1_OBJECT **a,unsigned char **pp, |
|
|
|
DECLARE_STACK_OF(ASN1_OBJECT) |
|
|
|
DECLARE_ASN1_SET_OF(ASN1_OBJECT) |
|
|
|
|
|
|
|
ASN1_STRING * ASN1_STRING_new(void ); |
|
|
|
ASN1_STRING * ASN1_STRING_new(void); |
|
|
|
void ASN1_STRING_free(ASN1_STRING *a); |
|
|
|
ASN1_STRING * ASN1_STRING_dup(ASN1_STRING *a); |
|
|
|
ASN1_STRING * ASN1_STRING_type_new(int type ); |
|
|
@ -508,10 +486,18 @@ int ASN1_STRING_cmp(ASN1_STRING *a, ASN1_STRING *b); |
|
|
|
/* Since this is used to store all sorts of things, via macros, for now, make |
|
|
|
its data void * */ |
|
|
|
int ASN1_STRING_set(ASN1_STRING *str, const void *data, int len); |
|
|
|
int ASN1_STRING_length(ASN1_STRING *x); |
|
|
|
void ASN1_STRING_length_set(ASN1_STRING *x, int n); |
|
|
|
int ASN1_STRING_type(ASN1_STRING *x); |
|
|
|
unsigned char * ASN1_STRING_data(ASN1_STRING *x); |
|
|
|
|
|
|
|
ASN1_BIT_STRING * ASN1_BIT_STRING_new(void); |
|
|
|
void ASN1_BIT_STRING_free(ASN1_BIT_STRING *a); |
|
|
|
int i2d_ASN1_BIT_STRING(ASN1_BIT_STRING *a,unsigned char **pp); |
|
|
|
ASN1_BIT_STRING *d2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a,unsigned char **pp, |
|
|
|
long length); |
|
|
|
int ASN1_BIT_STRING_set(ASN1_BIT_STRING *a, unsigned char *d, |
|
|
|
int length ); |
|
|
|
int ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *a, int n, int value); |
|
|
|
int ASN1_BIT_STRING_get_bit(ASN1_BIT_STRING *a, int n); |
|
|
|
|
|
|
@ -519,12 +505,18 @@ int ASN1_BIT_STRING_get_bit(ASN1_BIT_STRING *a, int n); |
|
|
|
int i2d_ASN1_BOOLEAN(int a,unsigned char **pp); |
|
|
|
int d2i_ASN1_BOOLEAN(int *a,unsigned char **pp,long length); |
|
|
|
|
|
|
|
ASN1_INTEGER * ASN1_INTEGER_new(void); |
|
|
|
void ASN1_INTEGER_free(ASN1_INTEGER *a); |
|
|
|
int i2d_ASN1_INTEGER(ASN1_INTEGER *a,unsigned char **pp); |
|
|
|
ASN1_INTEGER *d2i_ASN1_INTEGER(ASN1_INTEGER **a,unsigned char **pp, |
|
|
|
long length); |
|
|
|
ASN1_INTEGER *d2i_ASN1_UINTEGER(ASN1_INTEGER **a,unsigned char **pp, |
|
|
|
long length); |
|
|
|
ASN1_INTEGER * ASN1_INTEGER_dup(ASN1_INTEGER *x); |
|
|
|
int ASN1_INTEGER_cmp(ASN1_INTEGER *x, ASN1_INTEGER *y); |
|
|
|
|
|
|
|
ASN1_ENUMERATED * ASN1_ENUMERATED_new(void); |
|
|
|
void ASN1_ENUMERATED_free(ASN1_ENUMERATED *a); |
|
|
|
int i2d_ASN1_ENUMERATED(ASN1_ENUMERATED *a,unsigned char **pp); |
|
|
|
ASN1_ENUMERATED *d2i_ASN1_ENUMERATED(ASN1_ENUMERATED **a,unsigned char **pp, |
|
|
|
long length); |
|
|
@ -537,18 +529,29 @@ int ASN1_GENERALIZEDTIME_check(ASN1_GENERALIZEDTIME *a); |
|
|
|
ASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_set(ASN1_GENERALIZEDTIME *s,time_t t); |
|
|
|
int ASN1_GENERALIZEDTIME_set_string(ASN1_GENERALIZEDTIME *s, char *str); |
|
|
|
|
|
|
|
ASN1_OCTET_STRING * ASN1_OCTET_STRING_new(void); |
|
|
|
void ASN1_OCTET_STRING_free(ASN1_OCTET_STRING *a); |
|
|
|
int i2d_ASN1_OCTET_STRING(ASN1_OCTET_STRING *a,unsigned char **pp); |
|
|
|
ASN1_OCTET_STRING *d2i_ASN1_OCTET_STRING(ASN1_OCTET_STRING **a, |
|
|
|
unsigned char **pp,long length); |
|
|
|
ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup(ASN1_OCTET_STRING *a); |
|
|
|
int ASN1_OCTET_STRING_cmp(ASN1_OCTET_STRING *a, ASN1_OCTET_STRING *b); |
|
|
|
int ASN1_OCTET_STRING_set(ASN1_OCTET_STRING *str, unsigned char *data, int len); |
|
|
|
|
|
|
|
ASN1_VISIBLESTRING * ASN1_VISIBLESTRING_new(void); |
|
|
|
void ASN1_VISIBLESTRING_free(ASN1_VISIBLESTRING *a); |
|
|
|
int i2d_ASN1_VISIBLESTRING(ASN1_VISIBLESTRING *a,unsigned char **pp); |
|
|
|
ASN1_VISIBLESTRING *d2i_ASN1_VISIBLESTRING(ASN1_VISIBLESTRING **a, |
|
|
|
unsigned char **pp,long length); |
|
|
|
|
|
|
|
ASN1_UTF8STRING * ASN1_UTF8STRING_new(void); |
|
|
|
void ASN1_UTF8STRING_free(ASN1_UTF8STRING *a); |
|
|
|
int i2d_ASN1_UTF8STRING(ASN1_UTF8STRING *a,unsigned char **pp); |
|
|
|
ASN1_UTF8STRING *d2i_ASN1_UTF8STRING(ASN1_UTF8STRING **a, |
|
|
|
unsigned char **pp,long length); |
|
|
|
|
|
|
|
ASN1_BMPSTRING * ASN1_BMPSTRING_new(void); |
|
|
|
void ASN1_BMPSTRING_free(ASN1_BMPSTRING *a); |
|
|
|
int i2d_ASN1_BMPSTRING(ASN1_BMPSTRING *a, unsigned char **pp); |
|
|
|
ASN1_BMPSTRING *d2i_ASN1_BMPSTRING(ASN1_BMPSTRING **a, unsigned char **pp, |
|
|
|
long length); |
|
|
@ -560,30 +563,48 @@ int UTF8_putc(unsigned char *str, int len, unsigned long value); |
|
|
|
int i2d_ASN1_PRINTABLE(ASN1_STRING *a,unsigned char **pp); |
|
|
|
ASN1_STRING *d2i_ASN1_PRINTABLE(ASN1_STRING **a, |
|
|
|
unsigned char **pp, long l); |
|
|
|
|
|
|
|
ASN1_PRINTABLESTRING * ASN1_PRINTABLESTRING_new(void); |
|
|
|
void ASN1_PRINTABLESTRING_free(ASN1_PRINTABLESTRING *a); |
|
|
|
ASN1_PRINTABLESTRING *d2i_ASN1_PRINTABLESTRING(ASN1_PRINTABLESTRING **a, |
|
|
|
unsigned char **pp, long l); |
|
|
|
|
|
|
|
ASN1_STRING * DIRECTORYSTRING_new(void); |
|
|
|
void DIRECTORYSTRING_free(ASN1_STRING *a); |
|
|
|
int i2d_DIRECTORYSTRING(ASN1_STRING *a,unsigned char **pp); |
|
|
|
ASN1_STRING *d2i_DIRECTORYSTRING(ASN1_STRING **a, unsigned char **pp, |
|
|
|
long length); |
|
|
|
|
|
|
|
ASN1_STRING * DISPLAYTEXT_new(void); |
|
|
|
void DISPLAYTEXT_free(ASN1_STRING *a); |
|
|
|
int i2d_DISPLAYTEXT(ASN1_STRING *a,unsigned char **pp); |
|
|
|
ASN1_STRING *d2i_DISPLAYTEXT(ASN1_STRING **a, unsigned char **pp, long length); |
|
|
|
|
|
|
|
ASN1_T61STRING * ASN1_T61STRING_new(void); |
|
|
|
void ASN1_T61STRING_free(ASN1_IA5STRING *a); |
|
|
|
ASN1_T61STRING *d2i_ASN1_T61STRING(ASN1_T61STRING **a, |
|
|
|
unsigned char **pp, long l); |
|
|
|
|
|
|
|
ASN1_IA5STRING * ASN1_IA5STRING_new(void); |
|
|
|
void ASN1_IA5STRING_free(ASN1_IA5STRING *a); |
|
|
|
int i2d_ASN1_IA5STRING(ASN1_IA5STRING *a,unsigned char **pp); |
|
|
|
ASN1_IA5STRING *d2i_ASN1_IA5STRING(ASN1_IA5STRING **a, |
|
|
|
unsigned char **pp, long l); |
|
|
|
|
|
|
|
ASN1_UTCTIME * ASN1_UTCTIME_new(void); |
|
|
|
void ASN1_UTCTIME_free(ASN1_UTCTIME *a); |
|
|
|
int i2d_ASN1_UTCTIME(ASN1_UTCTIME *a,unsigned char **pp); |
|
|
|
ASN1_UTCTIME * d2i_ASN1_UTCTIME(ASN1_UTCTIME **a,unsigned char **pp, |
|
|
|
long length); |
|
|
|
|
|
|
|
ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_new(void); |
|
|
|
void ASN1_GENERALIZEDTIME_free(ASN1_GENERALIZEDTIME *a); |
|
|
|
int i2d_ASN1_GENERALIZEDTIME(ASN1_GENERALIZEDTIME *a,unsigned char **pp); |
|
|
|
ASN1_GENERALIZEDTIME * d2i_ASN1_GENERALIZEDTIME(ASN1_GENERALIZEDTIME **a,unsigned char **pp, |
|
|
|
long length); |
|
|
|
|
|
|
|
ASN1_TIME * ASN1_TIME_new(void); |
|
|
|
void ASN1_TIME_free(ASN1_TIME *a); |
|
|
|
int i2d_ASN1_TIME(ASN1_TIME *a,unsigned char **pp); |
|
|
|
ASN1_TIME * d2i_ASN1_TIME(ASN1_TIME **a,unsigned char **pp, long length); |
|
|
|
ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s,time_t t); |
|
|
|