| /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); 48 int ossl_asn1_item_ex_new_intern(ASN1_VALUE **pval, const ASN1_ITEM *it, in ossl_asn1_item_ex_new_intern() argument 51 return asn1_item_embed_new(pval, it, 0, libctx, propq); in ossl_asn1_item_ex_new_intern() 54 int ASN1_item_ex_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_item_ex_new() argument 56 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, 64 … static int bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_ITEM_start() 66 *pval = (ASN1_VALUE *)BN_new(); in ASN1_ITEM_start() 67 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() 36 static void uint64_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_free() argument 38 OPENSSL_free(*pval); in uint64_free() 39 *pval = NULL; in uint64_free() 42 static void uint64_clear(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_clear() argument 44 **(uint64_t **)pval = 0; in uint64_clear() 47 static int uint64_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype, in uint64_i2c() argument 53 char *cp = (char *)*pval; in uint64_i2c() 71 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 lock = offset2ptr(*pval, aux->ref_lock); in ossl_asn1_do_lock() 82 refcnt = offset2ptr(*pval, aux->ref_offset); in ossl_asn1_do_lock() 116 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, 48 … static int long_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_ITEM_start() 50 memcpy(pval, &it->size, COPY_SIZE(*pval, it->size)); in ASN1_ITEM_start() 54 static void long_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in long_free() argument 56 memcpy(pval, &it->size, COPY_SIZE(*pval, it->size)); in long_free() 84 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, 81 int ASN1_item_ex_i2d(const ASN1_VALUE **pval, unsigned char **out, in ASN1_item_ex_i2d() argument 90 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && *pval == NULL) in ASN1_item_ex_i2d() 102 return asn1_template_ex_i2d(pval, out, it->templates, in ASN1_item_ex_i2d() 104 return asn1_i2d_ex_primitive(pval, out, it, tag, aclass); in ASN1_item_ex_i2d() 115 return asn1_i2d_ex_primitive(pval, out, it, -1, aclass); in ASN1_item_ex_i2d() 126 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL)) in ASN1_item_ex_i2d() 128 i = ossl_asn1_get_choice_selector_const(pval, it); in ASN1_item_ex_i2d() [all …]
|
| H A D | asn1_local.h | 52 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); 70 int ossl_asn1_enc_restore(int *len, unsigned char **out, const ASN1_VALUE **pval, 72 int ossl_asn1_enc_save(ASN1_VALUE **pval, const unsigned char *in, int inlen, [all …]
|
| H A D | tasn_dec.c | 42 static int asn1_template_ex_d2i(ASN1_VALUE **pval, 52 static int asn1_d2i_ex_primitive(ASN1_VALUE **pval, 57 static int asn1_ex_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, 132 static int asn1_item_ex_d2i_intern(ASN1_VALUE **pval, const unsigned char **in, in asn1_item_ex_d2i_intern() argument 139 if (pval == NULL || it == NULL) { in asn1_item_ex_d2i_intern() 143 rv = asn1_item_embed_d2i(pval, in, len, it, tag, aclass, opt, ctx, 0, in asn1_item_ex_d2i_intern() 146 ASN1_item_ex_free(pval, it); in asn1_item_ex_d2i_intern() 150 int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, in ASN1_item_ex_d2i() argument 154 return asn1_item_ex_d2i_intern(pval, in, len, it, tag, aclass, opt, ctx, in ASN1_item_ex_d2i() 158 ASN1_VALUE *ASN1_item_d2i_ex(ASN1_VALUE **pval, in ASN1_item_d2i_ex() argument [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 26 key = (PKCS8_PRIV_KEY_INFO *)*pval; in pkey_cb() 32 key = (PKCS8_PRIV_KEY_INFO *)*pval; in pkey_cb() 55 int ptype, void *pval, unsigned char *penc, int penclen) 64 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() 76 static int rsa_pss_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, 80 RSA_PSS_PARAMS *pss = (RSA_PSS_PARAMS *)*pval; 97 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/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() 109 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, 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()
|
| /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 | 14 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.
|
| /freebsd/crypto/openssl/crypto/cms/ |
| H A D | cms_asn1.c | 38 static int cms_si_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) 41 CMS_SignerInfo *si = (CMS_SignerInfo *)*pval; 83 static int cms_ec_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) 85 CMS_EncryptedContentInfo *ec = (CMS_EncryptedContentInfo *)*pval; 121 static int cms_rek_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) 123 CMS_RecipientEncryptedKey *rek = (CMS_RecipientEncryptedKey *)*pval; 146 static int cms_kari_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) 148 CMS_KeyAgreeRecipientInfo *kari = (CMS_KeyAgreeRecipientInfo *)*pval; 192 static int cms_ri_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) 195 CMS_RecipientInfo *ri = (CMS_RecipientInfo *)*pval; [all …]
|
| /freebsd/crypto/openssl/crypto/conf/ |
| H A D | conf_def.c | 192 static int parsebool(const char *pval, int *flag) in parsebool() argument 194 if (OPENSSL_strcasecmp(pval, "on") == 0 in parsebool() 195 || OPENSSL_strcasecmp(pval, "true") == 0) { in parsebool() 197 } else if (OPENSSL_strcasecmp(pval, "off") == 0 in parsebool() 198 || OPENSSL_strcasecmp(pval, "false") == 0) { in parsebool() 394 char *pval; in def_load_bio() local 403 pval = strchr(p, ':'); in def_load_bio() 404 if (pval == NULL || pval == p || pval[1] == '\0') { in def_load_bio() 409 *pval++ = '\0'; in def_load_bio() 411 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 | 618 typedef int ASN1_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, 622 typedef int ASN1_ex_d2i_ex(ASN1_VALUE **pval, const unsigned char **in, long len, 626 typedef int ASN1_ex_i2d(const ASN1_VALUE **pval, unsigned char **out, 628 typedef int ASN1_ex_new_func(ASN1_VALUE **pval, const ASN1_ITEM *it); 629 typedef int ASN1_ex_new_ex_func(ASN1_VALUE **pval, const ASN1_ITEM *it, 631 typedef void ASN1_ex_free_func(ASN1_VALUE **pval, const ASN1_ITEM *it); 633 typedef int ASN1_ex_print_func(BIO *out, const ASN1_VALUE **pval, 637 typedef int ASN1_primitive_i2c(const ASN1_VALUE **pval, unsigned char *cont, 639 typedef int ASN1_primitive_c2i(ASN1_VALUE **pval, const unsigned char *cont, 642 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() 136 static int si_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, 140 PKCS7_SIGNER_INFO *si = (PKCS7_SIGNER_INFO *)*pval; 179 static int ri_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, 183 PKCS7_RECIP_INFO *ri = (PKCS7_RECIP_INFO *)*pval;
|