Home
last modified time | relevance | path

Searched refs:ctx2 (Results 1 – 25 of 36) sorted by relevance

12

/netbsd/external/mit/libuv/dist/test/
H A Dtest-ipc-send-recv.c66 static struct echo_ctx ctx2; variable
290 uv_close(&ctx2.recv.handle, NULL); in write2_cb()
291 uv_close(&ctx2.recv2.handle, NULL); in write2_cb()
314 ASSERT_EQ(pipe, &ctx2.channel); in read_cb()
318 recv = &ctx2.recv; in read_cb()
319 write_req = &ctx2.write_req; in read_cb()
321 recv = &ctx2.recv2; in read_cb()
322 write_req = &ctx2.write_req2; in read_cb()
365 r = uv_accept((uv_stream_t*)&ctx2.listen, (uv_stream_t*)&ctx2.channel); in listen_cb()
376 memset(&ctx2, 0, sizeof(ctx2)); in run_ipc_send_recv_helper()
[all …]
/netbsd/crypto/external/bsd/openssl.old/dist/test/
H A Dssl_test_ctx_test.c77 if (!TEST_int_eq(ctx->method, ctx2->method) in testctx_eq()
81 || !extraconf_eq(&ctx->extra, &ctx2->extra) in testctx_eq()
85 ctx2->expected_client_alert) in testctx_eq()
87 ctx2->expected_server_alert) in testctx_eq()
91 ctx2->session_ticket_expected) in testctx_eq()
93 ctx2->compression_expected) in testctx_eq()
95 ctx2->expected_npn_protocol) in testctx_eq()
97 ctx2->expected_alpn_protocol) in testctx_eq()
99 ctx2->expected_cipher) in testctx_eq()
103 ctx2->resumption_expected) in testctx_eq()
[all …]
H A Dcmactest.c165 CMAC_CTX *ctx = NULL, *ctx2 = NULL; in test_cmac_copy() local
171 ctx2 = CMAC_CTX_new(); in test_cmac_copy()
172 if (!TEST_ptr(ctx) || !TEST_ptr(ctx2)) in test_cmac_copy()
178 || !TEST_true(CMAC_CTX_copy(ctx2, ctx)) in test_cmac_copy()
179 || !TEST_true(CMAC_Final(ctx2, buf, &len))) in test_cmac_copy()
188 CMAC_CTX_free(ctx2); in test_cmac_copy()
H A Dhmactest.c223 HMAC_CTX *ctx = NULL, *ctx2 = NULL; in test_hmac_copy() local
229 ctx2 = HMAC_CTX_new(); in test_hmac_copy()
230 if (!TEST_ptr(ctx) || !TEST_ptr(ctx2)) in test_hmac_copy()
235 || !TEST_true(HMAC_CTX_copy(ctx2, ctx)) in test_hmac_copy()
236 || !TEST_true(HMAC_Final(ctx2, buf, &len))) in test_hmac_copy()
245 HMAC_CTX_free(ctx2); in test_hmac_copy()
H A Devp_extra_test.c1511 EVP_PKEY_CTX *ctx2 = NULL; in test_EVP_PKEY_check() local
1563 ctx2 = EVP_PKEY_CTX_new_id(0xdefaced, NULL); in test_EVP_PKEY_check()
1566 ctx2->pkey = pkey; in test_EVP_PKEY_check()
1568 if (!TEST_int_eq(EVP_PKEY_check(ctx2), 0xbeef)) in test_EVP_PKEY_check()
1571 if (!TEST_int_eq(EVP_PKEY_public_check(ctx2), 0xbeef)) in test_EVP_PKEY_check()
1574 if (!TEST_int_eq(EVP_PKEY_param_check(ctx2), 0xbeef)) in test_EVP_PKEY_check()
1581 EVP_PKEY_CTX_free(ctx2); in test_EVP_PKEY_check()
1963 EVP_CIPHER_CTX *ctx = NULL, *ctx2 = NULL; in test_cipher_with_engine() local
1976 || !TEST_ptr(ctx2 = EVP_CIPHER_CTX_new())) in test_cipher_with_engine()
1983 if (!TEST_true(EVP_CIPHER_CTX_copy(ctx2, ctx))) in test_cipher_with_engine()
[all …]
/netbsd/crypto/external/bsd/openssl/dist/test/
H A Dssl_test_ctx_test.c77 if (!TEST_int_eq(ctx->method, ctx2->method) in testctx_eq()
81 || !extraconf_eq(&ctx->extra, &ctx2->extra) in testctx_eq()
85 ctx2->expected_client_alert) in testctx_eq()
87 ctx2->expected_server_alert) in testctx_eq()
91 ctx2->session_ticket_expected) in testctx_eq()
93 ctx2->compression_expected) in testctx_eq()
95 ctx2->expected_npn_protocol) in testctx_eq()
97 ctx2->expected_alpn_protocol) in testctx_eq()
99 ctx2->expected_cipher) in testctx_eq()
103 ctx2->resumption_expected) in testctx_eq()
[all …]
H A Dsm3_internal_test.c59 SM3_CTX ctx1, ctx2; in test_sm3() local
68 if (!TEST_true(ossl_sm3_init(&ctx2)) in test_sm3()
69 || !TEST_true(ossl_sm3_update(&ctx2, input2, sizeof(input2))) in test_sm3()
70 || !TEST_true(ossl_sm3_final(md2, &ctx2)) in test_sm3()
H A Dcmactest.c171 CMAC_CTX *ctx = NULL, *ctx2 = NULL; in test_cmac_copy() local
177 ctx2 = CMAC_CTX_new(); in test_cmac_copy()
178 if (!TEST_ptr(ctx) || !TEST_ptr(ctx2)) in test_cmac_copy()
184 || !TEST_true(CMAC_CTX_copy(ctx2, ctx)) in test_cmac_copy()
185 || !TEST_true(CMAC_Final(ctx2, buf, &len))) in test_cmac_copy()
194 CMAC_CTX_free(ctx2); in test_cmac_copy()
H A Dhmactest.c223 HMAC_CTX *ctx = NULL, *ctx2 = NULL; in test_hmac_copy() local
229 ctx2 = HMAC_CTX_new(); in test_hmac_copy()
230 if (!TEST_ptr(ctx) || !TEST_ptr(ctx2)) in test_hmac_copy()
235 || !TEST_true(HMAC_CTX_copy(ctx2, ctx)) in test_hmac_copy()
236 || !TEST_true(HMAC_Final(ctx2, buf, &len))) in test_hmac_copy()
245 HMAC_CTX_free(ctx2); in test_hmac_copy()
H A Dkeymgmt_internal_test.c33 OSSL_LIB_CTX *ctx2; member
46 OSSL_LIB_CTX_free(fixture->ctx2); in tear_down()
59 || !TEST_ptr(fixture->ctx2 = OSSL_LIB_CTX_new()) in set_up()
60 || !TEST_ptr(fixture->prov2 = OSSL_PROVIDER_load(fixture->ctx2, in set_up()
222 || !TEST_ptr(km2 = EVP_KEYMGMT_fetch(fixture->ctx2, "RSA", NULL)) in test_pass_rsa()
H A Devp_pkey_provided_test.c910 EVP_PKEY_CTX *ctx = NULL, *ctx2 = NULL; in test_fromdata_ecx() local
1101 if (!TEST_ptr(ctx2 = EVP_PKEY_CTX_new_from_pkey(NULL, pk, NULL))) in test_fromdata_ecx()
1104 if (!TEST_int_gt(EVP_PKEY_check(ctx2), 0)) in test_fromdata_ecx()
1121 if (!TEST_int_gt(EVP_PKEY_public_check(ctx2), 0) in test_fromdata_ecx()
1122 || !TEST_int_le(EVP_PKEY_private_check(ctx2), 0) in test_fromdata_ecx()
1123 || !TEST_int_le(EVP_PKEY_check(ctx2), 0)) in test_fromdata_ecx()
1126 EVP_PKEY_CTX_free(ctx2); in test_fromdata_ecx()
1127 ctx2 = NULL; in test_fromdata_ecx()
1155 EVP_PKEY_CTX_free(ctx2); in test_fromdata_ecx()
/netbsd/crypto/external/bsd/openssl/dist/demos/pkey/
H A DEVP_PKEY_DSA_paramvalidate.c111 EVP_PKEY_CTX *ctx2 = NULL; in main() local
183 ctx2 = create_merged_key(dsaparamskey, params, libctx, propq); in main()
184 if (ctx2 == NULL) in main()
186 if (EVP_PKEY_param_check(ctx2) <= 0) { in main()
191 if (!dsa_print_key(EVP_PKEY_CTX_get0_pkey(ctx2), 0, libctx, propq)) in main()
197 EVP_PKEY_CTX_free(ctx2); in main()
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/rsa/
H A Drsa_x931g.c25 BN_CTX *ctx = NULL, *ctx2 = NULL; in RSA_X931_derive_ex() local
107 ctx2 = BN_CTX_new(); in RSA_X931_derive_ex()
108 if (ctx2 == NULL) in RSA_X931_derive_ex()
111 rsa->d = BN_mod_inverse(NULL, rsa->e, r0, ctx2); /* d */ in RSA_X931_derive_ex()
130 rsa->iqmp = BN_mod_inverse(NULL, rsa->q, rsa->p, ctx2); in RSA_X931_derive_ex()
138 BN_CTX_free(ctx2); in RSA_X931_derive_ex()
/netbsd/crypto/external/bsd/openssl/dist/crypto/rsa/
H A Drsa_x931g.c31 BN_CTX *ctx = NULL, *ctx2 = NULL; in RSA_X931_derive_ex() local
113 ctx2 = BN_CTX_new(); in RSA_X931_derive_ex()
114 if (ctx2 == NULL) in RSA_X931_derive_ex()
117 rsa->d = BN_mod_inverse(NULL, rsa->e, r0, ctx2); /* d */ in RSA_X931_derive_ex()
136 rsa->iqmp = BN_mod_inverse(NULL, rsa->q, rsa->p, ctx2); in RSA_X931_derive_ex()
145 BN_CTX_free(ctx2); in RSA_X931_derive_ex()
/netbsd/crypto/external/bsd/openssl.old/dist/apps/
H A Ds_server.c89 static SSL_CTX *ctx2 = NULL; variable
489 if (ctx2 != NULL) { in ssl_servername_cb()
1067 ctx = ctx2 = NULL; in s_server_main()
1908 if (ctx2 == NULL) { in s_server_main()
1914 if (ctx2 != NULL) { in s_server_main()
2029 if (ctx2 != NULL in s_server_main()
2042 if (ctx2 != NULL) in s_server_main()
2097 if (ctx2 != NULL) { in s_server_main()
2134 if (ctx2) in s_server_main()
2141 if (ctx2) { in s_server_main()
[all …]
H A Dx509.c495 X509V3_CTX ctx2; in x509_main() local
505 X509V3_set_ctx_test(&ctx2); in x509_main()
506 X509V3_set_nconf(&ctx2, extconf); in x509_main()
507 if (!X509V3_EXT_add_nconf(extconf, &ctx2, extsect, NULL)) { in x509_main()
1010 X509V3_CTX ctx2; in x509_certify() local
1012 X509V3_set_ctx(&ctx2, xca, x, NULL, NULL, 0); in x509_certify()
1013 X509V3_set_nconf(&ctx2, conf); in x509_certify()
1014 if (!X509V3_EXT_add_nconf(conf, &ctx2, section, x)) in x509_certify()
/netbsd/crypto/external/bsd/openssl/dist/apps/
H A Ds_server.c82 static SSL_CTX *ctx2 = NULL; variable
438 if (ctx2 != NULL) { in ssl_servername_cb()
1062 ctx = ctx2 = NULL; in s_server_main()
1961 if (ctx2 == NULL) { in s_server_main()
1967 if (ctx2 != NULL) { in s_server_main()
2097 if (ctx2 != NULL in s_server_main()
2110 if (ctx2 != NULL) in s_server_main()
2171 if (ctx2 != NULL) { in s_server_main()
2197 if (ctx2) in s_server_main()
2204 if (ctx2) { in s_server_main()
[all …]
H A Dfipsinstall.c303 EVP_MAC_CTX *ctx = NULL, *ctx2 = NULL; in fipsinstall_main() local
464 ctx2 = EVP_MAC_CTX_dup(ctx); in fipsinstall_main()
465 if (ctx2 == NULL) { in fipsinstall_main()
480 if (!do_mac(ctx2, read_buffer, mem_bio, install_mac, &install_mac_len)) in fipsinstall_main()
535 EVP_MAC_CTX_free(ctx2); in fipsinstall_main()
/netbsd/external/bsd/ipf/dist/lib/
H A Dsave_file.c64 file_match(ctx1, ctx2) in file_match() argument
65 void *ctx1, *ctx2; in file_match()
67 file_opts_t *f1 = ctx1, *f2 = ctx2;
H A Dsave_v1trap.c51 snmpv1_match(ctx1, ctx2) in snmpv1_match() argument
52 void *ctx1, *ctx2; in snmpv1_match()
54 snmpv1_opts_t *s1 = ctx1, *s2 = ctx2;
H A Dsave_v2trap.c55 snmpv2_match(ctx1, ctx2) in snmpv2_match() argument
56 void *ctx1, *ctx2; in snmpv2_match()
58 snmpv2_opts_t *s1 = ctx1, *s2 = ctx2;
/netbsd/external/gpl3/gcc/dist/gcc/
H A Domp-general.c1186 tree ctx1, tree ctx2) in omp_context_selector_props_compare() argument
1269 int len2 = list_length (ctx2); in omp_context_selector_set_compare()
1274 std::swap (ctx1, ctx2); in omp_context_selector_set_compare()
1280 tree t2 = ctx2; in omp_context_selector_set_compare()
1321 for (t2 = ctx2; t2; t2 = TREE_CHAIN (t2)) in omp_context_selector_set_compare()
1356 omp_context_selector_compare (tree ctx1, tree ctx2) in omp_context_selector_compare() argument
1361 int len2 = list_length (ctx2); in omp_context_selector_compare()
1366 std::swap (ctx1, ctx2); in omp_context_selector_compare()
1372 for (t2 = ctx2; t2; t2 = TREE_CHAIN (t2)) in omp_context_selector_compare()
1576 tree ctx2 = TREE_VALUE (TREE_VALUE (attr2)); in omp_resolve_declare_variant() local
[all …]
H A Domp-general.cc1736 tree ctx1, tree ctx2) in omp_context_selector_props_compare() argument
1819 int len2 = list_length (ctx2); in omp_context_selector_set_compare()
1824 std::swap (ctx1, ctx2); in omp_context_selector_set_compare()
1830 tree t2 = ctx2; in omp_context_selector_set_compare()
1871 for (t2 = ctx2; t2; t2 = TREE_CHAIN (t2)) in omp_context_selector_set_compare()
1906 omp_context_selector_compare (tree ctx1, tree ctx2) in omp_context_selector_compare() argument
1911 int len2 = list_length (ctx2); in omp_context_selector_compare()
1916 std::swap (ctx1, ctx2); in omp_context_selector_compare()
1922 for (t2 = ctx2; t2; t2 = TREE_CHAIN (t2)) in omp_context_selector_compare()
2353 tree ctx2 = TREE_VALUE (TREE_VALUE (attr2)); in omp_resolve_declare_variant() local
[all …]
/netbsd/external/gpl3/gcc.old/dist/gcc/
H A Domp-general.c1186 tree ctx1, tree ctx2) in omp_context_selector_props_compare() argument
1269 int len2 = list_length (ctx2); in omp_context_selector_set_compare()
1274 std::swap (ctx1, ctx2); in omp_context_selector_set_compare()
1280 tree t2 = ctx2; in omp_context_selector_set_compare()
1321 for (t2 = ctx2; t2; t2 = TREE_CHAIN (t2)) in omp_context_selector_set_compare()
1356 omp_context_selector_compare (tree ctx1, tree ctx2) in omp_context_selector_compare() argument
1361 int len2 = list_length (ctx2); in omp_context_selector_compare()
1366 std::swap (ctx1, ctx2); in omp_context_selector_compare()
1372 for (t2 = ctx2; t2; t2 = TREE_CHAIN (t2)) in omp_context_selector_compare()
1576 tree ctx2 = TREE_VALUE (TREE_VALUE (attr2)); in omp_resolve_declare_variant() local
[all …]
/netbsd/external/bsd/wpa/dist/src/ap/
H A Dwpa_auth.h485 void (*cb)(void *ctx1, void *ctx2),
486 void *ctx1, void *ctx2);
488 void (*cb)(void *ctx1, void *ctx2),
489 void *ctx1, void *ctx2);
491 void (*cb)(void *ctx1, void *ctx2),
492 void *ctx1, void *ctx2);

12