/freebsd/crypto/openssl/crypto/asn1/ |
H A D | tasn_new.c | 18 static int asn1_item_embed_new(ASN1_VALUE **pval, const ASN1_ITEM *it, 21 static int asn1_primitive_new(ASN1_VALUE **pval, const ASN1_ITEM *it, 23 static void asn1_item_clear(ASN1_VALUE **pval, const ASN1_ITEM *it); 24 static int asn1_template_new(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt, 26 static void asn1_template_clear(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt); 27 static void asn1_primitive_clear(ASN1_VALUE **pval, const ASN1_ITEM *it); 49 int ossl_asn1_item_ex_new_intern(ASN1_VALUE **pval, const ASN1_ITEM *it, in ossl_asn1_item_ex_new_intern() argument 52 return asn1_item_embed_new(pval, it, 0, libctx, propq); in ossl_asn1_item_ex_new_intern() 55 int ASN1_item_ex_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_item_ex_new() argument 57 return asn1_item_embed_new(pval, it, 0, NULL, NULL); in ASN1_item_ex_new() [all …]
|
H A D | tasn_fre.c | 23 void ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_item_ex_free() argument 25 ossl_asn1_item_embed_free(pval, it, 0); in ASN1_item_ex_free() 28 void ossl_asn1_item_embed_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int embed) in ossl_asn1_item_embed_free() argument 36 if (pval == NULL) in ossl_asn1_item_embed_free() 38 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && *pval == NULL) in ossl_asn1_item_embed_free() 49 ossl_asn1_template_free(pval, it->templates); in ossl_asn1_item_embed_free() 51 ossl_asn1_primitive_free(pval, it, embed); in ossl_asn1_item_embed_free() 55 ossl_asn1_primitive_free(pval, it, embed); in ossl_asn1_item_embed_free() 60 i = asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL); in ossl_asn1_item_embed_free() 64 i = ossl_asn1_get_choice_selector(pval, it); in ossl_asn1_item_embed_free() [all …]
|
H A D | x_bignum.c | 24 static int bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it); 25 static int bn_secure_new(ASN1_VALUE **pval, const ASN1_ITEM *it); 26 static void bn_free(ASN1_VALUE **pval, const ASN1_ITEM *it); 28 static int bn_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype, 30 static int bn_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, 32 static int bn_secure_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, 34 static int bn_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it, 65 static int bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_ITEM_start() 67 *pval = (ASN1_VALUE *)BN_new(); in ASN1_ITEM_start() 68 if (*pval != NULL) in ASN1_ITEM_start() [all …]
|
H A D | x_int64.c | 29 static int uint64_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_new() argument 31 if ((*pval = (ASN1_VALUE *)OPENSSL_zalloc(sizeof(uint64_t))) == NULL) { in uint64_new() 38 static void uint64_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_free() argument 40 OPENSSL_free(*pval); in uint64_free() 41 *pval = NULL; in uint64_free() 44 static void uint64_clear(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_clear() argument 46 **(uint64_t **)pval = 0; in uint64_clear() 49 static int uint64_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype, in uint64_i2c() argument 55 char *cp = (char *)*pval; in uint64_i2c() 73 static int uint64_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, in uint64_c2i() argument [all …]
|
H A D | tasn_utl.c | 29 int ossl_asn1_get_choice_selector(ASN1_VALUE **pval, const ASN1_ITEM *it) in ossl_asn1_get_choice_selector() argument 31 int *sel = offset2ptr(*pval, it->utype); in ossl_asn1_get_choice_selector() 36 int ossl_asn1_get_choice_selector_const(const ASN1_VALUE **pval, in ossl_asn1_get_choice_selector_const() argument 39 int *sel = offset2ptr(*pval, it->utype); in ossl_asn1_get_choice_selector_const() 48 int ossl_asn1_set_choice_selector(ASN1_VALUE **pval, int value, in ossl_asn1_set_choice_selector() argument 53 sel = offset2ptr(*pval, it->utype); in ossl_asn1_set_choice_selector() 68 int ossl_asn1_do_lock(ASN1_VALUE **pval, int op, const ASN1_ITEM *it) in ossl_asn1_do_lock() argument 81 lck = offset2ptr(*pval, aux->ref_offset); in ossl_asn1_do_lock() 82 lock = offset2ptr(*pval, aux->ref_lock); in ossl_asn1_do_lock() 112 static ASN1_ENCODING *asn1_get_enc_ptr(ASN1_VALUE **pval, const ASN1_ITEM *it) in asn1_get_enc_ptr() argument [all …]
|
H A D | x_long.c | 21 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, 28 static int long_print(BIO *out, const ASN1_VALUE **pval, 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() 85 static int long_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype, in long_i2c() argument [all …]
|
H A D | tasn_enc.c | 19 static int asn1_i2d_ex_primitive(const ASN1_VALUE **pval, unsigned char **out, 25 static int asn1_template_ex_i2d(const ASN1_VALUE **pval, unsigned char **out, 29 static int asn1_ex_i2c(const ASN1_VALUE **pval, unsigned char *cout, int *putype, 83 int ASN1_item_ex_i2d(const ASN1_VALUE **pval, unsigned char **out, in ASN1_item_ex_i2d() argument 92 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && *pval == NULL) in ASN1_item_ex_i2d() 104 return asn1_template_ex_i2d(pval, out, it->templates, in ASN1_item_ex_i2d() 106 return asn1_i2d_ex_primitive(pval, out, it, tag, aclass); in ASN1_item_ex_i2d() 117 return asn1_i2d_ex_primitive(pval, out, it, -1, aclass); in ASN1_item_ex_i2d() 128 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL)) in ASN1_item_ex_i2d() 130 i = ossl_asn1_get_choice_selector_const(pval, it); in ASN1_item_ex_i2d() [all …]
|
H A D | tasn_dec.c | 28 static int asn1_item_embed_d2i(ASN1_VALUE **pval, const unsigned char **in, 47 static int asn1_template_ex_d2i(ASN1_VALUE **pval, 57 static int asn1_d2i_ex_primitive(ASN1_VALUE **pval, 62 static int asn1_ex_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, 107 static int asn1_item_ex_d2i_intern(ASN1_VALUE **pval, const unsigned char **in, in asn1_item_ex_d2i_intern() argument 114 if (pval == NULL || it == NULL) { in asn1_item_ex_d2i_intern() 118 rv = asn1_item_embed_d2i(pval, in, len, it, tag, aclass, opt, ctx, 0, in asn1_item_ex_d2i_intern() 121 ASN1_item_ex_free(pval, it); in asn1_item_ex_d2i_intern() 125 int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, in ASN1_item_ex_d2i() argument 129 return asn1_item_ex_d2i_intern(pval, in, len, it, tag, aclass, opt, ctx, in ASN1_item_ex_d2i() [all …]
|
H A D | asn1_local.h | 50 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); 68 int ossl_asn1_enc_restore(int *len, unsigned char **out, const ASN1_VALUE **pval, 70 int ossl_asn1_enc_save(ASN1_VALUE **pval, const unsigned char *in, int inlen, [all …]
|
H A D | p8_pkey.c | 17 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 D | ip_fw_table_value.c | 78 struct table_value *pval; /* Pointer to real table value */ member 86 struct table_value *pval; member 101 return (memcmp(((struct table_val_link *)no)->pval, key, 56)); in cmp_table_value() 131 struct table_value *pval; in get_value_ptrs() local 135 pval = (struct table_value *)ch->valuestate; in get_value_ptrs() 138 pval = NULL; in get_value_ptrs() 144 *ptv = pval; in get_value_ptrs() 157 struct table_value *pval; in update_tvalue() local 162 pval = da->pval; in update_tvalue() 163 ptv->pval = &pval[ptv->no.kidx]; in update_tvalue() [all …]
|
/freebsd/crypto/openssl/crypto/rsa/ |
H A D | rsa_asn1.c | 28 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 D | safecast.h | 30 #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 D | dsa_asn1.c | 25 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 D | dh_asn1.c | 25 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 D | ASN1_EXTERN_FUNCS.pod | 14 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> 87 in I<*pval> and making it suitable for reuse. The I<it> parameter is a pointer [all …]
|
H A D | ASN1_item_d2i_bio.pod | 13 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/cms/ |
H A D | cms_asn1.c | 46 static int cms_si_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, 50 CMS_SignerInfo *si = (CMS_SignerInfo *)*pval; 93 static int cms_ec_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, 96 CMS_EncryptedContentInfo *ec = (CMS_EncryptedContentInfo *)*pval; 132 static int cms_rek_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, 135 CMS_RecipientEncryptedKey *rek = (CMS_RecipientEncryptedKey *)*pval; 158 static int cms_kari_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, 161 CMS_KeyAgreeRecipientInfo *kari = (CMS_KeyAgreeRecipientInfo *)*pval; 209 static int cms_ri_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, 213 CMS_RecipientInfo *ri = (CMS_RecipientInfo *)*pval; [all …]
|
/freebsd/crypto/openssl/crypto/x509/ |
H A D | x_pubkey.c | 85 static void x509_pubkey_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in x509_pubkey_ex_free() argument 89 if (pval != NULL && (pubkey = (X509_PUBKEY *)*pval) != NULL) { in x509_pubkey_ex_free() 95 *pval = NULL; in x509_pubkey_ex_free() 99 static int x509_pubkey_ex_populate(ASN1_VALUE **pval, const ASN1_ITEM *it) in x509_pubkey_ex_populate() argument 101 X509_PUBKEY *pubkey = (X509_PUBKEY *)*pval; in x509_pubkey_ex_populate() 110 static int x509_pubkey_ex_new_ex(ASN1_VALUE **pval, const ASN1_ITEM *it, in x509_pubkey_ex_new_ex() argument 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() [all …]
|
H A D | x_req.c | 35 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 D | x_name.c | 42 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 D | conf_def.c | 193 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/stand/lua/ |
H A D | config.lua | 157 local pval, vlen = '', #value 171 pval = pval .. value:sub(i + 1, i + 1) 200 pval = pval .. repl 204 pval = pval .. c 209 return pval 568 local pval = processEnv(k, v) 569 if pval then 570 setEnv(k, pval)
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | asn1t.h | 629 typedef int ASN1_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, 633 typedef int ASN1_ex_d2i_ex(ASN1_VALUE **pval, const unsigned char **in, long len, 637 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, 650 typedef int ASN1_primitive_c2i(ASN1_VALUE **pval, const unsigned char *cont, 653 typedef int ASN1_primitive_print(BIO *out, const ASN1_VALUE **pval, [all …]
|
/freebsd/crypto/openssl/crypto/pkcs7/ |
H A D | pk7_asn1.c | 33 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;
|