Lines Matching refs:const
270 attr type *d2i_##name(type **a, const unsigned char **in, long len); \
271 attr int i2d_##name(const type *a, unsigned char **out);
276 attr int i2d_##name##_NDEF(const name *a, unsigned char **out);
292 attr type *name##_dup(const type *a);
302 attr int fname##_print_ctx(BIO *out, const stname *x, int indent, \
303 const ASN1_PCTX *pctx);
307 # define D2I_OF(type) type *(*)(type **,const unsigned char **,long)
308 # define I2D_OF(type) int (*)(const type *,unsigned char **)
321 # define TYPEDEF_D2I_OF(type) typedef type *d2i_of_##type(type **,const unsigned char **,long)
322 # define TYPEDEF_I2D_OF(type) typedef int i2d_of_##type(const type *,unsigned char **)
325 typedef void *d2i_of_void(void **, const unsigned char **, long);
326 typedef int i2d_of_void(const void *, unsigned char **);
356 * const ASN1_ITEM *it = ASN1_ITEM_ptr(somevar.iptr);
371 typedef const ASN1_ITEM *ASN1_ITEM_EXP (void);
382 attr const ASN1_ITEM * name##_it(void);
519 const char *lname;
520 const char *sname;
555 int ASN1_TYPE_get(const ASN1_TYPE *a);
557 int ASN1_TYPE_set1(ASN1_TYPE *a, int type, const void *value);
558 int ASN1_TYPE_cmp(const ASN1_TYPE *a, const ASN1_TYPE *b);
560 ASN1_TYPE *ASN1_TYPE_pack_sequence(const ASN1_ITEM *it, void *s, ASN1_TYPE **t);
561 void *ASN1_TYPE_unpack_sequence(const ASN1_ITEM *it, const ASN1_TYPE *t);
572 int ASN1_STRING_copy(ASN1_STRING *dst, const ASN1_STRING *str);
575 int ASN1_STRING_cmp(const ASN1_STRING *a, const ASN1_STRING *b);
580 int ASN1_STRING_set(ASN1_STRING *str, const void *data, int len);
582 int ASN1_STRING_length(const ASN1_STRING *x);
586 int ASN1_STRING_type(const ASN1_STRING *x);
590 const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *x);
595 int ASN1_BIT_STRING_get_bit(const ASN1_BIT_STRING *a, int n);
596 int ASN1_BIT_STRING_check(const ASN1_BIT_STRING *a,
597 const unsigned char *flags, int flags_len);
601 int ASN1_BIT_STRING_num_asc(const char *name, BIT_STRING_BITNAME *tbl);
602 int ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, const char *name, int value,
611 ASN1_INTEGER *d2i_ASN1_UINTEGER(ASN1_INTEGER **a, const unsigned char **pp,
614 int ASN1_INTEGER_cmp(const ASN1_INTEGER *x, const ASN1_INTEGER *y);
618 int ASN1_UTCTIME_check(const ASN1_UTCTIME *a);
622 int ASN1_UTCTIME_set_string(ASN1_UTCTIME *s, const char *str);
623 int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t);
625 int ASN1_GENERALIZEDTIME_check(const ASN1_GENERALIZEDTIME *a);
631 int ASN1_GENERALIZEDTIME_set_string(ASN1_GENERALIZEDTIME *s, const char *str);
634 const ASN1_TIME *from, const ASN1_TIME *to);
638 int ASN1_OCTET_STRING_cmp(const ASN1_OCTET_STRING *a,
639 const ASN1_OCTET_STRING *b);
640 int ASN1_OCTET_STRING_set(ASN1_OCTET_STRING *str, const unsigned char *data,
653 int UTF8_getc(const unsigned char *str, int len, unsigned long *val);
681 int ASN1_TIME_check(const ASN1_TIME *t);
682 ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(const ASN1_TIME *t,
684 int ASN1_TIME_set_string(ASN1_TIME *s, const char *str);
685 int ASN1_TIME_set_string_X509(ASN1_TIME *s, const char *str);
686 int ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm);
688 int ASN1_TIME_cmp_time_t(const ASN1_TIME *s, time_t t);
689 int ASN1_TIME_compare(const ASN1_TIME *a, const ASN1_TIME *b);
691 int i2a_ASN1_INTEGER(BIO *bp, const ASN1_INTEGER *a);
693 int i2a_ASN1_ENUMERATED(BIO *bp, const ASN1_ENUMERATED *a);
695 int i2a_ASN1_OBJECT(BIO *bp, const ASN1_OBJECT *a);
697 int i2a_ASN1_STRING(BIO *bp, const ASN1_STRING *a, int type);
698 int i2t_ASN1_OBJECT(char *buf, int buf_len, const ASN1_OBJECT *a);
700 int a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num);
702 const char *sn, const char *ln);
704 int ASN1_INTEGER_get_int64(int64_t *pr, const ASN1_INTEGER *a);
706 int ASN1_INTEGER_get_uint64(uint64_t *pr, const ASN1_INTEGER *a);
710 long ASN1_INTEGER_get(const ASN1_INTEGER *a);
711 ASN1_INTEGER *BN_to_ASN1_INTEGER(const BIGNUM *bn, ASN1_INTEGER *ai);
712 BIGNUM *ASN1_INTEGER_to_BN(const ASN1_INTEGER *ai, BIGNUM *bn);
714 int ASN1_ENUMERATED_get_int64(int64_t *pr, const ASN1_ENUMERATED *a);
719 long ASN1_ENUMERATED_get(const ASN1_ENUMERATED *a);
720 ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(const BIGNUM *bn, ASN1_ENUMERATED *ai);
721 BIGNUM *ASN1_ENUMERATED_to_BN(const ASN1_ENUMERATED *ai, BIGNUM *bn);
725 int ASN1_PRINTABLE_type(const unsigned char *s, int max);
730 int ASN1_get_object(const unsigned char **pp, long *plength, int *ptag,
733 int ASN1_const_check_infinite_end(const unsigned char **p, long len);
740 void *ASN1_dup(i2d_of_void *i2d, d2i_of_void *d2i, const void *x);
745 CHECKED_PTR_OF(const type, x)))
747 void *ASN1_item_dup(const ASN1_ITEM *it, const void *x);
748 int ASN1_item_sign_ex(const ASN1_ITEM *it, X509_ALGOR *algor1,
750 const void *data, const ASN1_OCTET_STRING *id,
751 EVP_PKEY *pkey, const EVP_MD *md, OSSL_LIB_CTX *libctx,
752 const char *propq);
753 int ASN1_item_verify_ex(const ASN1_ITEM *it, const X509_ALGOR *alg,
754 const ASN1_BIT_STRING *signature, const void *data,
755 const ASN1_OCTET_STRING *id, EVP_PKEY *pkey,
756 OSSL_LIB_CTX *libctx, const char *propq);
773 void *ASN1_item_d2i_fp_ex(const ASN1_ITEM *it, FILE *in, void *x,
774 OSSL_LIB_CTX *libctx, const char *propq);
775 void *ASN1_item_d2i_fp(const ASN1_ITEM *it, FILE *in, void *x);
776 int ASN1_i2d_fp(i2d_of_void *i2d, FILE *out, const void *x);
781 CHECKED_PTR_OF(const type, x)))
783 int ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, const void *x);
784 int ASN1_STRING_print_ex_fp(FILE *fp, const ASN1_STRING *str, unsigned long flags);
787 int ASN1_STRING_to_UTF8(unsigned char **out, const ASN1_STRING *in);
797 void *ASN1_item_d2i_bio_ex(const ASN1_ITEM *it, BIO *in, void *pval,
798 OSSL_LIB_CTX *libctx, const char *propq);
799 void *ASN1_item_d2i_bio(const ASN1_ITEM *it, BIO *in, void *pval);
800 int ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, const void *x);
805 CHECKED_PTR_OF(const type, x)))
807 int ASN1_item_i2d_bio(const ASN1_ITEM *it, BIO *out, const void *x);
808 BIO *ASN1_item_i2d_mem_bio(const ASN1_ITEM *it, const ASN1_VALUE *val);
809 int ASN1_UTCTIME_print(BIO *fp, const ASN1_UTCTIME *a);
810 int ASN1_GENERALIZEDTIME_print(BIO *fp, const ASN1_GENERALIZEDTIME *a);
811 int ASN1_TIME_print(BIO *bp, const ASN1_TIME *tm);
812 int ASN1_TIME_print_ex(BIO *bp, const ASN1_TIME *tm, unsigned long flags);
813 int ASN1_STRING_print(BIO *bp, const ASN1_STRING *v);
814 int ASN1_STRING_print_ex(BIO *out, const ASN1_STRING *str, unsigned long flags);
815 int ASN1_buf_print(BIO *bp, const unsigned char *buf, size_t buflen, int off);
816 int ASN1_bn_print(BIO *bp, const char *number, const BIGNUM *num,
818 int ASN1_parse(BIO *bp, const unsigned char *pp, long len, int indent);
819 int ASN1_parse_dump(BIO *bp, const unsigned char *pp, long len, int indent,
821 const char *ASN1_tag2str(int tag);
828 int ASN1_TYPE_get_octetstring(const ASN1_TYPE *a, unsigned char *data, int max_len);
831 int ASN1_TYPE_get_int_octetstring(const ASN1_TYPE *a, long *num,
834 void *ASN1_item_unpack(const ASN1_STRING *oct, const ASN1_ITEM *it);
835 void *ASN1_item_unpack_ex(const ASN1_STRING *oct, const ASN1_ITEM *it,
836 OSSL_LIB_CTX *libctx, const char *propq);
838 ASN1_STRING *ASN1_item_pack(void *obj, const ASN1_ITEM *it,
842 int ASN1_STRING_set_default_mask_asc(const char *p);
844 int ASN1_mbstring_copy(ASN1_STRING **out, const unsigned char *in, int len,
846 int ASN1_mbstring_ncopy(ASN1_STRING **out, const unsigned char *in, int len,
851 const unsigned char *in, int inlen,
860 ASN1_VALUE *ASN1_item_new(const ASN1_ITEM *it);
861 ASN1_VALUE *ASN1_item_new_ex(const ASN1_ITEM *it, OSSL_LIB_CTX *libctx,
862 const char *propq);
863 void ASN1_item_free(ASN1_VALUE *val, const ASN1_ITEM *it);
864 ASN1_VALUE *ASN1_item_d2i_ex(ASN1_VALUE **val, const unsigned char **in,
865 long len, const ASN1_ITEM *it,
866 OSSL_LIB_CTX *libctx, const char *propq);
867 ASN1_VALUE *ASN1_item_d2i(ASN1_VALUE **val, const unsigned char **in,
868 long len, const ASN1_ITEM *it);
869 int ASN1_item_i2d(const ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it);
870 int ASN1_item_ndef_i2d(const ASN1_VALUE *val, unsigned char **out,
871 const ASN1_ITEM *it);
876 ASN1_TYPE *ASN1_generate_nconf(const char *str, CONF *nconf);
877 ASN1_TYPE *ASN1_generate_v3(const char *str, X509V3_CTX *cnf);
878 int ASN1_str2mask(const char *str, unsigned long *pmask);
901 int ASN1_item_print(BIO *out, const ASN1_VALUE *ifld, int indent,
902 const ASN1_ITEM *it, const ASN1_PCTX *pctx);
905 unsigned long ASN1_PCTX_get_flags(const ASN1_PCTX *p);
907 unsigned long ASN1_PCTX_get_nm_flags(const ASN1_PCTX *p);
909 unsigned long ASN1_PCTX_get_cert_flags(const ASN1_PCTX *p);
911 unsigned long ASN1_PCTX_get_oid_flags(const ASN1_PCTX *p);
913 unsigned long ASN1_PCTX_get_str_flags(const ASN1_PCTX *p);
918 const ASN1_ITEM *ASN1_SCTX_get_item(ASN1_SCTX *p);
919 const ASN1_TEMPLATE *ASN1_SCTX_get_template(ASN1_SCTX *p);
924 const BIO_METHOD *BIO_f_asn1(void);
927 BIO *BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it);
930 const ASN1_ITEM *it);
932 const char *hdr, const ASN1_ITEM *it);
936 STACK_OF(X509_ALGOR) *mdalgs, const ASN1_ITEM *it);
939 STACK_OF(X509_ALGOR) *mdalgs, const ASN1_ITEM *it,
940 OSSL_LIB_CTX *libctx, const char *propq);
941 ASN1_VALUE *SMIME_read_ASN1(BIO *bio, BIO **bcont, const ASN1_ITEM *it);
943 const ASN1_ITEM *it, ASN1_VALUE **x,
944 OSSL_LIB_CTX *libctx, const char *propq);
948 const ASN1_ITEM *ASN1_ITEM_lookup(const char *name);
949 const ASN1_ITEM *ASN1_ITEM_get(size_t i);