Home
last modified time | relevance | path

Searched refs:it (Results 1 – 25 of 859) sorted by relevance

12345678910>>...35

/openssl/crypto/asn1/
H A Dtasn_new.c74 switch (it->itype) { in asn1_item_embed_new()
77 ef = it->funcs; in asn1_item_embed_new()
149 for (i = 0, tt = it->templates; i < it->tcount; tt++, i++) { in asn1_item_embed_new()
178 switch (it->itype) { in asn1_item_clear()
181 ef = it->funcs; in asn1_item_clear()
189 if (it->templates) in asn1_item_clear()
268 if (!it) in asn1_primitive_new()
271 if (it->funcs) { in asn1_primitive_new()
286 utype = it->utype; in asn1_primitive_new()
330 if (it && it->funcs) { in asn1_primitive_clear()
[all …]
H A Dtasn_fre.c32 const ASN1_AUX *aux = it->funcs; in ossl_asn1_item_embed_free()
45 switch (it->itype) { in ossl_asn1_item_embed_free()
48 if (it->templates) in ossl_asn1_item_embed_free()
68 tt = it->templates + i; in ossl_asn1_item_embed_free()
81 ef = it->funcs; in ossl_asn1_item_embed_free()
99 ossl_asn1_enc_free(pval, it); in ossl_asn1_item_embed_free()
105 tt = it->templates + it->tcount; in ossl_asn1_item_embed_free()
155 if (it) { in ossl_asn1_primitive_free()
170 if (!it) { in ossl_asn1_primitive_free()
182 utype = it->utype; in ossl_asn1_primitive_free()
[all …]
H A Dx_bignum.c24 static int bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it);
26 static void bn_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
29 const ASN1_ITEM *it);
65 static int bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_ITEM_start()
83 static void bn_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in bn_free() argument
87 if (it->size & BN_SENSITIVE) in bn_free()
95 const ASN1_ITEM *it) in bn_i2c() argument
120 if (*pval == NULL && !bn_new(pval, it)) in bn_c2i()
124 bn_free(pval, it); in bn_c2i()
136 if (*pval == NULL && !bn_secure_new(pval, it)) in bn_secure_c2i()
[all …]
H A Dx_int64.c29 static int uint64_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_new() argument
36 static void uint64_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_free() argument
48 const ASN1_ITEM *it) in uint64_i2c() argument
61 if ((it->size & INTxx_FLAG_SIGNED) == INTxx_FLAG_SIGNED in uint64_i2c()
78 if (*pval == NULL && !uint64_new(pval, it)) in uint64_c2i()
94 if ((it->size & INTxx_FLAG_SIGNED) == 0 && neg) { in uint64_c2i()
98 if ((it->size & INTxx_FLAG_SIGNED) == INTxx_FLAG_SIGNED in uint64_c2i()
141 const ASN1_ITEM *it) in uint32_i2c() argument
154 if ((it->size & INTxx_FLAG_SIGNED) == INTxx_FLAG_SIGNED in uint32_i2c()
179 if (*pval == NULL && !uint64_new(pval, it)) in uint32_c2i()
[all …]
H A Dtasn_enc.c87 const ASN1_AUX *aux = it->funcs; in ASN1_item_ex_i2d()
98 switch (it->itype) { in ASN1_item_ex_i2d()
101 if (it->templates) in ASN1_item_ex_i2d()
132 chtt = it->templates + i; in ASN1_item_ex_i2d()
143 ef = it->funcs; in ASN1_item_ex_i2d()
172 for (i = 0, tt = it->templates; i < it->tcount; tt++, i++) { in ASN1_item_ex_i2d()
191 for (i = 0, tt = it->templates; i < it->tcount; tt++, i++) { in ASN1_item_ex_i2d()
470 utype = it->utype; in asn1_i2d_ex_primitive()
533 pf = it->funcs; in asn1_ex_i2c()
577 if (it->utype != V_ASN1_ANY) { in asn1_ex_i2c()
[all …]
H A Dtasn_utl.c31 int *sel = offset2ptr(*pval, it->utype); in ossl_asn1_get_choice_selector()
39 int *sel = offset2ptr(*pval, it->utype); in ossl_asn1_get_choice_selector_const()
53 sel = offset2ptr(*pval, it->utype); in ossl_asn1_set_choice_selector()
75 if ((it->itype != ASN1_ITYPE_SEQUENCE) in ossl_asn1_do_lock()
76 && (it->itype != ASN1_ITYPE_NDEF_SEQUENCE)) in ossl_asn1_do_lock()
78 aux = it->funcs; in ossl_asn1_do_lock()
103 REF_PRINT_EX(it->sname, ret, (void *)it); in ossl_asn1_do_lock()
122 aux = it->funcs; in asn1_get_enc_ptr()
135 aux = it->funcs; in asn1_get_const_enc_ptr()
165 const ASN1_ITEM *it) in ossl_asn1_enc_save() argument
[all …]
H A Dx_long.c21 static int long_new(ASN1_VALUE **pval, const ASN1_ITEM *it);
22 static void long_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
25 const ASN1_ITEM *it);
27 int utype, char *free_cont, const ASN1_ITEM *it);
49 static int long_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_ITEM_start()
51 memcpy(pval, &it->size, COPY_SIZE(*pval, it->size)); in ASN1_ITEM_start()
55 static void long_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in long_free() argument
57 memcpy(pval, &it->size, COPY_SIZE(*pval, it->size)); in long_free()
86 const ASN1_ITEM *it) in long_i2c() argument
93 if (ltmp == it->size) in long_i2c()
[all …]
H A Da_dup.c50 void *ASN1_item_dup(const ASN1_ITEM *it, const void *x) in ASN1_item_dup() argument
63 if (it->itype == ASN1_ITYPE_SEQUENCE || it->itype == ASN1_ITYPE_CHOICE in ASN1_item_dup()
64 || it->itype == ASN1_ITYPE_NDEF_SEQUENCE) { in ASN1_item_dup()
65 const ASN1_AUX *aux = it->funcs; in ASN1_item_dup()
71 if (!asn1_cb(ASN1_OP_DUP_PRE, (ASN1_VALUE **)&x, it, NULL) in ASN1_item_dup()
72 || !asn1_cb(ASN1_OP_GET0_LIBCTX, (ASN1_VALUE **)&x, it, &libctx) in ASN1_item_dup()
73 || !asn1_cb(ASN1_OP_GET0_PROPQ, (ASN1_VALUE **)&x, it, &propq)) in ASN1_item_dup()
77 i = ASN1_item_i2d(x, &b, it); in ASN1_item_dup()
83 ret = ASN1_item_d2i_ex(NULL, &p, i, it, libctx, propq); in ASN1_item_dup()
87 && !asn1_cb(ASN1_OP_DUP_POST, &ret, it, (void *)x)) in ASN1_item_dup()
[all …]
H A Dasn1_local.h24 const ASN1_ITEM *it; member
52 int ossl_asn1_get_choice_selector(ASN1_VALUE **pval, const ASN1_ITEM *it);
54 const ASN1_ITEM *it);
56 const ASN1_ITEM *it);
66 int ossl_asn1_do_lock(ASN1_VALUE **pval, int op, const ASN1_ITEM *it);
68 void ossl_asn1_enc_init(ASN1_VALUE **pval, const ASN1_ITEM *it);
69 void ossl_asn1_enc_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
71 const ASN1_ITEM *it);
73 const ASN1_ITEM *it);
76 void ossl_asn1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int embed);
[all …]
H A Dtasn_dec.c121 ASN1_item_ex_free(pval, it); in asn1_item_ex_d2i_intern()
189 aux = it->funcs; in asn1_item_embed_d2i()
200 switch (it->itype) { in asn1_item_embed_d2i()
202 if (it->templates) { in asn1_item_embed_d2i()
260 ef = it->funcs; in asn1_item_embed_d2i()
293 for (i = 0, tt = it->templates; i < it->tcount; i++, tt++) { in asn1_item_embed_d2i()
317 if (i == it->tcount) { in asn1_item_embed_d2i()
375 for (i = 0, tt = it->templates; i < it->tcount; i++, tt++) { in asn1_item_embed_d2i()
388 for (i = 0, tt = it->templates; i < it->tcount; i++, tt++) { in asn1_item_embed_d2i()
720 utype = it->utype; in asn1_d2i_ex_primitive()
[all …]
H A Dtasn_prn.c128 sname = it->sname; in ASN1_item_print()
140 const ASN1_AUX *aux = it->funcs; in asn1_item_print_ctx()
152 if (((it->itype != ASN1_ITYPE_PRIMITIVE) in asn1_item_print_ctx()
163 switch (it->itype) { in asn1_item_print_ctx()
165 if (it->templates) { in asn1_item_print_ctx()
181 ef = it->funcs; in asn1_item_print_ctx()
203 tt = it->templates + i; in asn1_item_print_ctx()
232 for (i = 0, tt = it->templates; i < it->tcount; i++, tt++) { in asn1_item_print_ctx()
441 pf = it->funcs; in asn1_primitive_print()
450 utype = it->utype; in asn1_primitive_print()
[all …]
H A Dbio_ndef.c34 const ASN1_ITEM *it; member
58 BIO *BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it) in BIO_new_NDEF() argument
62 const ASN1_AUX *aux = it->funcs; in BIO_new_NDEF()
99 if (aux->asn1_cb(ASN1_OP_STREAM_PRE, &val, it, &sarg) <= 0) { in BIO_new_NDEF()
114 ndef_aux->it = it; in BIO_new_NDEF()
140 derlen = ASN1_item_ndef_i2d(ndef_aux->val, NULL, ndef_aux->it); in ndef_prefix()
148 ASN1_item_ndef_i2d(ndef_aux->val, &p, ndef_aux->it); in ndef_prefix()
203 aux = ndef_aux->it->funcs; in ndef_suffix()
210 &ndef_aux->val, ndef_aux->it, &sarg) <= 0) in ndef_suffix()
213 derlen = ASN1_item_ndef_i2d(ndef_aux->val, NULL, ndef_aux->it); in ndef_suffix()
[all …]
H A Dasn_pack.c16 ASN1_STRING *ASN1_item_pack(void *obj, const ASN1_ITEM *it, ASN1_STRING **oct) in ASN1_item_pack() argument
31 if ((octmp->length = ASN1_item_i2d(obj, &octmp->data, it)) <= 0) { in ASN1_item_pack()
52 void *ASN1_item_unpack(const ASN1_STRING *oct, const ASN1_ITEM *it) in ASN1_item_unpack() argument
58 if ((ret = ASN1_item_d2i(NULL, &p, oct->length, it)) == NULL) in ASN1_item_unpack()
63 void *ASN1_item_unpack_ex(const ASN1_STRING *oct, const ASN1_ITEM *it, in ASN1_item_unpack_ex() argument
70 if ((ret = ASN1_item_d2i_ex(NULL, &p, oct->length, it,\ in ASN1_item_unpack_ex()
H A Da_i2d_fp.c69 int ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, const void *x) in ASN1_item_i2d_fp() argument
79 ret = ASN1_item_i2d_bio(it, b, x); in ASN1_item_i2d_fp()
85 int ASN1_item_i2d_bio(const ASN1_ITEM *it, BIO *out, const void *x) in ASN1_item_i2d_bio() argument
90 n = ASN1_item_i2d(x, &b, it); in ASN1_item_i2d_bio()
111 BIO *ASN1_item_i2d_mem_bio(const ASN1_ITEM *it, const ASN1_VALUE *val) in ASN1_item_i2d_mem_bio() argument
115 if (it == NULL || val == NULL) { in ASN1_item_i2d_mem_bio()
122 if (ASN1_item_i2d_bio(it, res, val) <= 0) { in ASN1_item_i2d_mem_bio()
H A Da_d2i_fp.c58 void *ASN1_item_d2i_bio_ex(const ASN1_ITEM *it, BIO *in, void *x, in ASN1_item_d2i_bio_ex() argument
73 ret = ASN1_item_d2i_ex(x, &p, len, it, libctx, propq); in ASN1_item_d2i_bio_ex()
79 void *ASN1_item_d2i_bio(const ASN1_ITEM *it, BIO *in, void *x) in ASN1_item_d2i_bio() argument
81 return ASN1_item_d2i_bio_ex(it, in, x, NULL, NULL); in ASN1_item_d2i_bio()
85 void *ASN1_item_d2i_fp_ex(const ASN1_ITEM *it, FILE *in, void *x, in ASN1_item_d2i_fp_ex() argument
96 ret = ASN1_item_d2i_bio_ex(it, b, x, libctx, propq); in ASN1_item_d2i_fp_ex()
101 void *ASN1_item_d2i_fp(const ASN1_ITEM *it, FILE *in, void *x) in ASN1_item_d2i_fp() argument
103 return ASN1_item_d2i_fp_ex(it, in, x, NULL, NULL); in ASN1_item_d2i_fp()
H A Dasn_mime.c44 const ASN1_ITEM *it);
70 const ASN1_ITEM *it) in i2d_ASN1_bio_stream() argument
77 bio = BIO_new_NDEF(out, val, it); in i2d_ASN1_bio_stream()
99 ASN1_item_i2d_bio(it, out, val); in i2d_ASN1_bio_stream()
106 const ASN1_ITEM *it) in B64_write_ASN1() argument
119 r = i2d_ASN1_bio_stream(out, val, in, flags, it); in B64_write_ASN1()
133 r = B64_write_ASN1(out, val, in, flags, it); in PEM_write_bio_ASN1_stream()
293 B64_write_ASN1(bio, val, NULL, 0, it); in SMIME_write_ASN1_ex()
326 if (!B64_write_ASN1(bio, val, data, flags, it)) in SMIME_write_ASN1_ex()
344 const ASN1_ITEM *it) in asn1_output_data() argument
[all …]
/openssl/test/recipes/15-test_mp_rsa_data/
H A Dplain_text1 It was the best of times, it was the worst of times,
2 it was the age of wisdom, it was the age of foolishness,
3 it was the epoch of belief, it was the epoch of incredulity,
4 it was the season of Light, it was the season of Darkness.
/openssl/doc/man3/
H A DASN1_item_d2i_bio.pod15 long len, const ASN1_ITEM *it,
18 long len, const ASN1_ITEM *it);
20 void *ASN1_item_d2i_bio_ex(const ASN1_ITEM *it, BIO *in, void *x,
22 void *ASN1_item_d2i_bio(const ASN1_ITEM *it, BIO *in, void *x);
24 void *ASN1_item_d2i_fp_ex(const ASN1_ITEM *it, FILE *in, void *x,
26 void *ASN1_item_d2i_fp(const ASN1_ITEM *it, FILE *in, void *x);
28 BIO *ASN1_item_i2d_mem_bio(const ASN1_ITEM *it, const ASN1_VALUE *val);
32 void *ASN1_item_unpack(const ASN1_STRING *oct, const ASN1_ITEM *it);
34 void *ASN1_item_unpack_ex(const ASN1_STRING *oct, const ASN1_ITEM *it,
74 using the ASN.1 template I<it> and returns the result in a memory BIO.
[all …]
H A DASN1_EXTERN_FUNCS.pod15 const ASN1_ITEM *it, int tag, int aclass, char opt,
18 const ASN1_ITEM *it, int tag, int aclass, char opt,
22 const ASN1_ITEM *it, int tag, int aclass);
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);
87 in I<*pval> and making it suitable for reuse. The I<it> parameter is a pointer
95 B<ASN_VALUE> it points to should be reused. Otherwise a new B<ASN1_VALUE>
100 it will be zero. The I<it> parameter is a pointer to the B<ASN1_ITEM> template
123 returned as if it were.
[all …]
H A DASN1_TYPE_get.pod17 void *ASN1_TYPE_unpack_sequence(const ASN1_ITEM *it, const ASN1_TYPE *t);
18 ASN1_TYPE *ASN1_TYPE_pack_sequence(const ASN1_ITEM *it, void *s,
25 such as a SEQUENCE: it is effectively equivalent to the ASN.1 ANY type.
27 ASN1_TYPE_get() returns the type of I<a> or 0 if it fails.
30 function uses the pointer I<value> internally so it must B<not> be freed
39 I<t> using the ASN.1 structure I<it>. If successful it returns a pointer
40 to the ASN.1 structure corresponding to I<it> which must be freed by the
41 caller. If it fails it return NULL.
44 corresponding to I<it> into an B<ASN1_TYPE>. If successful the encoded
89 ASN1_TYPE_pack_sequence() return an B<ASN1_TYPE> structure if it succeeds or
H A DX509_check_ca.pod21 Function return 0, if it is not CA certificate, 1 if it is proper X509v3
23 3, if it is self-signed X509 v1 certificate, 4, if it is certificate with
25 B<basicConstraints>, and 5 if it has outdated Netscape Certificate Type
26 extension telling that it is CA certificate.
H A DASN1_item_sign.pod13 int ASN1_item_sign_ex(const ASN1_ITEM *it, X509_ALGOR *algor1,
23 int ASN1_item_sign_ctx(const ASN1_ITEM *it, X509_ALGOR *algor1,
27 int ASN1_item_verify_ex(const ASN1_ITEM *it, const X509_ALGOR *alg,
32 int ASN1_item_verify(const ASN1_ITEM *it, const X509_ALGOR *alg,
36 int ASN1_item_verify_ctx(const ASN1_ITEM *it, const X509_ALGOR *alg,
45 converting it to der format using the ASN.1 structure I<it>.
52 Examples of valid values that can be used by the ASN.1 structure I<it> are
71 converting it to der format using the ASN.1 structure I<it>.
90 check fails. If the signature could not be checked at all because it was
148 const ASN1_ITEM *it = ASN1_ITEM_rptr(MySignInfoObject);
[all …]
/openssl/external/perl/Text-Template-1.56/
H A DINSTALL10 to test the package. If it fails any tests, please send me the output
11 of `make test' and `perl -V'. I'll tell you whether it is safe to go
14 If it passes the tests, use
18 to install it.
21 file. You may be able to view it with the following command:
/openssl/crypto/pkcs12/
H A Dp12_decr.c135 void *PKCS12_item_decrypt_d2i_ex(const X509_ALGOR *algor, const ASN1_ITEM *it, in PKCS12_item_decrypt_d2i_ex() argument
155 ret = ASN1_item_d2i(NULL, &p, outlen, it); in PKCS12_item_decrypt_d2i_ex()
164 void *PKCS12_item_decrypt_d2i(const X509_ALGOR *algor, const ASN1_ITEM *it, in PKCS12_item_decrypt_d2i() argument
168 return PKCS12_item_decrypt_d2i_ex(algor, it, pass, passlen, oct, zbuf, in PKCS12_item_decrypt_d2i()
178 const ASN1_ITEM *it, in PKCS12_item_i2d_encrypt_ex() argument
192 inlen = ASN1_item_i2d(obj, &in, it); in PKCS12_item_i2d_encrypt_ex()
213 const ASN1_ITEM *it, in PKCS12_item_i2d_encrypt() argument
217 return PKCS12_item_i2d_encrypt_ex(algor, it, pass, passlen, obj, zbuf, NULL, NULL); in PKCS12_item_i2d_encrypt()
/openssl/apps/
H A Dasn1parse.c78 const ASN1_ITEM *it = NULL; in asn1parse_main() local
143 it = ASN1_ITEM_lookup(opt_arg()); in asn1parse_main()
144 if (it == NULL) { in asn1parse_main()
150 it = ASN1_ITEM_get(tmp); in asn1parse_main()
151 if (it == NULL) in asn1parse_main()
153 BIO_printf(bio_err, " %s\n", it->sname); in asn1parse_main()
289 if (it != NULL) { in asn1parse_main()
290 ASN1_VALUE *value = ASN1_item_d2i(NULL, &p, length, it); in asn1parse_main()
292 BIO_printf(bio_err, "Error parsing item %s\n", it->sname); in asn1parse_main()
296 ASN1_item_print(bio_out, value, 0, it, NULL); in asn1parse_main()
[all …]

Completed in 64 milliseconds

12345678910>>...35