/freebsd/crypto/openssl/crypto/asn1/ |
H A D | asn1_local.h | 12 typedef const ASN1_VALUE const_ASN1_VALUE; 13 SKM_DEFINE_STACK_OF(const_ASN1_VALUE, const ASN1_VALUE, ASN1_VALUE) 36 ASN1_VALUE **field; 50 int ossl_asn1_get_choice_selector(ASN1_VALUE **pval, const ASN1_ITEM *it); 51 int ossl_asn1_get_choice_selector_const(const ASN1_VALUE **pval, 53 int ossl_asn1_set_choice_selector(ASN1_VALUE **pval, int value, 56 ASN1_VALUE **ossl_asn1_get_field_ptr(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt); 57 const ASN1_VALUE **ossl_asn1_get_const_field_ptr(const ASN1_VALUE **pval, 60 const ASN1_TEMPLATE *ossl_asn1_do_adb(const ASN1_VALUE *val, 64 int ossl_asn1_do_lock(ASN1_VALUE **pval, int op, const ASN1_ITEM *it); [all …]
|
H A D | tasn_new.c | 18 static int asn1_item_embed_new(ASN1_VALUE **pval, const ASN1_ITEM *it, 21 static int asn1_primitive_new(ASN1_VALUE **pval, const ASN1_ITEM *it, 23 static void asn1_item_clear(ASN1_VALUE **pval, const ASN1_ITEM *it); 24 static int asn1_template_new(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt, 26 static void asn1_template_clear(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt); 27 static void asn1_primitive_clear(ASN1_VALUE **pval, const ASN1_ITEM *it); 29 ASN1_VALUE *ASN1_item_new(const ASN1_ITEM *it) in ASN1_item_new() 31 ASN1_VALUE *ret = NULL; in ASN1_item_new() 37 ASN1_VALUE *ASN1_item_new_ex(const ASN1_ITEM *it, OSSL_LIB_CTX *libctx, in ASN1_item_new_ex() 40 ASN1_VALUE *ret = NULL; in ASN1_item_new_ex() [all …]
|
H A D | x_bignum.c | 24 static int bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it); 25 static int bn_secure_new(ASN1_VALUE **pval, const ASN1_ITEM *it); 26 static void bn_free(ASN1_VALUE **pval, const ASN1_ITEM *it); 28 static int bn_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype, 30 static int bn_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, 32 static int bn_secure_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, 34 static int bn_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it, 65 static int bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_ITEM_start() 67 *pval = (ASN1_VALUE *)BN_new(); in ASN1_ITEM_start() 74 static int bn_secure_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in bn_secure_new() [all …]
|
H A D | tasn_utl.c | 29 int ossl_asn1_get_choice_selector(ASN1_VALUE **pval, const ASN1_ITEM *it) in ossl_asn1_get_choice_selector() 36 int ossl_asn1_get_choice_selector_const(const ASN1_VALUE **pval, in ossl_asn1_get_choice_selector_const() 48 int ossl_asn1_set_choice_selector(ASN1_VALUE **pval, int value, in ossl_asn1_set_choice_selector() 68 int ossl_asn1_do_lock(ASN1_VALUE **pval, int op, const ASN1_ITEM *it) in ossl_asn1_do_lock() 112 static ASN1_ENCODING *asn1_get_enc_ptr(ASN1_VALUE **pval, const ASN1_ITEM *it) in asn1_get_enc_ptr() 124 static const ASN1_ENCODING *asn1_get_const_enc_ptr(const ASN1_VALUE **pval, in asn1_get_const_enc_ptr() 137 void ossl_asn1_enc_init(ASN1_VALUE **pval, const ASN1_ITEM *it) in ossl_asn1_enc_init() 148 void ossl_asn1_enc_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in ossl_asn1_enc_free() 160 int ossl_asn1_enc_save(ASN1_VALUE **pval, const unsigned char *in, int inlen, in ossl_asn1_enc_save() 182 int ossl_asn1_enc_restore(int *len, unsigned char **out, const ASN1_VALUE **pval, in ossl_asn1_enc_restore() [all …]
|
H A D | tasn_fre.c | 18 void ASN1_item_free(ASN1_VALUE *val, const ASN1_ITEM *it) in ASN1_item_free() 23 void ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_item_ex_free() 28 void ossl_asn1_item_embed_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int embed) in ossl_asn1_item_embed_free() 66 ASN1_VALUE **pchval; in ossl_asn1_item_embed_free() 107 ASN1_VALUE **pseqval; in ossl_asn1_item_embed_free() 126 void ossl_asn1_template_free(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt) in ossl_asn1_template_free() 129 ASN1_VALUE *tval; in ossl_asn1_template_free() 131 tval = (ASN1_VALUE *)pval; in ossl_asn1_template_free() 135 STACK_OF(ASN1_VALUE) *sk = (STACK_OF(ASN1_VALUE) *)*pval; in ossl_asn1_template_free() 139 ASN1_VALUE *vtmp = sk_ASN1_VALUE_value(sk, i); in ossl_asn1_template_free() [all …]
|
H A D | x_int64.c | 29 static int uint64_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_new() 31 if ((*pval = (ASN1_VALUE *)OPENSSL_zalloc(sizeof(uint64_t))) == NULL) { in uint64_new() 38 static void uint64_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_free() 44 static void uint64_clear(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_clear() 49 static int uint64_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype, in uint64_i2c() 73 static int uint64_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, in uint64_c2i() 114 static int uint64_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it, in uint64_print() 124 static int uint32_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint32_new() 126 if ((*pval = (ASN1_VALUE *)OPENSSL_zalloc(sizeof(uint32_t))) == NULL) { in uint32_new() 133 static void uint32_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint32_free() [all …]
|
H A D | x_long.c | 21 static int long_new(ASN1_VALUE **pval, const ASN1_ITEM *it); 22 static void long_free(ASN1_VALUE **pval, const ASN1_ITEM *it); 24 static int long_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype, 26 static int long_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, 28 static int long_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it, 49 static int long_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_ITEM_start() 55 static void long_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in long_free() 85 static int long_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype, in long_i2c() 128 static int long_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, in long_c2i() 189 static int long_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it, in long_print()
|
H A D | tasn_enc.c | 19 static int asn1_i2d_ex_primitive(const ASN1_VALUE **pval, unsigned char **out, 25 static int asn1_template_ex_i2d(const ASN1_VALUE **pval, unsigned char **out, 27 static int asn1_item_flags_i2d(const ASN1_VALUE *val, unsigned char **out, 29 static int asn1_ex_i2c(const ASN1_VALUE **pval, unsigned char *cout, int *putype, 37 int ASN1_item_ndef_i2d(const ASN1_VALUE *val, unsigned char **out, in ASN1_item_ndef_i2d() 43 int ASN1_item_i2d(const ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it) in ASN1_item_i2d() 55 static int asn1_item_flags_i2d(const ASN1_VALUE *val, unsigned char **out, in asn1_item_flags_i2d() 83 int ASN1_item_ex_i2d(const ASN1_VALUE **pval, unsigned char **out, in ASN1_item_ex_i2d() 132 const ASN1_VALUE **pchval; in ASN1_item_ex_i2d() 176 const ASN1_VALUE **pseqval; in ASN1_item_ex_i2d() [all …]
|
H A D | tasn_dec.c | 28 static int asn1_item_embed_d2i(ASN1_VALUE **pval, const unsigned char **in, 47 static int asn1_template_ex_d2i(ASN1_VALUE **pval, 52 static int asn1_template_noexp_d2i(ASN1_VALUE **val, 57 static int asn1_d2i_ex_primitive(ASN1_VALUE **pval, 62 static int asn1_ex_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, 107 static int asn1_item_ex_d2i_intern(ASN1_VALUE **pval, const unsigned char **in, in asn1_item_ex_d2i_intern() 125 int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, in ASN1_item_ex_d2i() 133 ASN1_VALUE *ASN1_item_d2i_ex(ASN1_VALUE **pval, in ASN1_item_d2i_ex() 139 ASN1_VALUE *ptmpval = NULL; in ASN1_item_d2i_ex() 150 ASN1_VALUE *ASN1_item_d2i(ASN1_VALUE **pval, in ASN1_item_d2i() [all …]
|
H A D | tasn_prn.c | 104 static int asn1_item_print_ctx(BIO *out, const ASN1_VALUE **fld, int indent, 109 static int asn1_template_print_ctx(BIO *out, const ASN1_VALUE **fld, int indent, 112 static int asn1_primitive_print(BIO *out, const ASN1_VALUE **fld, 121 int ASN1_item_print(BIO *out, const ASN1_VALUE *ifld, int indent, in ASN1_item_print() 134 static int asn1_item_print_ctx(BIO *out, const ASN1_VALUE **fld, int indent, in asn1_item_print_ctx() 141 const ASN1_VALUE **tmpfld; in asn1_item_print_ctx() 264 static int asn1_template_print_ctx(BIO *out, const ASN1_VALUE **fld, int indent, in asn1_template_print_ctx() 269 const ASN1_VALUE *tfld; in asn1_template_print_ctx() 285 tfld = (const ASN1_VALUE *)fld; in asn1_template_print_ctx() 291 const ASN1_VALUE *skitem; in asn1_template_print_ctx() [all …]
|
H A D | a_dup.c | 58 ASN1_VALUE *ret; in ASN1_item_dup() 73 if (!asn1_cb(ASN1_OP_DUP_PRE, (ASN1_VALUE **)&x, it, NULL) in ASN1_item_dup() 74 || !asn1_cb(ASN1_OP_GET0_LIBCTX, (ASN1_VALUE **)&x, it, &libctx) in ASN1_item_dup() 75 || !asn1_cb(ASN1_OP_GET0_PROPQ, (ASN1_VALUE **)&x, it, &propq)) in ASN1_item_dup()
|
H A D | asn_mime.c | 43 static int asn1_output_data(BIO *out, BIO *data, ASN1_VALUE *val, int flags, 69 int i2d_ASN1_bio_stream(BIO *out, ASN1_VALUE *val, BIO *in, int flags, in i2d_ASN1_bio_stream() 105 static int B64_write_ASN1(BIO *out, ASN1_VALUE *val, BIO *in, int flags, in B64_write_ASN1() 128 int PEM_write_bio_ASN1_stream(BIO *out, ASN1_VALUE *val, BIO *in, int flags, in PEM_write_bio_ASN1_stream() 138 static ASN1_VALUE *b64_read_asn1(BIO *bio, const ASN1_ITEM *it, ASN1_VALUE **x, in b64_read_asn1() 142 ASN1_VALUE *val; in b64_read_asn1() 238 int SMIME_write_ASN1_ex(BIO *bio, ASN1_VALUE *val, BIO *data, int flags, in SMIME_write_ASN1_ex() 330 int SMIME_write_ASN1(BIO *bio, ASN1_VALUE *val, BIO *data, int flags, in SMIME_write_ASN1() 341 static int asn1_output_data(BIO *out, BIO *data, ASN1_VALUE *val, int flags, in asn1_output_data() 397 ASN1_VALUE *SMIME_read_ASN1_ex(BIO *bio, int flags, BIO **bcont, in SMIME_read_ASN1_ex() [all …]
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | asn1t.h | 629 typedef int ASN1_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, 633 typedef int ASN1_ex_d2i_ex(ASN1_VALUE **pval, const unsigned char **in, long len, 637 typedef int ASN1_ex_i2d(const ASN1_VALUE **pval, unsigned char **out, 639 typedef int ASN1_ex_new_func(ASN1_VALUE **pval, const ASN1_ITEM *it); 640 typedef int ASN1_ex_new_ex_func(ASN1_VALUE **pval, const ASN1_ITEM *it, 642 typedef void ASN1_ex_free_func(ASN1_VALUE **pval, const ASN1_ITEM *it); 644 typedef int ASN1_ex_print_func(BIO *out, const ASN1_VALUE **pval, 648 typedef int ASN1_primitive_i2c(const ASN1_VALUE **pval, unsigned char *cont, 650 typedef int ASN1_primitive_c2i(ASN1_VALUE **pval, const unsigned char *cont, 653 typedef int ASN1_primitive_print(BIO *out, const ASN1_VALUE **pval, [all …]
|
H A D | asn1t.h.in | 630 typedef int ASN1_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, 634 typedef int ASN1_ex_d2i_ex(ASN1_VALUE **pval, const unsigned char **in, long len, 638 typedef int ASN1_ex_i2d(const ASN1_VALUE **pval, unsigned char **out, 640 typedef int ASN1_ex_new_func(ASN1_VALUE **pval, const ASN1_ITEM *it); 641 typedef int ASN1_ex_new_ex_func(ASN1_VALUE **pval, const ASN1_ITEM *it, 643 typedef void ASN1_ex_free_func(ASN1_VALUE **pval, const ASN1_ITEM *it); 645 typedef int ASN1_ex_print_func(BIO *out, const ASN1_VALUE **pval, 649 typedef int ASN1_primitive_i2c(const ASN1_VALUE **pval, unsigned char *cont, 651 typedef int ASN1_primitive_c2i(ASN1_VALUE **pval, const unsigned char *cont, 654 typedef int ASN1_primitive_print(BIO *out, const ASN1_VALUE **pval, [all …]
|
H A D | asn1.h | 276 typedef struct ASN1_VALUE_st ASN1_VALUE; typedef 547 ASN1_VALUE *asn1_value; 972 BIO *ASN1_item_i2d_mem_bio(const ASN1_ITEM *it, const ASN1_VALUE *val); 1022 ASN1_VALUE *ASN1_item_new(const ASN1_ITEM *it); 1023 ASN1_VALUE *ASN1_item_new_ex(const ASN1_ITEM *it, OSSL_LIB_CTX *libctx, 1025 void ASN1_item_free(ASN1_VALUE *val, const ASN1_ITEM *it); 1026 ASN1_VALUE *ASN1_item_d2i_ex(ASN1_VALUE **val, const unsigned char **in, 1029 ASN1_VALUE *ASN1_item_d2i(ASN1_VALUE **val, const unsigned char **in, 1031 int ASN1_item_i2d(const ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it); 1032 int ASN1_item_ndef_i2d(const ASN1_VALUE *val, unsigned char **out, [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | ASN1_aux_cb.pod | 37 typedef int ASN1_aux_cb(int operation, ASN1_VALUE **in, const ASN1_ITEM *it, 39 typedef int ASN1_aux_const_cb(int operation, const ASN1_VALUE **in, 78 offset into the B<ASN1_VALUE> structure where a B<CRYPTO_REF_COUNT> may be 84 offset into the B<ASN1_VALUE> structure where a B<CRYPTO_RWLOCK> may be 94 Offset into the B<ASN1_VALUE> object where the original encoding of the object 105 During the processing of an B<ASN1_VALUE> object the callbacks set via 108 B<ASN1_VALUE> object being processed based on the template in I<it>. An 118 prior to an B<ASN1_VALUE> object being allocated. The callback may allocate the 119 B<ASN1_VALUE> itself and store it in I<*pval>. If it does so it should return 2 125 after an B<ASN1_VALUE> object has been allocated. The allocated object is in [all …]
|
H A D | ASN1_EXTERN_FUNCS.pod | 14 typedef int ASN1_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, 17 typedef int ASN1_ex_d2i_ex(ASN1_VALUE **pval, const unsigned char **in, long len, 21 typedef int ASN1_ex_i2d(const ASN1_VALUE **pval, unsigned char **out, 23 typedef int ASN1_ex_new_func(ASN1_VALUE **pval, const ASN1_ITEM *it); 24 typedef int ASN1_ex_new_ex_func(ASN1_VALUE **pval, const ASN1_ITEM *it, 26 typedef void ASN1_ex_free_func(ASN1_VALUE **pval, const ASN1_ITEM *it); 27 typedef int ASN1_ex_print_func(BIO *out, const ASN1_VALUE **pval, 52 B<ASN1_VALUE> or converting an B<ASN1_VALUE> to or from DER encoding. 70 A "new" function responsible for constructing a new B<ASN1_VALUE> object. The 79 A "free" function responsible for freeing the B<ASN1_VALUE> passed in I<*pval> [all …]
|
H A D | ASN1_item_d2i_bio.pod | 13 ASN1_VALUE *ASN1_item_d2i_ex(ASN1_VALUE **pval, const unsigned char **in, 16 ASN1_VALUE *ASN1_item_d2i(ASN1_VALUE **pval, const unsigned char **in, 27 BIO *ASN1_item_i2d_mem_bio(const ASN1_ITEM *it, const ASN1_VALUE *val); 34 non-NULL on entry then the B<ASN1_VALUE> present there will be reused. Otherwise 35 a new B<ASN1_VALUE> will be allocated. If any algorithm fetches are required 70 ASN1_item_d2i_bio() returns a pointer to an B<ASN1_VALUE> or NULL.
|
H A D | ASN1_item_new.pod | 12 ASN1_VALUE *ASN1_item_new_ex(const ASN1_ITEM *it, OSSL_LIB_CTX *libctx, 14 ASN1_VALUE *ASN1_item_new(const ASN1_ITEM *it); 18 ASN1_item_new_ex() creates a new B<ASN1_VALUE> structure based on the 30 B<ASN1_VALUE> or NULL on error.
|
H A D | SMIME_read_ASN1.pod | 12 ASN1_VALUE *SMIME_read_ASN1_ex(BIO *in, int flags, BIO **bcont, 13 const ASN1_ITEM *it, ASN1_VALUE **x, 15 ASN1_VALUE *SMIME_read_ASN1(BIO *in, BIO **bcont, const ASN1_ITEM *it); 27 a previously created I<it> ASN1_VALUE object (such as CMS_ContentInfo or PKCS7), 37 The parsed ASN1_VALUE structure is returned or NULL if an error occurred. 61 SMIME_read_ASN1_ex() and SMIME_read_ASN1() return a valid B<ASN1_VALUE>
|
/freebsd/crypto/openssl/crypto/x509/ |
H A D | x_name.c | 26 static int x509_name_ex_d2i(ASN1_VALUE **val, 31 static int x509_name_ex_i2d(const ASN1_VALUE **val, unsigned char **out, 33 static int x509_name_ex_new(ASN1_VALUE **val, const ASN1_ITEM *it); 34 static void x509_name_ex_free(ASN1_VALUE **val, const ASN1_ITEM *it); 42 static int x509_name_ex_print(BIO *out, const ASN1_VALUE **pval, 90 static int x509_name_ex_new(ASN1_VALUE **val, const ASN1_ITEM *it) in IMPLEMENT_EXTERN_ASN1() 101 *val = (ASN1_VALUE *)ret; in IMPLEMENT_EXTERN_ASN1() 113 static void x509_name_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in x509_name_ex_free() 138 static int x509_name_ex_d2i(ASN1_VALUE **val, in x509_name_ex_d2i() 146 ASN1_VALUE *a; in x509_name_ex_d2i() [all …]
|
/freebsd/crypto/openssl/crypto/cms/ |
H A D | cms_io.c | 61 return BIO_new_NDEF(out, (ASN1_VALUE *)cms, in IMPLEMENT_PEM_rw() 69 return i2d_ASN1_bio_stream(out, (ASN1_VALUE *)cms, in, flags, in i2d_CMS_bio_stream() 76 return PEM_write_bio_ASN1_stream(out, (ASN1_VALUE *)cms, in, flags, in PEM_write_bio_CMS_stream() 92 return SMIME_write_ASN1_ex(bio, (ASN1_VALUE *)cms, data, flags, ctype_nid, in SMIME_write_CMS() 107 (ASN1_VALUE **)cms, in SMIME_read_CMS_ex()
|
/freebsd/crypto/openssl/crypto/pkcs7/ |
H A D | pk7_mime.c | 20 return i2d_ASN1_bio_stream(out, (ASN1_VALUE *)p7, in, flags, in i2d_PKCS7_bio_stream() 26 return PEM_write_bio_ASN1_stream(out, (ASN1_VALUE *)p7, in, flags, in PEM_write_bio_PKCS7_stream() 46 return SMIME_write_ASN1_ex(bio, (ASN1_VALUE *)p7, data, flags, ctype_nid, in SMIME_write_PKCS7() 64 (ASN1_VALUE **)p7, libctx, propq); in SMIME_read_PKCS7_ex()
|
H A D | pk7_asn1.c | 33 static int pk7_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in pk7_cb() 77 ret = (PKCS7 *)ASN1_item_d2i_ex((ASN1_VALUE **)a, in, len, (PKCS7_it()), 86 return ASN1_item_i2d((const ASN1_VALUE *)a, out, (PKCS7_it()));\ in i2d_PKCS7() 118 ASN1_item_free((ASN1_VALUE *)p7, ASN1_ITEM_rptr(PKCS7)); in PKCS7_free() 138 static int si_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, 181 static int ri_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
|
/freebsd/crypto/openssl/crypto/rsa/ |
H A D | rsa_asn1.c | 28 static int rsa_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in rsa_cb() 32 *pval = (ASN1_VALUE *)RSA_new(); in rsa_cb() 77 static int rsa_pss_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, 98 static int rsa_oaep_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
|