Home
last modified time | relevance | path

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

123

/openbsd/lib/libcrypto/asn1/
H A Dtasn_new.c106 *pval = NULL; in asn1_item_ex_new()
140 if (!*pval) in asn1_item_ex_new()
158 if (!*pval) in asn1_item_ex_new()
161 asn1_enc_init(pval, it); in asn1_item_ex_new()
195 *pval = NULL; in asn1_item_clear()
212 *pval = NULL; in asn1_item_clear()
230 *pval = NULL; in ASN1_template_new()
257 *pval = NULL; in asn1_template_clear()
316 if (*pval) in ASN1_primitive_new()
332 *pval = NULL; in asn1_primitive_clear()
[all …]
H A Dtasn_fre.c81 asn1_item_free(pval, it); in ASN1_item_ex_free()
94 if (pval == NULL) in asn1_item_free()
130 free(*pval); in asn1_item_free()
131 *pval = NULL; in asn1_item_free()
166 free(*pval); in asn1_item_free()
167 *pval = NULL; in asn1_item_free()
184 *pval = NULL; in ASN1_template_free()
206 if (!*pval) in ASN1_primitive_free()
210 if (!*pval) in ASN1_primitive_free()
235 free(*pval); in ASN1_primitive_free()
[all …]
H A Dx_bignum.c114 bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in bn_new() argument
116 if ((*pval = (ASN1_VALUE *)BN_new()) == NULL) in bn_new()
125 BN_free((BIGNUM *)*pval); in bn_clear()
126 *pval = NULL; in bn_clear()
132 if (*pval == NULL) in bn_free()
135 bn_clear(pval, it); in bn_free()
146 if (*pval == NULL) in bn_i2c()
149 bn = (const BIGNUM *)*pval; in bn_i2c()
173 bn_clear(pval, it); in bn_c2i()
183 *pval = (ASN1_VALUE *)bn; in bn_c2i()
[all …]
H A Dx_long.c116 long_get(ASN1_VALUE **pval, long *out_val) in long_get() argument
118 memcpy(out_val, pval, sizeof(long)); in long_get()
122 long_set(ASN1_VALUE **pval, long val) in long_set() argument
124 memcpy(pval, &val, sizeof(long)); in long_set()
128 long_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in long_new() argument
130 long_clear(pval, it); in long_new()
138 long_clear(pval, it); in long_free()
145 long_set(pval, it->size); in long_clear()
157 long_get(pval, &val); in long_i2c()
217 long_set(pval, (long)val); in long_c2i()
[all …]
H A Dtasn_utl.c82 int *sel = offset2ptr(*pval, it->utype); in asn1_get_choice_selector()
94 sel = offset2ptr(*pval, it->utype); in asn1_set_choice_selector()
118 lck = offset2ptr(*pval, aux->ref_offset); in asn1_do_lock()
132 if (pval == NULL || *pval == NULL) in asn1_get_enc_ptr()
138 return offset2ptr(*pval, aux->enc_offset); in asn1_get_enc_ptr()
146 if ((aenc = asn1_get_enc_ptr(pval, it)) == NULL) in asn1_enc_init()
168 if ((aenc = asn1_get_enc_ptr(pval, it)) == NULL) in asn1_enc_cleanup()
181 if ((aenc = asn1_get_enc_ptr(pval, it)) == NULL) in asn1_enc_save()
206 if ((aenc = asn1_get_enc_ptr(pval, it)) == NULL) in asn1_enc_restore()
229 pvaltmp = offset2ptr(*pval, tt->offset); in asn1_get_field_ptr()
[all …]
H A Dtasn_dec.c366 *pval = NULL; in asn1_c2i_primitive()
396 *pval = NULL; in asn1_c2i_any()
669 *pval = NULL; in asn1_item_d2i_choice()
718 *pval = achoice; in asn1_item_d2i_choice()
762 *pval = NULL; in asn1_item_d2i_sequence()
894 *pval = aseq; in asn1_item_d2i_sequence()
944 if (pval == NULL) in asn1_item_d2i()
1032 if (pval == NULL) in asn1_template_stack_of_d2i()
1036 *pval = NULL; in asn1_template_stack_of_d2i()
1127 if (pval == NULL) in asn1_template_noexp_d2i()
[all …]
H A Dx_pubkey.c294 ef->asn1_ex_free(pval, it); in pubkey_ex_d2i()
296 *pval = key; in pubkey_ex_d2i()
323 pkey = (EVP_PKEY *)*pval; in pubkey_ex_i2d()
369 EVP_PKEY_free((EVP_PKEY *)*pval); in pkey_pubkey_ex_free()
370 *pval = NULL; in pkey_pubkey_ex_free()
469 RSA_free((RSA *)*pval); in rsa_pubkey_ex_free()
470 *pval = NULL; in rsa_pubkey_ex_free()
565 DSA_free((DSA *)*pval); in dsa_pubkey_ex_free()
566 *pval = NULL; in dsa_pubkey_ex_free()
662 EC_KEY_free((EC_KEY *)*pval); in ec_pubkey_ex_free()
[all …]
H A Dtasn_enc.c188 i = asn1_get_choice_selector(pval, it); in ASN1_item_ex_i2d()
236 seqtt = asn1_do_adb(pval, tt, 1); in ASN1_item_ex_i2d()
253 seqtt = asn1_do_adb(pval, tt, 1); in ASN1_item_ex_i2d()
325 if (!*pval) in asn1_template_ex_i2d()
583 if (!*pval) in asn1_ex_i2c()
589 strtmp = (ASN1_STRING *)*pval; in asn1_ex_i2c()
595 typ = (ASN1_TYPE *)*pval; in asn1_ex_i2c()
598 pval = &typ->value.asn1_value; in asn1_ex_i2c()
604 otmp = (ASN1_OBJECT *)*pval; in asn1_ex_i2c()
615 tbool = (ASN1_BOOLEAN *)pval; in asn1_ex_i2c()
[all …]
H A Dasn1_local.h92 int asn1_get_choice_selector(ASN1_VALUE **pval, const ASN1_ITEM *it);
93 int asn1_set_choice_selector(ASN1_VALUE **pval, int value, const ASN1_ITEM *it);
95 ASN1_VALUE ** asn1_get_field_ptr(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt);
99 int asn1_do_lock(ASN1_VALUE **pval, int op, const ASN1_ITEM *it);
101 void asn1_enc_init(ASN1_VALUE **pval, const ASN1_ITEM *it);
102 void asn1_enc_cleanup(ASN1_VALUE **pval, const ASN1_ITEM *it);
103 int asn1_enc_save(ASN1_VALUE **pval, CBS *cbs, const ASN1_ITEM *it);
184 int ASN1_primitive_new(ASN1_VALUE **pval, const ASN1_ITEM *it);
185 void ASN1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
187 int ASN1_template_new(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt);
[all …]
H A Dp8_pkey.c69 pkey_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) in pkey_cb() argument
73 PKCS8_PRIV_KEY_INFO *key = (PKCS8_PRIV_KEY_INFO *)*pval; in pkey_cb()
149 int ptype, void *pval, unsigned char *penc, int penclen) in PKCS8_pkey_set0() argument
155 if (!X509_ALGOR_set0(priv->pkeyalg, aobj, ptype, pval)) in PKCS8_pkey_set0()
H A Dasn1t.h654 typedef int ASN1_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it,
657 typedef int ASN1_ex_i2d(ASN1_VALUE **pval, unsigned char **out, const ASN1_ITEM *it, int tag, int a…
658 typedef int ASN1_ex_new_func(ASN1_VALUE **pval, const ASN1_ITEM *it);
659 typedef void ASN1_ex_free_func(ASN1_VALUE **pval, const ASN1_ITEM *it);
661 typedef int ASN1_ex_print_func(BIO *out, ASN1_VALUE **pval,
665 typedef int ASN1_primitive_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype, const ASN1_ITEM…
667 typedef int ASN1_primitive_print(BIO *out, ASN1_VALUE **pval, const ASN1_ITEM *it, int indent, cons…
897 int ASN1_item_ex_new(ASN1_VALUE **pval, const ASN1_ITEM *it);
898 void ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
899 int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it,
[all …]
H A Dx_name.c88 static int x509_name_ex_print(BIO *out, ASN1_VALUE **pval, int indent,
281 x509_name_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in x509_name_ex_free() argument
285 if (!pval || !*pval) in x509_name_ex_free()
287 a = (X509_NAME *)*pval; in x509_name_ex_free()
293 *pval = NULL; in x509_name_ex_free()
443 x509_name_ex_print(BIO *out, ASN1_VALUE **pval, int indent, const char *fname, in x509_name_ex_print() argument
446 if (X509_NAME_print_ex(out, (X509_NAME *)*pval, indent, in x509_name_ex_print()
/openbsd/lib/libcrypto/ec/
H A Dec_ameth.c80 eckey_param_free(int ptype, void *pval) in eckey_param_free() argument
82 if (pval == NULL) in eckey_param_free()
87 ASN1_STRING_free(pval); in eckey_param_free()
227 void *pval = NULL; in eckey_pub_encode() local
245 pval = NULL; in eckey_pub_encode()
252 eckey_param_free(ptype, pval); in eckey_pub_encode()
262 const void *pval; in eckey_pub_decode() local
340 const void *pval; in eckey_priv_decode() local
380 void *pval = NULL; in eckey_priv_encode() local
407 pval = NULL; in eckey_priv_encode()
[all …]
/openbsd/lib/libcrypto/dh/
H A Ddh_asn1.c70 dh_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) in dh_cb() argument
73 *pval = (ASN1_VALUE *)DH_new(); in dh_cb()
74 if (*pval) in dh_cb()
78 DH_free((DH *)*pval); in dh_cb()
79 *pval = NULL; in dh_cb()
/openbsd/lib/libcrypto/rsa/
H A Drsa_asn1.c70 rsa_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) in rsa_cb() argument
73 *pval = (ASN1_VALUE *)RSA_new(); in rsa_cb()
74 if (*pval) in rsa_cb()
78 RSA_free((RSA *)*pval); in rsa_cb()
79 *pval = NULL; in rsa_cb()
206 rsa_pss_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) in rsa_pss_cb() argument
210 RSA_PSS_PARAMS *pss = (RSA_PSS_PARAMS *)*pval; in rsa_pss_cb()
296 rsa_oaep_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) in rsa_oaep_cb() argument
300 RSA_OAEP_PARAMS *oaep = (RSA_OAEP_PARAMS *)*pval; in rsa_oaep_cb()
/openbsd/regress/lib/libcrypto/asn1/
H A Dx509_algor.c242 const void *pval = NULL; in x509_algor_get0_test() local
289 pval = oid; in x509_algor_get0_test()
290 X509_ALGOR_get0(NULL, NULL, &pval, alg); in x509_algor_get0_test()
291 if (pval != NULL) { in x509_algor_get0_test()
298 pval = oid; in x509_algor_get0_test()
299 X509_ALGOR_get0(&aobj, &ptype, &pval, alg); in x509_algor_get0_test()
309 if (pval != aint_ref) { in x509_algor_get0_test()
/openbsd/lib/libcrypto/dsa/
H A Ddsa_asn1.c72 sig_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) in sig_cb() argument
81 *pval = (ASN1_VALUE *)sig; in sig_cb()
165 dsa_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) in dsa_cb() argument
168 *pval = (ASN1_VALUE *)DSA_new(); in dsa_cb()
169 if (*pval) in dsa_cb()
173 DSA_free((DSA *)*pval); in dsa_cb()
174 *pval = NULL; in dsa_cb()
/openbsd/usr.sbin/amd/amd/
H A Dinfo_passwd.c67 passwd_search(mnt_map *m, char *map, char *key, char **pval, time_t *tp) in passwd_search() argument
73 *pval = strdup("type:=nfs"); in passwd_search()
141 *pval = strdup(val); in passwd_search()
H A Dmapc.c532 mapc_meta_search(mnt_map *m, char *key, char **pval, int recurse) in mapc_meta_search() argument
597 *pval = strdup(k->val); in mapc_meta_search()
612 error = search_map(m, key, pval); in mapc_meta_search()
614 mapc_add_kv(m, strdup(key), strdup(*pval)); in mapc_meta_search()
640 error = mapc_meta_search(m, wildname, pval, MREC_PART); in mapc_meta_search()
645 *pval = strdup(m->wildcard); in mapc_meta_search()
655 mapc_search(mnt_map *m, char *key, char **pval) in mapc_search() argument
657 return mapc_meta_search(m, key, pval, MREC_FULL); in mapc_search()
794 error_search(mnt_map *m, char *map, char *key, char **pval, time_t *tp) in error_search() argument
H A Dinfo_union.c65 union_search(mnt_map *m, char *map, char *key, char **pval, time_t *tp) in union_search() argument
73 *pval = xmalloc(strlen(*p) + 5); in union_search()
74 snprintf(*pval, strlen(*p) + 5, "fs:=%s", *p); in union_search()
H A Dinfo_ndbm.c66 ndbm_search(mnt_map *m, char *map, char *key, char **pval, time_t *tp) in ndbm_search() argument
80 error = search_ndbm(db, key, pval); in ndbm_search()
/openbsd/gnu/usr.bin/perl/ext/VMS-Stdio/
H A DStdio.xs19 constant(char *name, IV *pval) in constant() argument
25 { *pval = O_APPEND; return TRUE; } in constant()
31 { *pval = O_CREAT; return TRUE; } in constant()
37 { *pval = O_EXCL; return TRUE; } in constant()
43 { *pval = O_NDELAY; return TRUE; } in constant()
49 { *pval = O_NOWAIT; return TRUE; } in constant()
55 { *pval = O_RDONLY; return TRUE; } in constant()
61 { *pval = O_RDWR; return TRUE; } in constant()
67 { *pval = O_TRUNC; return TRUE; } in constant()
73 { *pval = O_WRONLY; return TRUE; } in constant()
/openbsd/lib/libcurses/base/
H A Dsafe_sprintf.c49 #define VA_POINT(type) pval = (void *)va_arg(ap, type)
79 char *pval = dummy; /* avoid const-cast */ in _nc_printf_length() local
163 prec = (int) strlen(pval); in _nc_printf_length()
201 _nc_SPRINTF(buffer, _nc_SLIMIT(length) format, pval); in _nc_printf_length()
/openbsd/gnu/usr.bin/binutils-2.17/gas/
H A Ditbl-ops.h95 int itbl_get_reg_val (char *name, unsigned long *pval);
97 unsigned long *pval);
/openbsd/gnu/usr.bin/binutils/gas/
H A Ditbl-ops.h95 int itbl_get_reg_val (char *name, unsigned long *pval);
97 unsigned long *pval);

123