Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 151) sorted by relevance

1234567

/openssl/crypto/
H A Dparams.c274 return general_get_int(p, val, sizeof(*val)); in OSSL_PARAM_get_int()
287 return general_set_int(p, &val, sizeof(val)); in OSSL_PARAM_set_int()
305 return general_get_uint(p, val, sizeof(*val)); in OSSL_PARAM_get_uint()
318 return general_set_uint(p, &val, sizeof(val)); in OSSL_PARAM_set_uint()
337 return general_get_int(p, val, sizeof(*val)); in OSSL_PARAM_get_long()
350 return general_set_int(p, &val, sizeof(val)); in OSSL_PARAM_set_long()
368 return general_get_uint(p, val, sizeof(*val)); in OSSL_PARAM_get_ulong()
521 u32 = val < 0 ? -val : val; in OSSL_PARAM_set_int32()
828 u64 = val < 0 ? -val : val; in OSSL_PARAM_set_int64()
1234 if (val != (uint64_t)val) { in OSSL_PARAM_set_double()
[all …]
H A Dthreads_none.c208 *val += amount; in CRYPTO_atomic_add()
209 *ret = *val; in CRYPTO_atomic_add()
217 *val += op; in CRYPTO_atomic_add64()
218 *ret = *val; in CRYPTO_atomic_add64()
226 *val &= op; in CRYPTO_atomic_and()
227 *ret = *val; in CRYPTO_atomic_and()
235 *val |= op; in CRYPTO_atomic_or()
236 *ret = *val; in CRYPTO_atomic_or()
243 *ret = *val; in CRYPTO_atomic_load()
250 *dst = val; in CRYPTO_atomic_store()
[all …]
H A Dthreads_pthread.c864 if (__atomic_is_lock_free(sizeof(*val), val)) { in CRYPTO_atomic_add()
879 *ret = *val; in CRYPTO_atomic_add()
891 if (__atomic_is_lock_free(sizeof(*val), val)) { in CRYPTO_atomic_add64()
904 *val += op; in CRYPTO_atomic_add64()
917 if (__atomic_is_lock_free(sizeof(*val), val)) { in CRYPTO_atomic_and()
930 *val &= op; in CRYPTO_atomic_and()
943 if (__atomic_is_lock_free(sizeof(*val), val)) { in CRYPTO_atomic_or()
956 *val |= op; in CRYPTO_atomic_or()
968 if (__atomic_is_lock_free(sizeof(*val), val)) { in CRYPTO_atomic_load()
1004 *dst = val; in CRYPTO_atomic_store()
[all …]
H A Dthreads_win.c602 if (TlsSetValue(*key, val) == 0) in CRYPTO_THREAD_set_local()
639 *val += op; in CRYPTO_atomic_add64()
640 *ret = *val; in CRYPTO_atomic_add64()
658 *val &= op; in CRYPTO_atomic_and()
659 *ret = *val; in CRYPTO_atomic_and()
677 *val |= op; in CRYPTO_atomic_or()
678 *ret = *val; in CRYPTO_atomic_or()
695 *ret = *val; in CRYPTO_atomic_load()
711 *dst = val; in CRYPTO_atomic_store()
717 InterlockedExchange64(dst, val); in CRYPTO_atomic_store()
[all …]
H A Dgetenv.c22 char *val = NULL; in ossl_safe_getenv() local
70 val = OPENSSL_malloc(vallen); in ossl_safe_getenv()
72 if (NULL != val) { in ossl_safe_getenv()
74 if (WideCharToMultiByte(CP_UTF8, 0, valw, -1, val, vallen, in ossl_safe_getenv()
76 OPENSSL_free(val); in ossl_safe_getenv()
77 val = NULL; in ossl_safe_getenv()
87 return val; in ossl_safe_getenv()
H A Dppccap.c111 unsigned long val = 0ul; in getauxval() local
113 if (elf_aux_info((int)key, &val, sizeof(val)) != 0) in getauxval()
116 return val; in getauxval()
208 int val; in OPENSSL_cpuid_setup() local
209 size_t len = sizeof(val); in OPENSSL_cpuid_setup()
211 if (sysctlbyname("hw.optional.64bitops", &val, &len, NULL, 0) == 0) { in OPENSSL_cpuid_setup()
212 if (val) in OPENSSL_cpuid_setup()
216 len = sizeof(val); in OPENSSL_cpuid_setup()
217 if (sysctlbyname("hw.optional.altivec", &val, &len, NULL, 0) == 0) { in OPENSSL_cpuid_setup()
218 if (val) in OPENSSL_cpuid_setup()
/openssl/include/internal/
H A Drefcount.h30 _Atomic int val; member
68 int val; member
95 volatile int val; member
121 volatile int val; member
194 int val; member
223 refcnt->val = n; in CRYPTO_NEW_REF()
243 refcnt->val++; in CRYPTO_UP_REF()
244 *ret = refcnt->val; in CRYPTO_UP_REF()
251 refcnt->val--; in CRYPTO_DOWN_REF()
252 *ret = refcnt->val; in CRYPTO_DOWN_REF()
[all …]
H A Dtsan_assist.h62 # define tsan_store(ptr, val) atomic_store_explicit((ptr), (val), memory_order_relaxed) argument
65 # define tsan_st_rel(ptr, val) atomic_store_explicit((ptr), (val), memory_order_release) argument
74 # define tsan_store(ptr, val) __atomic_store_n((ptr), (val), __ATOMIC_RELAXED) argument
77 # define tsan_st_rel(ptr, val) __atomic_store_n((ptr), (val), __ATOMIC_RELEASE) argument
105 # define tsan_store(ptr, val) (sizeof(*(ptr)) == 8 ? __iso_volatile_store64((ptr), (val)) \ argument
106 : __iso_volatile_store32((ptr), (val)))
109 # define tsan_store(ptr, val) __iso_volatile_store32((ptr), (val)) argument
113 # define tsan_store(ptr, val) (*(ptr) = (val)) argument
125 # define tsan_st_rel(ptr, val) (*(ptr) = (val)) argument
140 # define tsan_store(ptr, val) (*(ptr) = (val)) argument
/openssl/include/openssl/
H A Dparams.h106 int OSSL_PARAM_get_int(const OSSL_PARAM *p, int *val);
117 int OSSL_PARAM_set_int(OSSL_PARAM *p, int val);
119 int OSSL_PARAM_set_long(OSSL_PARAM *p, long int val);
121 int OSSL_PARAM_set_int32(OSSL_PARAM *p, int32_t val);
122 int OSSL_PARAM_set_uint32(OSSL_PARAM *p, uint32_t val);
123 int OSSL_PARAM_set_int64(OSSL_PARAM *p, int64_t val);
124 int OSSL_PARAM_set_uint64(OSSL_PARAM *p, uint64_t val);
125 int OSSL_PARAM_set_size_t(OSSL_PARAM *p, size_t val);
126 int OSSL_PARAM_set_time_t(OSSL_PARAM *p, time_t val);
129 int OSSL_PARAM_set_double(OSSL_PARAM *p, double val);
[all …]
H A Dparam_build.h26 int OSSL_PARAM_BLD_push_int(OSSL_PARAM_BLD *bld, const char *key, int val);
28 unsigned int val);
30 long int val);
32 unsigned long int val);
34 int32_t val);
36 uint32_t val);
38 int64_t val);
40 uint64_t val);
42 size_t val);
44 time_t val);
[all …]
/openssl/test/
H A Dconf_include_test.c82 long val; in test_load_config() local
104 val = 0; in test_load_config()
106 || !TEST_int_eq(val, 365)) { in test_load_config()
112 val = 0; in test_load_config()
114 || !TEST_int_eq(val, 2048)) { in test_load_config()
128 val = 0; in test_load_config()
130 || !TEST_int_eq(val, 1)) { in test_load_config()
134 val = 0; in test_load_config()
140 val = 0; in test_load_config()
155 long val = 0; in test_check_null_numbers() local
[all …]
/openssl/crypto/x509/
H A Dx_ietfatt.c77 ias->type = val->type;
125 if (val == NULL) in OSSL_IETF_ATTR_SYNTAX_get0_value()
129 *type = val->type; in OSSL_IETF_ATTR_SYNTAX_get0_value()
131 switch (val->type) { in OSSL_IETF_ATTR_SYNTAX_get0_value()
133 return val->u.octets; in OSSL_IETF_ATTR_SYNTAX_get0_value()
135 return val->u.oid; in OSSL_IETF_ATTR_SYNTAX_get0_value()
137 return val->u.string; in OSSL_IETF_ATTR_SYNTAX_get0_value()
165 val->type = type; in OSSL_IETF_ATTR_SYNTAX_add1_value()
168 val->u.octets = data; in OSSL_IETF_ATTR_SYNTAX_add1_value()
171 val->u.oid = data; in OSSL_IETF_ATTR_SYNTAX_add1_value()
[all …]
H A Dv3_pci.c94 X509V3_conf_err(val); in process_pci_value()
99 X509V3_conf_err(val); in process_pci_value()
106 X509V3_conf_err(val); in process_pci_value()
111 X509V3_conf_err(val); in process_pci_value()
115 char *valp = val->value; in process_pci_value()
123 X509V3_conf_err(val); in process_pci_value()
133 X509V3_conf_err(val); in process_pci_value()
154 X509V3_conf_err(val); in process_pci_value()
164 X509V3_conf_err(val); in process_pci_value()
219 X509V3_conf_err(val); in process_pci_value()
[all …]
H A Dv3_bcons.c60 CONF_VALUE *val; in v2i_BASIC_CONSTRAINTS() local
68 val = sk_CONF_VALUE_value(values, i); in v2i_BASIC_CONSTRAINTS()
69 if (strcmp(val->name, "CA") == 0) { in v2i_BASIC_CONSTRAINTS()
70 if (!X509V3_get_value_bool(val, &bcons->ca)) in v2i_BASIC_CONSTRAINTS()
72 } else if (strcmp(val->name, "pathlen") == 0) { in v2i_BASIC_CONSTRAINTS()
73 if (!X509V3_get_value_int(val, &bcons->pathlen)) in v2i_BASIC_CONSTRAINTS()
77 X509V3_conf_add_error_name_value(val); in v2i_BASIC_CONSTRAINTS()
H A Dv3_battcons.c61 CONF_VALUE *val; in v2i_OSSL_BASIC_ATTR_CONSTRAINTS() local
69 val = sk_CONF_VALUE_value(values, i); in v2i_OSSL_BASIC_ATTR_CONSTRAINTS()
70 if (strcmp(val->name, "authority") == 0) { in v2i_OSSL_BASIC_ATTR_CONSTRAINTS()
71 if (!X509V3_get_value_bool(val, &battcons->authority)) in v2i_OSSL_BASIC_ATTR_CONSTRAINTS()
73 } else if (strcmp(val->name, "pathlen") == 0) { in v2i_OSSL_BASIC_ATTR_CONSTRAINTS()
74 if (!X509V3_get_value_int(val, &battcons->pathlen)) in v2i_OSSL_BASIC_ATTR_CONSTRAINTS()
78 X509V3_conf_add_error_name_value(val); in v2i_OSSL_BASIC_ATTR_CONSTRAINTS()
H A Dv3_pmaps.c70 CONF_VALUE *val; in v2i_POLICY_MAPPINGS() local
81 val = sk_CONF_VALUE_value(nval, i); in v2i_POLICY_MAPPINGS()
82 if (!val->value || !val->name) { in v2i_POLICY_MAPPINGS()
84 "%s", val->name); in v2i_POLICY_MAPPINGS()
87 obj1 = OBJ_txt2obj(val->name, 0); in v2i_POLICY_MAPPINGS()
88 obj2 = OBJ_txt2obj(val->value, 0); in v2i_POLICY_MAPPINGS()
91 "%s", val->name); in v2i_POLICY_MAPPINGS()
H A Dv3_pcons.c60 CONF_VALUE *val; in v2i_POLICY_CONSTRAINTS() local
68 val = sk_CONF_VALUE_value(values, i); in v2i_POLICY_CONSTRAINTS()
69 if (strcmp(val->name, "requireExplicitPolicy") == 0) { in v2i_POLICY_CONSTRAINTS()
70 if (!X509V3_get_value_int(val, &pcons->requireExplicitPolicy)) in v2i_POLICY_CONSTRAINTS()
72 } else if (strcmp(val->name, "inhibitPolicyMapping") == 0) { in v2i_POLICY_CONSTRAINTS()
73 if (!X509V3_get_value_int(val, &pcons->inhibitPolicyMapping)) in v2i_POLICY_CONSTRAINTS()
77 "%s", val->name); in v2i_POLICY_CONSTRAINTS()
H A Dv3_bitst.c62 CONF_VALUE *val; in v2i_ASN1_BIT_STRING() local
71 val = sk_CONF_VALUE_value(nval, i); in v2i_ASN1_BIT_STRING()
73 if (strcmp(bnam->sname, val->name) == 0 in v2i_ASN1_BIT_STRING()
74 || strcmp(bnam->lname, val->name) == 0) { in v2i_ASN1_BIT_STRING()
85 "%s", val->name); in v2i_ASN1_BIT_STRING()
H A Dv3_tlsf.c93 CONF_VALUE *val; in v2i_TLS_FEATURE() local
104 val = sk_CONF_VALUE_value(nval, i); in v2i_TLS_FEATURE()
105 if (val->value) in v2i_TLS_FEATURE()
106 extval = val->value; in v2i_TLS_FEATURE()
108 extval = val->name; in v2i_TLS_FEATURE()
120 X509V3_conf_add_error_name_value(val); in v2i_TLS_FEATURE()
/openssl/util/perl/OpenSSL/
H A Dparamnames.pm597 my $val = $params{$name};
600 if (substr($val, 0, 1) eq '*') {
603 $def .= '"' . $val . '"';
620 my $val = $params{$name};
622 if (substr($val, 0, 1) ne '*' and not defined $reverse{$val}) {
623 $reverse{$val} = $count++;
629 my $val = $params{$name};
632 if (substr($val, 0, 1) eq '*') {
635 $def .= $reverse{$val};
648 my $val = $params{$name};
[all …]
/openssl/crypto/cmp/
H A Dcmp_ctx.c50 ctx->FIELD = val; \ in DEFINE_OSSL_CMP_CTX_get0_NAME()
262 ctx->FIELD = val; \
576 if (val != NULL && (val_dup = TYPE##_dup(val)) == NULL) \ in DEFINE_OSSL_set1_certs()
595 if (val != NULL && TYPE##_invalid(val)) { \
599 if (val != NULL && !TYPE##_up_ref(val)) \
602 ctx->FIELD = val; \
893 if (val < min_val) { in DEFINE_set1_ASN1_OCTET_STRING()
922 ctx->days = val; in DEFINE_set1_ASN1_OCTET_STRING()
941 ctx->popoMethod = val; in DEFINE_set1_ASN1_OCTET_STRING()
952 ctx->pbm_mac = val; in DEFINE_set1_ASN1_OCTET_STRING()
[all …]
/openssl/crypto/perlasm/
H A Driscv.pm213 my $val = shift;
223 and $val, $val, $t0
224 srli $val, $val, 1
225 or $val, $t1, $val
230 and $val, $val, $t0
231 srli $val, $val, 2
232 or $val, $t1, $val
237 and $val, $val, $t0
238 srli $val, $val, 4
239 or $val, $t1, $val
[all …]
/openssl/crypto/asn1/
H A Dbio_ndef.c33 ASN1_VALUE *val; member
58 BIO *BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it) in BIO_new_NDEF() argument
99 if (aux->asn1_cb(ASN1_OP_STREAM_PRE, &val, it, &sarg) <= 0) { in BIO_new_NDEF()
113 ndef_aux->val = val; in BIO_new_NDEF()
140 derlen = ASN1_item_ndef_i2d(ndef_aux->val, NULL, ndef_aux->it); in ndef_prefix()
148 ASN1_item_ndef_i2d(ndef_aux->val, &p, ndef_aux->it); in ndef_prefix()
210 &ndef_aux->val, ndef_aux->it, &sarg) <= 0) in ndef_suffix()
213 derlen = ASN1_item_ndef_i2d(ndef_aux->val, NULL, ndef_aux->it); in ndef_suffix()
221 derlen = ASN1_item_ndef_i2d(ndef_aux->val, &p, ndef_aux->it); in ndef_suffix()
/openssl/crypto/ts/
H A Dts_conf.c325 CONF_VALUE *val = sk_CONF_VALUE_value(list, i); in TS_CONF_set_policies() local
326 const char *extval = val->value ? val->value : val->name; in TS_CONF_set_policies()
364 CONF_VALUE *val = sk_CONF_VALUE_value(list, i); in TS_CONF_set_digests() local
365 const char *extval = val->value ? val->value : val->name; in TS_CONF_set_digests()
396 if (strcmp(val->name, ENV_VALUE_SECS) == 0) { in TS_CONF_set_accuracy()
397 if (val->value) in TS_CONF_set_accuracy()
398 secs = atoi(val->value); in TS_CONF_set_accuracy()
400 if (val->value) in TS_CONF_set_accuracy()
401 millis = atoi(val->value); in TS_CONF_set_accuracy()
403 if (val->value) in TS_CONF_set_accuracy()
[all …]
/openssl/test/testutil/
H A Dtestutil_init.c102 char *val; in setup_trace() local
112 val = OPENSSL_strdup(str); in setup_trace()
114 if (val != NULL) { in setup_trace()
115 char *valp = val; in setup_trace()
118 for (valp = val; (item = strtok(valp, ",")) != NULL; valp = NULL) { in setup_trace()
134 OPENSSL_free(val); in setup_trace()

Completed in 55 milliseconds

1234567