Home
last modified time | relevance | path

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

123

/freebsd/crypto/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()
324 if (*pval) in asn1_primitive_new()
337 *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()
115 OPENSSL_free(*pval); in ossl_asn1_item_embed_free()
116 *pval = NULL; in ossl_asn1_item_embed_free()
128 pval = &tval; in ossl_asn1_template_free()
140 *pval = NULL; in ossl_asn1_template_free()
171 if (*pval == NULL) in ossl_asn1_primitive_free()
175 if (*pval == NULL) in ossl_asn1_primitive_free()
200 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.c40 OPENSSL_free(*pval); in uint64_free()
41 *pval = NULL; in uint64_free()
46 **(uint64_t **)pval = 0; in uint64_clear()
55 char *cp = (char *)*pval; in uint64_i2c()
80 if (*pval == NULL && !uint64_new(pval, it)) in uint64_c2i()
83 cp = (char *)*pval; in uint64_c2i()
135 OPENSSL_free(*pval); in uint32_free()
136 *pval = NULL; in uint32_free()
141 **(uint32_t **)pval = 0; in uint32_clear()
183 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 lck = offset2ptr(*pval, aux->ref_offset); in ossl_asn1_do_lock()
82 lock = offset2ptr(*pval, aux->ref_lock); in ossl_asn1_do_lock()
116 if (pval == NULL || *pval == NULL) in asn1_get_enc_ptr()
121 return offset2ptr(*pval, aux->enc_offset); in asn1_get_enc_ptr()
129 if (pval == NULL || *pval == NULL) in asn1_get_const_enc_ptr()
134 return offset2ptr(*pval, aux->enc_offset); in asn1_get_const_enc_ptr()
139 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 Dtasn_enc.c228 tval = (ASN1_VALUE *)pval; in asn1_template_ex_i2d()
229 pval = &tval; in asn1_template_ex_i2d()
277 if (*pval == NULL) in asn1_template_ex_i2d()
482 len = asn1_ex_i2c(pval, NULL, &utype, it); in asn1_i2d_ex_primitive()
514 asn1_ex_i2c(pval, *out, &utype, it); in asn1_i2d_ex_primitive()
546 if (*pval == NULL) in asn1_ex_i2c()
552 strtmp = (ASN1_STRING *)*pval; in asn1_ex_i2c()
558 typ = (ASN1_TYPE *)*pval; in asn1_ex_i2c()
567 otmp = (ASN1_OBJECT *)*pval; in asn1_ex_i2c()
580 tbool = (ASN1_BOOLEAN *)pval; in asn1_ex_i2c()
[all …]
H A Dasn1_local.h50 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,
64 int ossl_asn1_do_lock(ASN1_VALUE **pval, int op, const ASN1_ITEM *it);
66 void ossl_asn1_enc_init(ASN1_VALUE **pval, const ASN1_ITEM *it);
67 void ossl_asn1_enc_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
70 int ossl_asn1_enc_save(ASN1_VALUE **pval, const unsigned char *in, int inlen,
75 void ossl_asn1_template_free(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt);
[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()
925 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))
/freebsd/sys/netpfil/ipfw/
H A Dip_fw_table_value.c83 struct table_value *pval; member
127 struct table_value *pval; in get_value_ptrs() local
134 pval = NULL; in get_value_ptrs()
140 *ptv = pval; in get_value_ptrs()
153 struct table_value *pval; in update_tvalue() local
158 pval = da->pval; in update_tvalue()
159 ptv->pval = &pval[ptv->no.kidx]; in update_tvalue()
508 ptv->pval->refcnt++; in ipfw_link_table_values()
567 ptv->pval->refcnt++; in ipfw_link_table_values()
589 ptv->pval = &pval[vidx]; in ipfw_link_table_values()
[all …]
/freebsd/crypto/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 …]
/freebsd/contrib/ntp/include/
H A Dsafecast.h30 #define UA_PTR(ptype,pval) ((ptype *)(void*)(pval)) argument
31 #define UAC_PTR(ptype,pval) ((const ptype *)(const void*)(pval)) argument
32 #define UAV_PTR(ptype,pval) ((volatile ptype *)(volatile void*)(pval)) argument
/freebsd/crypto/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()
/freebsd/crypto/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()
/freebsd/crypto/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.pod13 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,
33 I<it>. It places the result in I<*pval> unless I<pval> is NULL. If I<*pval> is
47 and places the result in I<*pval> unless I<pval> is NULL.
/freebsd/crypto/openssl/crypto/x509/
H A Dx_pubkey.c89 if (pval != NULL && (pubkey = (X509_PUBKEY *)*pval) != NULL) { in x509_pubkey_ex_free()
95 *pval = NULL; in x509_pubkey_ex_free()
101 X509_PUBKEY *pubkey = (X509_PUBKEY *)*pval; in x509_pubkey_ex_populate()
122 *pval = (ASN1_VALUE *)ret; in x509_pubkey_ex_new_ex()
128 static int x509_pubkey_ex_d2i_ex(ASN1_VALUE **pval, in x509_pubkey_ex_d2i_ex() argument
141 if (*pval == NULL && !x509_pubkey_ex_new_ex(pval, it, libctx, propq)) in x509_pubkey_ex_d2i_ex()
143 if (!x509_pubkey_ex_populate(pval, NULL)) { in x509_pubkey_ex_d2i_ex()
149 if ((ret = ASN1_item_ex_d2i(pval, in, len, in x509_pubkey_ex_d2i_ex()
160 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,
113 static void x509_name_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in x509_name_ex_free() argument
117 if (pval == NULL || *pval == NULL) in x509_name_ex_free()
119 a = (X509_NAME *)*pval; in x509_name_ex_free()
125 *pval = NULL; in x509_name_ex_free()
283 static int x509_name_ex_print(BIO *out, const ASN1_VALUE **pval, in x509_name_ex_print() argument
287 if (X509_NAME_print_ex(out, (const X509_NAME *)*pval, in x509_name_ex_print()
/freebsd/crypto/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()
397 char *pval; in def_load_bio() local
406 pval = strchr(p, ':'); in def_load_bio()
407 if (pval == NULL || pval == p || pval[1] == '\0') { in def_load_bio()
412 *pval++ = '\0'; in def_load_bio()
414 pval = eat_ws(conf, pval); in def_load_bio()
[all …]
/freebsd/crypto/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;
121 static int cms_rek_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
124 CMS_RecipientEncryptedKey *rek = (CMS_RecipientEncryptedKey *)*pval;
147 static int cms_kari_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
150 CMS_KeyAgreeRecipientInfo *kari = (CMS_KeyAgreeRecipientInfo *)*pval;
198 static int cms_ri_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
202 CMS_RecipientInfo *ri = (CMS_RecipientInfo *)*pval;
293 static int cms_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in cms_cb() argument
298 if (pval) in cms_cb()
[all …]
/freebsd/stand/lua/
H A Dconfig.lua157 local pval, vlen = '', #value
171 pval = pval .. value:sub(i + 1, i + 1)
200 pval = pval .. repl
204 pval = pval .. c
209 return pval
563 local pval = processEnv(k, v)
564 if pval then
565 setEnv(k, pval)
/freebsd/crypto/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()
138 static int si_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
142 PKCS7_SIGNER_INFO *si = (PKCS7_SIGNER_INFO *)*pval;
181 static int ri_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
185 PKCS7_RECIP_INFO *ri = (PKCS7_RECIP_INFO *)*pval;
/freebsd/crypto/openssl/include/openssl/
H A Dasn1t.h637 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,
653 typedef int ASN1_primitive_print(BIO *out, const ASN1_VALUE **pval,
928 int ASN1_item_ex_new(ASN1_VALUE **pval, const ASN1_ITEM *it);
929 void ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
931 int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len,
[all …]

123