diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/asn1.h')
-rw-r--r-- | src/lib/libcrypto/asn1/asn1.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h index 176a3d5b82..78705da909 100644 --- a/src/lib/libcrypto/asn1/asn1.h +++ b/src/lib/libcrypto/asn1/asn1.h | |||
@@ -760,6 +760,10 @@ typedef struct BIT_STRING_BITNAME_st { | |||
760 | (ASN1_UTF8STRING *)d2i_ASN1_type_bytes\ | 760 | (ASN1_UTF8STRING *)d2i_ASN1_type_bytes\ |
761 | ((ASN1_STRING **)a,pp,l,B_ASN1_UTF8STRING) | 761 | ((ASN1_STRING **)a,pp,l,B_ASN1_UTF8STRING) |
762 | 762 | ||
763 | /* for the is_set parameter to i2d_ASN1_SET */ | ||
764 | #define IS_SEQUENCE 0 | ||
765 | #define IS_SET 1 | ||
766 | |||
763 | DECLARE_ASN1_FUNCTIONS_fname(ASN1_TYPE, ASN1_ANY, ASN1_TYPE) | 767 | DECLARE_ASN1_FUNCTIONS_fname(ASN1_TYPE, ASN1_ANY, ASN1_TYPE) |
764 | 768 | ||
765 | int ASN1_TYPE_get(ASN1_TYPE *a); | 769 | int ASN1_TYPE_get(ASN1_TYPE *a); |
@@ -1035,7 +1039,14 @@ int ASN1_TYPE_set_int_octetstring(ASN1_TYPE *a, long num, | |||
1035 | int ASN1_TYPE_get_int_octetstring(ASN1_TYPE *a,long *num, | 1039 | int ASN1_TYPE_get_int_octetstring(ASN1_TYPE *a,long *num, |
1036 | unsigned char *data, int max_len); | 1040 | unsigned char *data, int max_len); |
1037 | 1041 | ||
1042 | STACK_OF(OPENSSL_BLOCK) *ASN1_seq_unpack(const unsigned char *buf, int len, | ||
1043 | d2i_of_void *d2i, void (*free_func)(OPENSSL_BLOCK)); | ||
1044 | unsigned char *ASN1_seq_pack(STACK_OF(OPENSSL_BLOCK) *safes, i2d_of_void *i2d, | ||
1045 | unsigned char **buf, int *len ); | ||
1046 | void *ASN1_unpack_string(ASN1_STRING *oct, d2i_of_void *d2i); | ||
1038 | void *ASN1_item_unpack(ASN1_STRING *oct, const ASN1_ITEM *it); | 1047 | void *ASN1_item_unpack(ASN1_STRING *oct, const ASN1_ITEM *it); |
1048 | ASN1_STRING *ASN1_pack_string(void *obj, i2d_of_void *i2d, | ||
1049 | ASN1_OCTET_STRING **oct); | ||
1039 | 1050 | ||
1040 | ASN1_STRING *ASN1_item_pack(void *obj, const ASN1_ITEM *it, ASN1_OCTET_STRING **oct); | 1051 | ASN1_STRING *ASN1_item_pack(void *obj, const ASN1_ITEM *it, ASN1_OCTET_STRING **oct); |
1041 | 1052 | ||