/netbsd/crypto/external/bsd/openssl/dist/crypto/asn1/ |
H A D | tasn_new.c | 115 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 D | tasn_fre.c | 36 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 D | x_bignum.c | 68 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 D | x_int64.c | 40 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 D | tasn_utl.c | 31 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 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, 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(<mp, pval, COPY_SIZE(*pval, ltmp)); in long_i2c() 185 memcpy(pval, <mp, COPY_SIZE(*pval, ltmp)); in long_c2i() [all …]
|
H A D | tasn_enc.c | 228 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 D | tasn_dec.c | 141 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 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); 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 …]
|
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/asn1/ |
H A D | tasn_new.c | 98 if (*pval == NULL) in asn1_item_embed_new() 123 if (*pval == NULL) in asn1_item_embed_new() 130 *pval = NULL; in asn1_item_embed_new() 180 *pval = NULL; in asn1_item_clear() 197 *pval = NULL; in asn1_item_clear() 210 pval = &tval; in asn1_template_new() 219 *pval = NULL; in asn1_template_new() 252 *pval = NULL; in asn1_template_clear() 325 if (*pval) in asn1_primitive_new() 338 *pval = NULL; in asn1_primitive_clear() [all …]
|
H A D | tasn_fre.c | 36 if (!pval) in asn1_item_embed_free() 75 OPENSSL_free(*pval); in asn1_item_embed_free() 76 *pval = NULL; in asn1_item_embed_free() 95 asn1_enc_free(pval, it); in asn1_item_embed_free() 116 *pval = NULL; in asn1_item_embed_free() 128 pval = &tval; in asn1_template_free() 140 *pval = NULL; in asn1_template_free() 171 if (!*pval) in asn1_primitive_free() 175 if (!*pval) in asn1_primitive_free() 200 OPENSSL_free(*pval); in asn1_primitive_free() [all …]
|
H A D | x_bignum.c | 68 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 D | x_int64.c | 40 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 D | tasn_utl.c | 31 int *sel = offset2ptr(*pval, it->utype); in asn1_get_choice_selector() 43 sel = offset2ptr(*pval, it->utype); in asn1_set_choice_selector() 71 lck = offset2ptr(*pval, aux->ref_offset); in asn1_do_lock() 72 lock = offset2ptr(*pval, aux->ref_lock); in asn1_do_lock() 107 if (!pval || !*pval) in asn1_get_enc_ptr() 118 enc = asn1_get_enc_ptr(pval, it); in asn1_enc_init() 129 enc = asn1_get_enc_ptr(pval, it); in asn1_enc_free() 142 enc = asn1_get_enc_ptr(pval, it); in asn1_enc_save() 162 enc = asn1_get_enc_ptr(pval, it); in asn1_enc_restore() 178 pvaltmp = offset2ptr(*pval, tt->offset); in asn1_get_field_ptr() [all …]
|
H A D | x_long.c | 25 static int long_new(ASN1_VALUE **pval, const ASN1_ITEM *it); 26 static void long_free(ASN1_VALUE **pval, const ASN1_ITEM *it); 28 static int long_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype, 32 static int long_print(BIO *out, ASN1_VALUE **pval, const ASN1_ITEM *it, 53 static int long_new(ASN1_VALUE **pval, const ASN1_ITEM *it) 55 memcpy(pval, &it->size, COPY_SIZE(*pval, it->size)); 59 static void long_free(ASN1_VALUE **pval, const ASN1_ITEM *it) 61 memcpy(pval, &it->size, COPY_SIZE(*pval, it->size)); 96 memcpy(<mp, pval, COPY_SIZE(*pval, ltmp)); 189 memcpy(pval, <mp, COPY_SIZE(*pval, ltmp)); [all …]
|
H A D | tasn_enc.c | 175 seqtt = asn1_do_adb(pval, tt, 1); in ASN1_item_ex_i2d() 225 tval = (ASN1_VALUE *)pval; in asn1_template_ex_i2d() 226 pval = &tval; in asn1_template_ex_i2d() 274 if (!*pval) in asn1_template_ex_i2d() 525 if (!*pval) in asn1_ex_i2c() 531 strtmp = (ASN1_STRING *)*pval; in asn1_ex_i2c() 537 typ = (ASN1_TYPE *)*pval; in asn1_ex_i2c() 540 pval = &typ->value.asn1_value; in asn1_ex_i2c() 546 otmp = (ASN1_OBJECT *)*pval; in asn1_ex_i2c() 559 tbool = (ASN1_BOOLEAN *)pval; in asn1_ex_i2c() [all …]
|
H A D | tasn_dec.c | 111 if (!pval) in ASN1_item_d2i() 112 pval = &ptmpval; in ASN1_item_d2i() 115 return *pval; in ASN1_item_d2i() 152 if (!pval) in asn1_item_embed_d2i() 239 if (*pval) { in asn1_item_embed_d2i() 325 if (!*pval && !ASN1_item_ex_new(pval, it)) { in asn1_item_embed_d2i() 671 if (!pval) { in asn1_d2i_ex_primitive() 808 if (!*pval) { in asn1_ex_c2i() 818 opval = pval; in asn1_ex_c2i() 888 if (!*pval) { in asn1_ex_c2i() [all …]
|
H A D | asn1_local.h | 48 int asn1_get_choice_selector(ASN1_VALUE **pval, const ASN1_ITEM *it); 49 int asn1_set_choice_selector(ASN1_VALUE **pval, int value, 52 ASN1_VALUE **asn1_get_field_ptr(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt); 54 const ASN1_TEMPLATE *asn1_do_adb(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt, 57 int asn1_do_lock(ASN1_VALUE **pval, int op, const ASN1_ITEM *it); 59 void asn1_enc_init(ASN1_VALUE **pval, const ASN1_ITEM *it); 60 void asn1_enc_free(ASN1_VALUE **pval, const ASN1_ITEM *it); 61 int asn1_enc_restore(int *len, unsigned char **out, ASN1_VALUE **pval, 63 int asn1_enc_save(ASN1_VALUE **pval, const unsigned char *in, int inlen, 67 void asn1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int embed); [all …]
|
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/rsa/ |
H A D | rsa_asn1.c | 22 static int rsa_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in rsa_cb() argument 26 *pval = (ASN1_VALUE *)RSA_new(); in rsa_cb() 27 if (*pval != NULL) in rsa_cb() 31 RSA_free((RSA *)*pval); in rsa_cb() 32 *pval = NULL; in rsa_cb() 35 if (((RSA *)*pval)->version != RSA_ASN1_VERSION_MULTI) { in rsa_cb() 39 return (rsa_multip_calc_product((RSA *)*pval) == 1) ? 2 : 0; in rsa_cb() 71 static int rsa_pss_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, 75 RSA_PSS_PARAMS *pss = (RSA_PSS_PARAMS *)*pval; 91 static int rsa_oaep_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, [all …]
|
/netbsd/crypto/external/bsd/openssl/dist/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 …]
|
/netbsd/external/bsd/ntp/dist/include/ |
H A D | safecast.h | 32 #define UA_PTR(ptype,pval) ((ptype *)(void*)(pval)) argument 33 #define UAC_PTR(ptype,pval) ((const ptype *)(const void*)(pval)) argument 34 #define UAV_PTR(ptype,pval) ((volatile ptype *)(volatile void*)(pval)) argument
|
/netbsd/crypto/external/bsd/openssl/dist/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()
|
/netbsd/external/bsd/am-utils/dist/amd/ |
H A D | info_hesiod.c | 65 int hesiod_search(mnt_map *m, char *map, char *key, char **pval, time_t *tp); 93 hesiod_search(mnt_map *m, char *map, char *key, char **pval, time_t *tp) in hesiod_search() argument 102 (unsigned long) m, map, key, (unsigned long) pval, (unsigned long) tp); in hesiod_search() 130 *pval = sun_entry2amd(key, *rvec); in hesiod_search() 133 *pval = *rvec; in hesiod_search()
|
/netbsd/crypto/external/bsd/openssl/dist/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> 94 class I<class> into an B<ASN1_VALUE>. If I<*pval> is non-NULL then the [all …]
|
/netbsd/crypto/external/bsd/openssl/dist/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()
|