Home
last modified time | relevance | path

Searched refs:pval (Results 1 – 25 of 45) sorted by relevance

12

/openssl/crypto/asn1/
H A Dtasn_new.c115 if (*pval == NULL) in asn1_item_embed_new()
137 if (*pval == NULL) in asn1_item_embed_new()
144 *pval = NULL; in asn1_item_embed_new()
185 *pval = NULL; in asn1_item_clear()
202 *pval = NULL; in asn1_item_clear()
216 pval = &tval; in asn1_template_new()
225 *pval = NULL; in asn1_template_new()
251 *pval = NULL; in asn1_template_clear()
322 if (*pval) in asn1_primitive_new()
335 *pval = NULL; in asn1_primitive_clear()
[all …]
H A Dtasn_fre.c36 if (pval == NULL) in ossl_asn1_item_embed_free()
75 OPENSSL_free(*pval); in ossl_asn1_item_embed_free()
76 *pval = NULL; in ossl_asn1_item_embed_free()
91 *pval = NULL; in ossl_asn1_item_embed_free()
120 *pval = NULL; in ossl_asn1_item_embed_free()
132 pval = &tval; in ossl_asn1_template_free()
144 *pval = NULL; in ossl_asn1_template_free()
175 if (*pval == NULL) in ossl_asn1_primitive_free()
179 if (*pval == NULL) in ossl_asn1_primitive_free()
204 OPENSSL_free(*pval); in ossl_asn1_primitive_free()
[all …]
H A Dx_bignum.c68 if (*pval != NULL) in ASN1_ITEM_start()
77 if (*pval != NULL) in bn_secure_new()
85 if (*pval == NULL) in bn_free()
91 *pval = NULL; in bn_free()
99 if (*pval == NULL) in bn_i2c()
101 bn = (BIGNUM *)*pval; in bn_i2c()
120 if (*pval == NULL && !bn_new(pval, it)) in bn_c2i()
122 bn = (BIGNUM *)*pval; 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.c38 OPENSSL_free(*pval); in uint64_free()
39 *pval = NULL; in uint64_free()
44 **(uint64_t **)pval = 0; in uint64_clear()
53 char *cp = (char *)*pval; in uint64_i2c()
78 if (*pval == NULL && !uint64_new(pval, it)) in uint64_c2i()
81 cp = (char *)*pval; in uint64_c2i()
131 OPENSSL_free(*pval); in uint32_free()
132 *pval = NULL; in uint32_free()
137 **(uint32_t **)pval = 0; in uint32_clear()
179 if (*pval == NULL && !uint64_new(pval, it)) in uint32_c2i()
[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()
81 lock = offset2ptr(*pval, aux->ref_lock); in ossl_asn1_do_lock()
82 refcnt = offset2ptr(*pval, aux->ref_offset); in ossl_asn1_do_lock()
120 if (pval == NULL || *pval == NULL) in asn1_get_enc_ptr()
125 return offset2ptr(*pval, aux->enc_offset); in asn1_get_enc_ptr()
133 if (pval == NULL || *pval == NULL) in asn1_get_const_enc_ptr()
138 return offset2ptr(*pval, aux->enc_offset); in asn1_get_const_enc_ptr()
143 ASN1_ENCODING *enc = asn1_get_enc_ptr(pval, it); in ossl_asn1_enc_init()
[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);
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,
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()
92 memcpy(&ltmp, pval, COPY_SIZE(*pval, ltmp)); in long_i2c()
185 memcpy(pval, &ltmp, COPY_SIZE(*pval, ltmp)); in long_c2i()
[all …]
H A Dasn1_local.h52 int ossl_asn1_get_choice_selector(ASN1_VALUE **pval, const ASN1_ITEM *it);
53 int ossl_asn1_get_choice_selector_const(const ASN1_VALUE **pval,
55 int ossl_asn1_set_choice_selector(ASN1_VALUE **pval, int value,
58 ASN1_VALUE **ossl_asn1_get_field_ptr(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt);
59 const ASN1_VALUE **ossl_asn1_get_const_field_ptr(const ASN1_VALUE **pval,
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);
72 int ossl_asn1_enc_save(ASN1_VALUE **pval, const unsigned char *in, int inlen,
77 void ossl_asn1_template_free(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt);
[all …]
H A Dtasn_enc.c226 tval = (ASN1_VALUE *)pval; in asn1_template_ex_i2d()
227 pval = &tval; in asn1_template_ex_i2d()
275 if (*pval == NULL) in asn1_template_ex_i2d()
476 len = asn1_ex_i2c(pval, NULL, &utype, it); in asn1_i2d_ex_primitive()
508 asn1_ex_i2c(pval, *out, &utype, it); in asn1_i2d_ex_primitive()
540 if (*pval == NULL) in asn1_ex_i2c()
546 strtmp = (ASN1_STRING *)*pval; in asn1_ex_i2c()
552 typ = (ASN1_TYPE *)*pval; in asn1_ex_i2c()
561 otmp = (ASN1_OBJECT *)*pval; in asn1_ex_i2c()
574 tbool = (ASN1_BOOLEAN *)pval; in asn1_ex_i2c()
[all …]
H A Dtasn_dec.c141 if (pval == NULL) in ASN1_item_d2i_ex()
142 pval = &ptmpval; in ASN1_item_d2i_ex()
146 return *pval; in ASN1_item_d2i_ex()
278 if (*pval) { in asn1_item_embed_d2i()
365 if (*pval == NULL in asn1_item_embed_d2i()
711 if (pval == NULL) { in asn1_d2i_ex_primitive()
846 if (*pval == NULL) { in asn1_ex_c2i()
856 opval = pval; in asn1_ex_c2i()
870 *pval = (ASN1_VALUE *)1; in asn1_ex_c2i()
933 if (*pval == NULL) { in asn1_ex_c2i()
[all …]
H A Dp8_pkey.c17 static int pkey_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in pkey_cb() argument
22 PKCS8_PRIV_KEY_INFO *key = (PKCS8_PRIV_KEY_INFO *)*pval; in pkey_cb()
40 int ptype, void *pval, unsigned char *penc, int penclen)
46 if (!X509_ALGOR_set0(priv->pkeyalg, aobj, ptype, pval))
H A Dnsseq.c16 static int nsseq_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in nsseq_cb() argument
21 nsseq = (NETSCAPE_CERT_SEQUENCE *)*pval; in nsseq_cb()
H A Dx_algor.c31 int X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype, void *pval)
49 ASN1_TYPE_set(alg->parameter, ptype, pval);
53 X509_ALGOR *ossl_X509_ALGOR_from_nid(int nid, int ptype, void *pval) in ossl_X509_ALGOR_from_nid() argument
62 if (X509_ALGOR_set0(alg, algo, ptype, pval)) in ossl_X509_ALGOR_from_nid()
/openssl/crypto/rsa/
H A Drsa_asn1.c28 static int rsa_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in rsa_cb() argument
32 *pval = (ASN1_VALUE *)RSA_new(); in rsa_cb()
33 if (*pval != NULL) in rsa_cb()
37 RSA_free((RSA *)*pval); in rsa_cb()
38 *pval = NULL; in rsa_cb()
41 if (((RSA *)*pval)->version != RSA_ASN1_VERSION_MULTI) { in rsa_cb()
45 return (ossl_rsa_multip_calc_product((RSA *)*pval) == 1) ? 2 : 0; in rsa_cb()
77 static int rsa_pss_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
81 RSA_PSS_PARAMS *pss = (RSA_PSS_PARAMS *)*pval;
98 static int rsa_oaep_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
[all …]
/openssl/crypto/dsa/
H A Ddsa_asn1.c25 static int dsa_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in dsa_cb() argument
29 *pval = (ASN1_VALUE *)DSA_new(); in dsa_cb()
30 if (*pval != NULL) in dsa_cb()
34 DSA_free((DSA *)*pval); in dsa_cb()
35 *pval = NULL; in dsa_cb()
H A Ddsa_backend.c129 const void *pval; in ossl_dsa_key_from_pkcs8() local
141 X509_ALGOR_get0(NULL, &ptype, &pval, palg); in ossl_dsa_key_from_pkcs8()
148 pstr = pval; in ossl_dsa_key_from_pkcs8()
/openssl/crypto/dh/
H A Ddh_asn1.c25 static int dh_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in dh_cb() argument
29 *pval = (ASN1_VALUE *)DH_new(); in dh_cb()
30 if (*pval != NULL) in dh_cb()
34 DH_free((DH *)*pval); in dh_cb()
35 *pval = NULL; in dh_cb()
38 DH *dh = (DH *)*pval; in dh_cb()
/openssl/doc/man3/
H A DASN1_EXTERN_FUNCS.pod14 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,
71 newly constructed value should be stored in I<*pval>. The I<it> parameter is a
79 A "free" function responsible for freeing the B<ASN1_VALUE> passed in I<*pval>
94 class I<class> into an B<ASN1_VALUE>. If I<*pval> is non-NULL then the
[all …]
H A DASN1_item_d2i_bio.pod14 ASN1_VALUE *ASN1_item_d2i_ex(ASN1_VALUE **pval, const unsigned char **in,
17 ASN1_VALUE *ASN1_item_d2i(ASN1_VALUE **pval, const unsigned char **in,
41 I<it>. It places the result in I<*pval> unless I<pval> is NULL. If I<*pval> is
55 and places the result in I<*pval> unless I<pval> is NULL.
/openssl/crypto/cms/
H A Dcms_asn1.c46 static int cms_si_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
50 CMS_SignerInfo *si = (CMS_SignerInfo *)*pval;
94 static int cms_ec_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
97 CMS_EncryptedContentInfo *ec = (CMS_EncryptedContentInfo *)*pval;
133 static int cms_rek_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
136 CMS_RecipientEncryptedKey *rek = (CMS_RecipientEncryptedKey *)*pval;
162 CMS_KeyAgreeRecipientInfo *kari = (CMS_KeyAgreeRecipientInfo *)*pval;
214 CMS_RecipientInfo *ri = (CMS_RecipientInfo *)*pval;
305 static int cms_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in cms_cb() argument
310 if (pval) in cms_cb()
[all …]
/openssl/crypto/conf/
H A Dconf_def.c193 static int parsebool(const char *pval, int *flag) in parsebool() argument
195 if (OPENSSL_strcasecmp(pval, "on") == 0 in parsebool()
196 || OPENSSL_strcasecmp(pval, "true") == 0) { in parsebool()
198 } else if (OPENSSL_strcasecmp(pval, "off") == 0 in parsebool()
199 || OPENSSL_strcasecmp(pval, "false") == 0) { in parsebool()
395 char *pval; in def_load_bio() local
404 pval = strchr(p, ':'); in def_load_bio()
405 if (pval == NULL || pval == p || pval[1] == '\0') { in def_load_bio()
410 *pval++ = '\0'; in def_load_bio()
412 pval = eat_ws(conf, pval); in def_load_bio()
[all …]
/openssl/crypto/x509/
H A Dx_pubkey.c90 if (pval != NULL && (pubkey = (X509_PUBKEY *)*pval) != NULL) { in x509_pubkey_ex_free()
96 *pval = NULL; in x509_pubkey_ex_free()
102 X509_PUBKEY *pubkey = (X509_PUBKEY *)*pval; in x509_pubkey_ex_populate()
124 *pval = (ASN1_VALUE *)ret; in x509_pubkey_ex_new_ex()
130 static int x509_pubkey_ex_d2i_ex(ASN1_VALUE **pval, in x509_pubkey_ex_d2i_ex() argument
143 if (*pval == NULL && !x509_pubkey_ex_new_ex(pval, it, libctx, propq)) in x509_pubkey_ex_d2i_ex()
145 if (!x509_pubkey_ex_populate(pval, NULL)) { in x509_pubkey_ex_d2i_ex()
151 if ((ret = ASN1_item_ex_d2i(pval, in, len, in x509_pubkey_ex_d2i_ex()
162 pubkey = (X509_PUBKEY *)*pval; in x509_pubkey_ex_d2i_ex()
248 return ASN1_item_print(out, *pval, indent, in x509_pubkey_ex_print()
[all …]
H A Dx_req.c35 static int rinf_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in rinf_cb() argument
38 X509_REQ_INFO *rinf = (X509_REQ_INFO *)*pval; in rinf_cb()
48 static int req_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in req_cb() argument
51 X509_REQ *ret = (X509_REQ *)*pval; in req_cb()
H A Dx_name.c42 static int x509_name_ex_print(BIO *out, const ASN1_VALUE **pval,
116 static void x509_name_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in x509_name_ex_free() argument
120 if (pval == NULL || *pval == NULL) in x509_name_ex_free()
122 a = (X509_NAME *)*pval; in x509_name_ex_free()
128 *pval = NULL; in x509_name_ex_free()
289 static int x509_name_ex_print(BIO *out, const ASN1_VALUE **pval, in x509_name_ex_print() argument
293 if (X509_NAME_print_ex(out, (const X509_NAME *)*pval, in x509_name_ex_print()
/openssl/crypto/pkcs7/
H A Dpk7_asn1.c33 static int pk7_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in pk7_cb() argument
37 PKCS7 **pp7 = (PKCS7 **)pval; in pk7_cb()
137 static int si_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
141 PKCS7_SIGNER_INFO *si = (PKCS7_SIGNER_INFO *)*pval;
180 static int ri_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
184 PKCS7_RECIP_INFO *ri = (PKCS7_RECIP_INFO *)*pval;
/openssl/crypto/ec/
H A Dec_ameth.c71 void *pval = NULL; in eckey_pub_encode() local
76 if (!eckey_param2type(&ptype, &pval, ec_key)) { in eckey_pub_encode()
91 ptype, pval, penc, penclen)) in eckey_pub_encode()
95 ASN1_STRING_free(pval); in eckey_pub_encode()
167 void *pval; in eckey_priv_encode() local
170 if (!eckey_param2type(&ptype, &pval, &ec_key)) { in eckey_priv_encode()
191 ptype, pval, ep, eplen)) { in eckey_priv_encode()
201 ASN1_STRING_free(pval); in eckey_priv_encode()

Completed in 40 milliseconds

12