diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/asn1/asn1.h | 74 |
1 files changed, 38 insertions, 36 deletions
diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h index 3a2da6463e..a20471a7ec 100644 --- a/src/lib/libcrypto/asn1/asn1.h +++ b/src/lib/libcrypto/asn1/asn1.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: asn1.h,v 1.45 2018/03/29 02:29:24 inoguchi Exp $ */ | 1 | /* $OpenBSD: asn1.h,v 1.46 2018/04/25 11:48:21 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -754,14 +754,14 @@ ASN1_TYPE *d2i_ASN1_TYPE(ASN1_TYPE **a, const unsigned char **in, long len); | |||
| 754 | int i2d_ASN1_TYPE(ASN1_TYPE *a, unsigned char **out); | 754 | int i2d_ASN1_TYPE(ASN1_TYPE *a, unsigned char **out); |
| 755 | extern const ASN1_ITEM ASN1_ANY_it; | 755 | extern const ASN1_ITEM ASN1_ANY_it; |
| 756 | 756 | ||
| 757 | int ASN1_TYPE_get(ASN1_TYPE *a); | 757 | int ASN1_TYPE_get(const ASN1_TYPE *a); |
| 758 | void ASN1_TYPE_set(ASN1_TYPE *a, int type, void *value); | 758 | void ASN1_TYPE_set(ASN1_TYPE *a, int type, void *value); |
| 759 | int ASN1_TYPE_set1(ASN1_TYPE *a, int type, const void *value); | 759 | int ASN1_TYPE_set1(ASN1_TYPE *a, int type, const void *value); |
| 760 | int ASN1_TYPE_cmp(ASN1_TYPE *a, ASN1_TYPE *b); | 760 | int ASN1_TYPE_cmp(const ASN1_TYPE *a, const ASN1_TYPE *b); |
| 761 | 761 | ||
| 762 | ASN1_OBJECT *ASN1_OBJECT_new(void ); | 762 | ASN1_OBJECT *ASN1_OBJECT_new(void ); |
| 763 | void ASN1_OBJECT_free(ASN1_OBJECT *a); | 763 | void ASN1_OBJECT_free(ASN1_OBJECT *a); |
| 764 | int i2d_ASN1_OBJECT(ASN1_OBJECT *a, unsigned char **pp); | 764 | int i2d_ASN1_OBJECT(const ASN1_OBJECT *a, unsigned char **pp); |
| 765 | ASN1_OBJECT *c2i_ASN1_OBJECT(ASN1_OBJECT **a, const unsigned char **pp, | 765 | ASN1_OBJECT *c2i_ASN1_OBJECT(ASN1_OBJECT **a, const unsigned char **pp, |
| 766 | long length); | 766 | long length); |
| 767 | ASN1_OBJECT *d2i_ASN1_OBJECT(ASN1_OBJECT **a, const unsigned char **pp, | 767 | ASN1_OBJECT *d2i_ASN1_OBJECT(ASN1_OBJECT **a, const unsigned char **pp, |
| @@ -783,7 +783,7 @@ int ASN1_STRING_set(ASN1_STRING *str, const void *data, int len); | |||
| 783 | void ASN1_STRING_set0(ASN1_STRING *str, void *data, int len); | 783 | void ASN1_STRING_set0(ASN1_STRING *str, void *data, int len); |
| 784 | int ASN1_STRING_length(const ASN1_STRING *x); | 784 | int ASN1_STRING_length(const ASN1_STRING *x); |
| 785 | void ASN1_STRING_length_set(ASN1_STRING *x, int n); | 785 | void ASN1_STRING_length_set(ASN1_STRING *x, int n); |
| 786 | int ASN1_STRING_type(ASN1_STRING *x); | 786 | int ASN1_STRING_type(const ASN1_STRING *x); |
| 787 | unsigned char *ASN1_STRING_data(ASN1_STRING *x); | 787 | unsigned char *ASN1_STRING_data(ASN1_STRING *x); |
| 788 | const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *x); | 788 | const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *x); |
| 789 | 789 | ||
| @@ -797,16 +797,16 @@ ASN1_BIT_STRING *c2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, | |||
| 797 | const unsigned char **pp, long length); | 797 | const unsigned char **pp, long length); |
| 798 | int ASN1_BIT_STRING_set(ASN1_BIT_STRING *a, unsigned char *d, int length ); | 798 | int ASN1_BIT_STRING_set(ASN1_BIT_STRING *a, unsigned char *d, int length ); |
| 799 | int ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *a, int n, int value); | 799 | int ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *a, int n, int value); |
| 800 | int ASN1_BIT_STRING_get_bit(ASN1_BIT_STRING *a, int n); | 800 | int ASN1_BIT_STRING_get_bit(const ASN1_BIT_STRING *a, int n); |
| 801 | int ASN1_BIT_STRING_check(ASN1_BIT_STRING *a, | 801 | int ASN1_BIT_STRING_check(const ASN1_BIT_STRING *a, |
| 802 | unsigned char *flags, int flags_len); | 802 | const unsigned char *flags, int flags_len); |
| 803 | 803 | ||
| 804 | #ifndef OPENSSL_NO_BIO | 804 | #ifndef OPENSSL_NO_BIO |
| 805 | int ASN1_BIT_STRING_name_print(BIO *out, ASN1_BIT_STRING *bs, | 805 | int ASN1_BIT_STRING_name_print(BIO *out, ASN1_BIT_STRING *bs, |
| 806 | BIT_STRING_BITNAME *tbl, int indent); | 806 | BIT_STRING_BITNAME *tbl, int indent); |
| 807 | #endif | 807 | #endif |
| 808 | int ASN1_BIT_STRING_num_asc(char *name, BIT_STRING_BITNAME *tbl); | 808 | int ASN1_BIT_STRING_num_asc(const char *name, BIT_STRING_BITNAME *tbl); |
| 809 | int ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, char *name, int value, | 809 | int ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, const char *name, int value, |
| 810 | BIT_STRING_BITNAME *tbl); | 810 | BIT_STRING_BITNAME *tbl); |
| 811 | 811 | ||
| 812 | int i2d_ASN1_BOOLEAN(int a, unsigned char **pp); | 812 | int i2d_ASN1_BOOLEAN(int a, unsigned char **pp); |
| @@ -831,7 +831,7 @@ ASN1_ENUMERATED *d2i_ASN1_ENUMERATED(ASN1_ENUMERATED **a, const unsigned char ** | |||
| 831 | int i2d_ASN1_ENUMERATED(ASN1_ENUMERATED *a, unsigned char **out); | 831 | int i2d_ASN1_ENUMERATED(ASN1_ENUMERATED *a, unsigned char **out); |
| 832 | extern const ASN1_ITEM ASN1_ENUMERATED_it; | 832 | extern const ASN1_ITEM ASN1_ENUMERATED_it; |
| 833 | 833 | ||
| 834 | int ASN1_UTCTIME_check(ASN1_UTCTIME *a); | 834 | int ASN1_UTCTIME_check(const ASN1_UTCTIME *a); |
| 835 | ASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s, time_t t); | 835 | ASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s, time_t t); |
| 836 | ASN1_UTCTIME *ASN1_UTCTIME_adj(ASN1_UTCTIME *s, time_t t, | 836 | ASN1_UTCTIME *ASN1_UTCTIME_adj(ASN1_UTCTIME *s, time_t t, |
| 837 | int offset_day, long offset_sec); | 837 | int offset_day, long offset_sec); |
| @@ -841,7 +841,7 @@ int ASN1_UTCTIME_set_string(ASN1_UTCTIME *s, const char *str); | |||
| 841 | int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t); | 841 | int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t); |
| 842 | #endif /* !LIBRESSL_INTERNAL */ | 842 | #endif /* !LIBRESSL_INTERNAL */ |
| 843 | 843 | ||
| 844 | int ASN1_GENERALIZEDTIME_check(ASN1_GENERALIZEDTIME *a); | 844 | int ASN1_GENERALIZEDTIME_check(const ASN1_GENERALIZEDTIME *a); |
| 845 | ASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_set(ASN1_GENERALIZEDTIME *s, | 845 | ASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_set(ASN1_GENERALIZEDTIME *s, |
| 846 | time_t t); | 846 | time_t t); |
| 847 | ASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_adj(ASN1_GENERALIZEDTIME *s, | 847 | ASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_adj(ASN1_GENERALIZEDTIME *s, |
| @@ -943,8 +943,8 @@ ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t); | |||
| 943 | ASN1_TIME *ASN1_TIME_set_tm(ASN1_TIME *s, struct tm *tm); | 943 | ASN1_TIME *ASN1_TIME_set_tm(ASN1_TIME *s, struct tm *tm); |
| 944 | ASN1_TIME *ASN1_TIME_adj(ASN1_TIME *s, time_t t, int offset_day, | 944 | ASN1_TIME *ASN1_TIME_adj(ASN1_TIME *s, time_t t, int offset_day, |
| 945 | long offset_sec); | 945 | long offset_sec); |
| 946 | int ASN1_TIME_check(ASN1_TIME *t); | 946 | int ASN1_TIME_check(const ASN1_TIME *t); |
| 947 | ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(ASN1_TIME *t, | 947 | ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(const ASN1_TIME *t, |
| 948 | ASN1_GENERALIZEDTIME **out); | 948 | ASN1_GENERALIZEDTIME **out); |
| 949 | int ASN1_TIME_set_string(ASN1_TIME *s, const char *str); | 949 | int ASN1_TIME_set_string(ASN1_TIME *s, const char *str); |
| 950 | 950 | ||
| @@ -955,15 +955,15 @@ STACK_OF(OPENSSL_BLOCK) *d2i_ASN1_SET(STACK_OF(OPENSSL_BLOCK) **a, | |||
| 955 | void (*free_func)(OPENSSL_BLOCK), int ex_tag, int ex_class); | 955 | void (*free_func)(OPENSSL_BLOCK), int ex_tag, int ex_class); |
| 956 | 956 | ||
| 957 | #ifndef OPENSSL_NO_BIO | 957 | #ifndef OPENSSL_NO_BIO |
| 958 | int i2a_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *a); | 958 | int i2a_ASN1_INTEGER(BIO *bp, const ASN1_INTEGER *a); |
| 959 | int a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size); | 959 | int a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size); |
| 960 | int i2a_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *a); | 960 | int i2a_ASN1_ENUMERATED(BIO *bp, const ASN1_ENUMERATED *a); |
| 961 | int a2i_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *bs, char *buf, int size); | 961 | int a2i_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *bs, char *buf, int size); |
| 962 | int i2a_ASN1_OBJECT(BIO *bp, ASN1_OBJECT *a); | 962 | int i2a_ASN1_OBJECT(BIO *bp, const ASN1_OBJECT *a); |
| 963 | int a2i_ASN1_STRING(BIO *bp, ASN1_STRING *bs, char *buf, int size); | 963 | int a2i_ASN1_STRING(BIO *bp, ASN1_STRING *bs, char *buf, int size); |
| 964 | int i2a_ASN1_STRING(BIO *bp, ASN1_STRING *a, int type); | 964 | int i2a_ASN1_STRING(BIO *bp, const ASN1_STRING *a, int type); |
| 965 | #endif | 965 | #endif |
| 966 | int i2t_ASN1_OBJECT(char *buf, int buf_len, ASN1_OBJECT *a); | 966 | int i2t_ASN1_OBJECT(char *buf, int buf_len, const ASN1_OBJECT *a); |
| 967 | 967 | ||
| 968 | int a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num); | 968 | int a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num); |
| 969 | ASN1_OBJECT *ASN1_OBJECT_create(int nid, unsigned char *data, int len, | 969 | ASN1_OBJECT *ASN1_OBJECT_create(int nid, unsigned char *data, int len, |
| @@ -975,9 +975,9 @@ ASN1_INTEGER *BN_to_ASN1_INTEGER(const BIGNUM *bn, ASN1_INTEGER *ai); | |||
| 975 | BIGNUM *ASN1_INTEGER_to_BN(const ASN1_INTEGER *ai, BIGNUM *bn); | 975 | BIGNUM *ASN1_INTEGER_to_BN(const ASN1_INTEGER *ai, BIGNUM *bn); |
| 976 | 976 | ||
| 977 | int ASN1_ENUMERATED_set(ASN1_ENUMERATED *a, long v); | 977 | int ASN1_ENUMERATED_set(ASN1_ENUMERATED *a, long v); |
| 978 | long ASN1_ENUMERATED_get(ASN1_ENUMERATED *a); | 978 | long ASN1_ENUMERATED_get(const ASN1_ENUMERATED *a); |
| 979 | ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(BIGNUM *bn, ASN1_ENUMERATED *ai); | 979 | ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(const BIGNUM *bn, ASN1_ENUMERATED *ai); |
| 980 | BIGNUM *ASN1_ENUMERATED_to_BN(ASN1_ENUMERATED *ai, BIGNUM *bn); | 980 | BIGNUM *ASN1_ENUMERATED_to_BN(const ASN1_ENUMERATED *ai, BIGNUM *bn); |
| 981 | 981 | ||
| 982 | /* General */ | 982 | /* General */ |
| 983 | /* given a string, return the correct type, max is the maximum length */ | 983 | /* given a string, return the correct type, max is the maximum length */ |
| @@ -1052,7 +1052,8 @@ int ASN1_i2d_fp(i2d_of_void *i2d, FILE *out, void *x); | |||
| 1052 | CHECKED_PTR_OF(const type, x))) | 1052 | CHECKED_PTR_OF(const type, x))) |
| 1053 | 1053 | ||
| 1054 | int ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x); | 1054 | int ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x); |
| 1055 | int ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags); | 1055 | int ASN1_STRING_print_ex_fp(FILE *fp, const ASN1_STRING *str, |
| 1056 | unsigned long flags); | ||
| 1056 | 1057 | ||
| 1057 | int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in); | 1058 | int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in); |
| 1058 | 1059 | ||
| @@ -1083,7 +1084,7 @@ int ASN1_UTCTIME_print(BIO *fp, const ASN1_UTCTIME *a); | |||
| 1083 | int ASN1_GENERALIZEDTIME_print(BIO *fp, const ASN1_GENERALIZEDTIME *a); | 1084 | int ASN1_GENERALIZEDTIME_print(BIO *fp, const ASN1_GENERALIZEDTIME *a); |
| 1084 | int ASN1_TIME_print(BIO *fp, const ASN1_TIME *a); | 1085 | int ASN1_TIME_print(BIO *fp, const ASN1_TIME *a); |
| 1085 | int ASN1_STRING_print(BIO *bp, const ASN1_STRING *v); | 1086 | int ASN1_STRING_print(BIO *bp, const ASN1_STRING *v); |
| 1086 | int ASN1_STRING_print_ex(BIO *out, ASN1_STRING *str, unsigned long flags); | 1087 | int ASN1_STRING_print_ex(BIO *out, const ASN1_STRING *str, unsigned long flags); |
| 1087 | int ASN1_bn_print(BIO *bp, const char *number, const BIGNUM *num, | 1088 | int ASN1_bn_print(BIO *bp, const char *number, const BIGNUM *num, |
| 1088 | unsigned char *buf, int off); | 1089 | unsigned char *buf, int off); |
| 1089 | int ASN1_parse(BIO *bp, const unsigned char *pp, long len, int indent); | 1090 | int ASN1_parse(BIO *bp, const unsigned char *pp, long len, int indent); |
| @@ -1102,18 +1103,19 @@ extern const ASN1_ITEM NETSCAPE_X509_it; | |||
| 1102 | int ASN1_UNIVERSALSTRING_to_string(ASN1_UNIVERSALSTRING *s); | 1103 | int ASN1_UNIVERSALSTRING_to_string(ASN1_UNIVERSALSTRING *s); |
| 1103 | 1104 | ||
| 1104 | int ASN1_TYPE_set_octetstring(ASN1_TYPE *a, unsigned char *data, int len); | 1105 | int ASN1_TYPE_set_octetstring(ASN1_TYPE *a, unsigned char *data, int len); |
| 1105 | int ASN1_TYPE_get_octetstring(ASN1_TYPE *a, unsigned char *data, int max_len); | 1106 | int ASN1_TYPE_get_octetstring(const ASN1_TYPE *a, unsigned char *data, |
| 1107 | int max_len); | ||
| 1106 | int ASN1_TYPE_set_int_octetstring(ASN1_TYPE *a, long num, unsigned char *data, | 1108 | int ASN1_TYPE_set_int_octetstring(ASN1_TYPE *a, long num, unsigned char *data, |
| 1107 | int len); | 1109 | int len); |
| 1108 | int ASN1_TYPE_get_int_octetstring(ASN1_TYPE *a, long *num, unsigned char *data, | 1110 | int ASN1_TYPE_get_int_octetstring(const ASN1_TYPE *a, long *num, |
| 1109 | int max_len); | 1111 | unsigned char *data, int max_len); |
| 1110 | 1112 | ||
| 1111 | STACK_OF(OPENSSL_BLOCK) *ASN1_seq_unpack(const unsigned char *buf, int len, | 1113 | STACK_OF(OPENSSL_BLOCK) *ASN1_seq_unpack(const unsigned char *buf, int len, |
| 1112 | d2i_of_void *d2i, void (*free_func)(OPENSSL_BLOCK)); | 1114 | d2i_of_void *d2i, void (*free_func)(OPENSSL_BLOCK)); |
| 1113 | unsigned char *ASN1_seq_pack(STACK_OF(OPENSSL_BLOCK) *safes, i2d_of_void *i2d, | 1115 | unsigned char *ASN1_seq_pack(STACK_OF(OPENSSL_BLOCK) *safes, i2d_of_void *i2d, |
| 1114 | unsigned char **buf, int *len ); | 1116 | unsigned char **buf, int *len ); |
| 1115 | void *ASN1_unpack_string(ASN1_STRING *oct, d2i_of_void *d2i); | 1117 | void *ASN1_unpack_string(ASN1_STRING *oct, d2i_of_void *d2i); |
| 1116 | void *ASN1_item_unpack(ASN1_STRING *oct, const ASN1_ITEM *it); | 1118 | void *ASN1_item_unpack(const ASN1_STRING *oct, const ASN1_ITEM *it); |
| 1117 | ASN1_STRING *ASN1_pack_string(void *obj, i2d_of_void *i2d, | 1119 | ASN1_STRING *ASN1_pack_string(void *obj, i2d_of_void *i2d, |
| 1118 | ASN1_OCTET_STRING **oct); | 1120 | ASN1_OCTET_STRING **oct); |
| 1119 | 1121 | ||
| @@ -1139,15 +1141,15 @@ void ASN1_STRING_TABLE_cleanup(void); | |||
| 1139 | /* Old API compatible functions */ | 1141 | /* Old API compatible functions */ |
| 1140 | ASN1_VALUE *ASN1_item_new(const ASN1_ITEM *it); | 1142 | ASN1_VALUE *ASN1_item_new(const ASN1_ITEM *it); |
| 1141 | void ASN1_item_free(ASN1_VALUE *val, const ASN1_ITEM *it); | 1143 | void ASN1_item_free(ASN1_VALUE *val, const ASN1_ITEM *it); |
| 1142 | ASN1_VALUE * ASN1_item_d2i(ASN1_VALUE **val, const unsigned char **in, | 1144 | ASN1_VALUE *ASN1_item_d2i(ASN1_VALUE **val, const unsigned char **in, |
| 1143 | long len, const ASN1_ITEM *it); | 1145 | long len, const ASN1_ITEM *it); |
| 1144 | int ASN1_item_i2d(ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it); | 1146 | int ASN1_item_i2d(ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it); |
| 1145 | int ASN1_item_ndef_i2d(ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it); | 1147 | int ASN1_item_ndef_i2d(ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it); |
| 1146 | 1148 | ||
| 1147 | void ASN1_add_oid_module(void); | 1149 | void ASN1_add_oid_module(void); |
| 1148 | 1150 | ||
| 1149 | ASN1_TYPE *ASN1_generate_nconf(char *str, CONF *nconf); | 1151 | ASN1_TYPE *ASN1_generate_nconf(const char *str, CONF *nconf); |
| 1150 | ASN1_TYPE *ASN1_generate_v3(char *str, X509V3_CTX *cnf); | 1152 | ASN1_TYPE *ASN1_generate_v3(const char *str, X509V3_CTX *cnf); |
| 1151 | 1153 | ||
| 1152 | /* ASN1 Print flags */ | 1154 | /* ASN1 Print flags */ |
| 1153 | 1155 | ||
| @@ -1174,15 +1176,15 @@ int ASN1_item_print(BIO *out, ASN1_VALUE *ifld, int indent, | |||
| 1174 | const ASN1_ITEM *it, const ASN1_PCTX *pctx); | 1176 | const ASN1_ITEM *it, const ASN1_PCTX *pctx); |
| 1175 | ASN1_PCTX *ASN1_PCTX_new(void); | 1177 | ASN1_PCTX *ASN1_PCTX_new(void); |
| 1176 | void ASN1_PCTX_free(ASN1_PCTX *p); | 1178 | void ASN1_PCTX_free(ASN1_PCTX *p); |
| 1177 | unsigned long ASN1_PCTX_get_flags(ASN1_PCTX *p); | 1179 | unsigned long ASN1_PCTX_get_flags(const ASN1_PCTX *p); |
| 1178 | void ASN1_PCTX_set_flags(ASN1_PCTX *p, unsigned long flags); | 1180 | void ASN1_PCTX_set_flags(ASN1_PCTX *p, unsigned long flags); |
| 1179 | unsigned long ASN1_PCTX_get_nm_flags(ASN1_PCTX *p); | 1181 | unsigned long ASN1_PCTX_get_nm_flags(const ASN1_PCTX *p); |
| 1180 | void ASN1_PCTX_set_nm_flags(ASN1_PCTX *p, unsigned long flags); | 1182 | void ASN1_PCTX_set_nm_flags(ASN1_PCTX *p, unsigned long flags); |
| 1181 | unsigned long ASN1_PCTX_get_cert_flags(ASN1_PCTX *p); | 1183 | unsigned long ASN1_PCTX_get_cert_flags(const ASN1_PCTX *p); |
| 1182 | void ASN1_PCTX_set_cert_flags(ASN1_PCTX *p, unsigned long flags); | 1184 | void ASN1_PCTX_set_cert_flags(ASN1_PCTX *p, unsigned long flags); |
| 1183 | unsigned long ASN1_PCTX_get_oid_flags(ASN1_PCTX *p); | 1185 | unsigned long ASN1_PCTX_get_oid_flags(const ASN1_PCTX *p); |
| 1184 | void ASN1_PCTX_set_oid_flags(ASN1_PCTX *p, unsigned long flags); | 1186 | void ASN1_PCTX_set_oid_flags(ASN1_PCTX *p, unsigned long flags); |
| 1185 | unsigned long ASN1_PCTX_get_str_flags(ASN1_PCTX *p); | 1187 | unsigned long ASN1_PCTX_get_str_flags(const ASN1_PCTX *p); |
| 1186 | void ASN1_PCTX_set_str_flags(ASN1_PCTX *p, unsigned long flags); | 1188 | void ASN1_PCTX_set_str_flags(ASN1_PCTX *p, unsigned long flags); |
| 1187 | 1189 | ||
| 1188 | BIO_METHOD *BIO_f_asn1(void); | 1190 | BIO_METHOD *BIO_f_asn1(void); |
