Home
last modified time | relevance | path

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

12

/external/openssl/crypto/asn1/
Dtasn_fre.c65 static void asn1_item_combine_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int combine);
74 void ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_item_ex_free() argument
76 asn1_item_combine_free(pval, it, 0); in ASN1_item_ex_free()
79 static void asn1_item_combine_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int combine) in asn1_item_combine_free() argument
87 if (!pval) in asn1_item_combine_free()
89 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && !*pval) in asn1_item_combine_free()
101 ASN1_template_free(pval, it->templates); in asn1_item_combine_free()
103 ASN1_primitive_free(pval, it); in asn1_item_combine_free()
107 ASN1_primitive_free(pval, it); in asn1_item_combine_free()
113 i = asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL); in asn1_item_combine_free()
[all …]
Dtasn_new.c67 static int asn1_item_ex_combine_new(ASN1_VALUE **pval, const ASN1_ITEM *it,
69 static void asn1_item_clear(ASN1_VALUE **pval, const ASN1_ITEM *it);
70 static void asn1_template_clear(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt);
71 static void asn1_primitive_clear(ASN1_VALUE **pval, const ASN1_ITEM *it);
83 int ASN1_item_ex_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_item_ex_new() argument
85 return asn1_item_ex_combine_new(pval, it, 0); in ASN1_item_ex_new()
88 static int asn1_item_ex_combine_new(ASN1_VALUE **pval, const ASN1_ITEM *it, in asn1_item_ex_combine_new() argument
103 if (!combine) *pval = NULL; in asn1_item_ex_combine_new()
117 if (!ef->asn1_ex_new(pval, it)) in asn1_item_ex_combine_new()
125 *pval = cf->asn1_new(); in asn1_item_ex_combine_new()
[all …]
Dx_bignum.c72 static int bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it);
73 static void bn_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
75 static int bn_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype, const ASN1_ITEM *it);
76 static int bn_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, char *free_cont…
95 static int bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_ITEM_start()
97 *pval = (ASN1_VALUE *)BN_new(); in ASN1_ITEM_start()
98 if(*pval) return 1; in ASN1_ITEM_start()
102 static void bn_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in bn_free() argument
104 if(!*pval) return; in bn_free()
105 if(it->size & BN_SENSITIVE) BN_clear_free((BIGNUM *)*pval); in bn_free()
[all …]
Dtasn_utl.c76 int asn1_get_choice_selector(ASN1_VALUE **pval, const ASN1_ITEM *it) in asn1_get_choice_selector() argument
78 int *sel = offset2ptr(*pval, it->utype); in asn1_get_choice_selector()
86 int asn1_set_choice_selector(ASN1_VALUE **pval, int value, const ASN1_ITEM *it) in asn1_set_choice_selector() argument
89 sel = offset2ptr(*pval, it->utype); in asn1_set_choice_selector()
101 int asn1_do_lock(ASN1_VALUE **pval, int op, const ASN1_ITEM *it) in asn1_do_lock() argument
111 lck = offset2ptr(*pval, aux->ref_offset); in asn1_do_lock()
128 static ASN1_ENCODING *asn1_get_enc_ptr(ASN1_VALUE **pval, const ASN1_ITEM *it) in asn1_get_enc_ptr() argument
131 if (!pval || !*pval) in asn1_get_enc_ptr()
136 return offset2ptr(*pval, aux->enc_offset); in asn1_get_enc_ptr()
139 void asn1_enc_init(ASN1_VALUE **pval, const ASN1_ITEM *it) in asn1_enc_init() argument
[all …]
Dtasn_enc.c67 static int asn1_i2d_ex_primitive(ASN1_VALUE **pval, unsigned char **out,
73 static int asn1_template_ex_i2d(ASN1_VALUE **pval, unsigned char **out,
130 int ASN1_item_ex_i2d(ASN1_VALUE **pval, unsigned char **out, in ASN1_item_ex_i2d() argument
141 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && !*pval) in ASN1_item_ex_i2d()
152 return asn1_template_ex_i2d(pval, out, it->templates, in ASN1_item_ex_i2d()
154 return asn1_i2d_ex_primitive(pval, out, it, tag, aclass); in ASN1_item_ex_i2d()
158 return asn1_i2d_ex_primitive(pval, out, it, -1, aclass); in ASN1_item_ex_i2d()
161 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL)) in ASN1_item_ex_i2d()
163 i = asn1_get_choice_selector(pval, it); in ASN1_item_ex_i2d()
169 pchval = asn1_get_field_ptr(pval, chtt); in ASN1_item_ex_i2d()
[all …]
Dx_long.c69 static int long_new(ASN1_VALUE **pval, const ASN1_ITEM *it);
70 static void long_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
72 static int long_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype, const ASN1_ITEM *it);
73 static int long_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, char *free_co…
74 static int long_print(BIO *out, ASN1_VALUE **pval, const ASN1_ITEM *it, int indent, const ASN1_PCTX…
94 static int long_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_ITEM_start()
96 *(long *)pval = it->size; in ASN1_ITEM_start()
100 static void long_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in long_free() argument
102 *(long *)pval = it->size; in long_free()
105 static int long_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype, const ASN1_ITEM *it) in long_i2c() argument
[all …]
Dtasn_dec.c82 static int asn1_template_ex_d2i(ASN1_VALUE **pval,
90 static int asn1_d2i_ex_primitive(ASN1_VALUE **pval,
128 ASN1_VALUE *ASN1_item_d2i(ASN1_VALUE **pval, in ASN1_item_d2i() argument
133 if (!pval) in ASN1_item_d2i()
134 pval = &ptmpval; in ASN1_item_d2i()
136 if (ASN1_item_ex_d2i(pval, in, len, it, -1, 0, 0, &c) > 0) in ASN1_item_d2i()
137 return *pval; in ASN1_item_d2i()
141 int ASN1_template_d2i(ASN1_VALUE **pval, in ASN1_template_d2i() argument
146 return asn1_template_ex_d2i(pval, in, len, tt, 0, &c); in ASN1_template_d2i()
154 int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, in ASN1_item_ex_d2i() argument
[all …]
Dasn1t.h659 typedef int ASN1_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it,
662 typedef int ASN1_ex_i2d(ASN1_VALUE **pval, unsigned char **out, const ASN1_ITEM *it, int tag, int a…
663 typedef int ASN1_ex_new_func(ASN1_VALUE **pval, const ASN1_ITEM *it);
664 typedef void ASN1_ex_free_func(ASN1_VALUE **pval, const ASN1_ITEM *it);
666 typedef int ASN1_ex_print_func(BIO *out, ASN1_VALUE **pval,
670 typedef int ASN1_primitive_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype, const ASN1_ITEM…
671 typedef int ASN1_primitive_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, ch…
672 typedef int ASN1_primitive_print(BIO *out, ASN1_VALUE **pval, const ASN1_ITEM *it, int indent, cons…
926 int ASN1_item_ex_new(ASN1_VALUE **pval, const ASN1_ITEM *it);
927 void ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
[all …]
Dp8_pkey.c65 static int pkey_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in pkey_cb() argument
70 PKCS8_PRIV_KEY_INFO *key = (PKCS8_PRIV_KEY_INFO *)*pval; in pkey_cb()
89 int ptype, void *pval,
114 if (!X509_ALGOR_set0(priv->pkeyalg, aobj, ptype, pval))
Dx_name.c86 static int x509_name_ex_print(BIO *out, ASN1_VALUE **pval,
157 static void x509_name_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in x509_name_ex_free() argument
160 if(!pval || !*pval) in x509_name_ex_free()
162 a = (X509_NAME *)*pval; in x509_name_ex_free()
169 *pval = NULL; in x509_name_ex_free()
294 static int x509_name_ex_print(BIO *out, ASN1_VALUE **pval, in x509_name_ex_print() argument
299 if (X509_NAME_print_ex(out, (X509_NAME *)*pval, in x509_name_ex_print()
Dnsseq.c65 static int nsseq_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in nsseq_cb() argument
70 nsseq = (NETSCAPE_CERT_SEQUENCE *)*pval; in nsseq_cb()
Dx_req.c82 static int rinf_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in rinf_cb() argument
85 X509_REQ_INFO *rinf = (X509_REQ_INFO *)*pval; in rinf_cb()
/external/srec/srec/clib/
Dswimodel.c413 prdata pval; in Gaussian_Grand_Density_Swimodel() local
421 pval = 0; in Gaussian_Grand_Density_Swimodel()
427 pval -= diff * diff; in Gaussian_Grand_Density_Swimodel()
429 pval = data->mul.multable_factor_gaussian in Gaussian_Grand_Density_Swimodel()
430 * (pval - data->mul.grand_mod_cov_gaussian); in Gaussian_Grand_Density_Swimodel()
431 return (pval); in Gaussian_Grand_Density_Swimodel()
441 prdata pval, gval; in mixture_diagonal_gaussian_swimodel() local
450 pval = -(prdata) MAX_LOG; in mixture_diagonal_gaussian_swimodel()
462 if (pval > gval) in mixture_diagonal_gaussian_swimodel()
464 dval = pval - gval; in mixture_diagonal_gaussian_swimodel()
[all …]
/external/openssl/include/openssl/
Dasn1t.h659 typedef int ASN1_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it,
662 typedef int ASN1_ex_i2d(ASN1_VALUE **pval, unsigned char **out, const ASN1_ITEM *it, int tag, int a…
663 typedef int ASN1_ex_new_func(ASN1_VALUE **pval, const ASN1_ITEM *it);
664 typedef void ASN1_ex_free_func(ASN1_VALUE **pval, const ASN1_ITEM *it);
666 typedef int ASN1_ex_print_func(BIO *out, ASN1_VALUE **pval,
670 typedef int ASN1_primitive_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype, const ASN1_ITEM…
671 typedef int ASN1_primitive_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, ch…
672 typedef int ASN1_primitive_print(BIO *out, ASN1_VALUE **pval, const ASN1_ITEM *it, int indent, cons…
926 int ASN1_item_ex_new(ASN1_VALUE **pval, const ASN1_ITEM *it);
927 void ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
[all …]
/external/openssl/crypto/dh/
Ddh_asn1.c67 static int dh_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in dh_cb() argument
71 *pval = (ASN1_VALUE *)DH_new(); in dh_cb()
72 if(*pval) return 2; in dh_cb()
75 DH_free((DH *)*pval); in dh_cb()
76 *pval = NULL; in dh_cb()
Ddh_ameth.c76 void *pval; in dh_pub_decode() local
85 X509_ALGOR_get0(NULL, &ptype, &pval, palg); in dh_pub_decode()
93 pstr = pval; in dh_pub_decode()
132 void *pval = NULL; in dh_pub_encode() local
148 pval = str; in dh_pub_encode()
166 ptype, pval, penc, penclen)) in dh_pub_encode()
172 if (pval) in dh_pub_encode()
173 ASN1_STRING_free(pval); in dh_pub_encode()
189 void *pval; in dh_priv_decode() local
199 X509_ALGOR_get0(NULL, &ptype, &pval, palg); in dh_priv_decode()
[all …]
/external/openssl/crypto/dsa/
Ddsa_asn1.c67 static int sig_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in sig_cb() argument
80 *pval = (ASN1_VALUE *)sig; in sig_cb()
94 static int dsa_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
98 *pval = (ASN1_VALUE *)DSA_new();
99 if(*pval) return 2;
102 DSA_free((DSA *)*pval);
103 *pval = NULL;
Ddsa_ameth.c74 void *pval; in dsa_pub_decode() local
83 X509_ALGOR_get0(NULL, &ptype, &pval, palg); in dsa_pub_decode()
88 pstr = pval; in dsa_pub_decode()
141 void *pval = NULL; in dsa_pub_encode() local
157 pval = str; in dsa_pub_encode()
174 ptype, pval, penc, penclen)) in dsa_pub_encode()
180 if (pval) in dsa_pub_encode()
181 ASN1_STRING_free(pval); in dsa_pub_encode()
195 void *pval; in dsa_priv_decode() local
206 X509_ALGOR_get0(NULL, &ptype, &pval, palg); in dsa_priv_decode()
[all …]
/external/openssl/crypto/ec/
Dec_ameth.c106 void *pval = NULL; in eckey_pub_encode() local
111 if (!eckey_param2type(&ptype, &pval, ec_key)) in eckey_pub_encode()
127 ptype, pval, penc, penclen)) in eckey_pub_encode()
131 ASN1_OBJECT_free(pval); in eckey_pub_encode()
133 ASN1_STRING_free(pval); in eckey_pub_encode()
139 static EC_KEY *eckey_type2param(int ptype, void *pval) in eckey_type2param() argument
144 ASN1_STRING *pstr = pval; in eckey_type2param()
157 ASN1_OBJECT *poid = pval; in eckey_type2param()
193 void *pval; in eckey_pub_decode() local
200 X509_ALGOR_get0(NULL, &ptype, &pval, palg); in eckey_pub_decode()
[all …]
/external/openssl/crypto/rsa/
Drsa_asn1.c67 static int rsa_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in rsa_cb() argument
71 *pval = (ASN1_VALUE *)RSA_new(); in rsa_cb()
72 if(*pval) return 2; in rsa_cb()
75 RSA_free((RSA *)*pval); in rsa_cb()
76 *pval = NULL; in rsa_cb()
/external/clang/test/Analysis/
Dcasts.c32 void f1(struct s **pval) { in f1() argument
34 struct s *t = *pval; in f1()
35 pval = &(t->value); in f1()
36 tbool = (int *)pval; // use the cast-to type 'int *' to create element region. in f1()
/external/libvpx/vp8/encoder/
Dtemporal_filter.c416 unsigned int pval = accumulator[k] + (count[k] >> 1); in vp8_temporal_filter_iterate_c() local
417 pval *= cpi->fixed_divide[count[k]]; in vp8_temporal_filter_iterate_c()
418 pval >>= 19; in vp8_temporal_filter_iterate_c()
420 dst1[byte] = (unsigned char)pval; in vp8_temporal_filter_iterate_c()
440 unsigned int pval = accumulator[k] + (count[k] >> 1); in vp8_temporal_filter_iterate_c() local
441 pval *= cpi->fixed_divide[count[k]]; in vp8_temporal_filter_iterate_c()
442 pval >>= 19; in vp8_temporal_filter_iterate_c()
443 dst1[byte] = (unsigned char)pval; in vp8_temporal_filter_iterate_c()
446 pval = accumulator[m] + (count[m] >> 1); in vp8_temporal_filter_iterate_c()
447 pval *= cpi->fixed_divide[count[m]]; in vp8_temporal_filter_iterate_c()
[all …]
/external/openssl/crypto/pkcs7/
Dpk7_asn1.c81 static int pk7_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in pk7_cb() argument
85 PKCS7 **pp7 = (PKCS7 **)pval; in pk7_cb()
130 static int si_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
134 PKCS7_SIGNER_INFO *si = (PKCS7_SIGNER_INFO *)*pval;
173 static int ri_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
177 PKCS7_RECIP_INFO *ri = (PKCS7_RECIP_INFO *)*pval;
/external/iproute2/tc/
Dm_gact.c156 if (get_u16(&pp.pval, *argv, 10)) { in parse_gact()
157 fprintf(stderr, "Illegal probability val 0x%x\n",pp.pval); in parse_gact()
160 if (pp.pval > 10000) { in parse_gact()
161 fprintf(stderr, "Illegal probability val 0x%x\n",pp.pval); in parse_gact()
237 …random type %s %s val %d",prob_n2a(pp->ptype), action_n2a(pp->paction, b2, sizeof (b2)), pp->pval); in print_gact()
/external/ppp/pppd/plugins/radius/
Davpair.c34 VALUE_PAIR *rc_avpair_add (VALUE_PAIR **list, int attrid, void *pval, int len, in rc_avpair_add() argument
39 vp = rc_avpair_new (attrid, pval, len, vendorcode); in rc_avpair_add()
60 int rc_avpair_assign (VALUE_PAIR *vp, void *pval, int len) in rc_avpair_assign() argument
68 if (((len == 0) && (strlen ((char *) pval)) > AUTH_STRING_LEN) in rc_avpair_assign()
75 memcpy(vp->strvalue, (char *)pval, len); in rc_avpair_assign()
79 strncpy (vp->strvalue, (char *) pval, AUTH_STRING_LEN); in rc_avpair_assign()
80 vp->lvalue = strlen((char *) pval); in rc_avpair_assign()
90 vp->lvalue = * (UINT4 *) pval; in rc_avpair_assign()
110 VALUE_PAIR *rc_avpair_new (int attrid, void *pval, int len, int vendorcode) in rc_avpair_new() argument
129 if (rc_avpair_assign (vp, pval, len) == 0) in rc_avpair_new()

12