/third_party/libuv/test/ |
H A D | test-ipc-send-recv.c | 66 static struct echo_ctx ctx2; variable 294 uv_close(&ctx2.recv.handle, NULL); in write2_cb() 295 uv_close(&ctx2.recv2.handle, NULL); in write2_cb() 296 uv_close((uv_handle_t*)&ctx2.channel, NULL); in write2_cb() 297 uv_close((uv_handle_t*)&ctx2.listen, NULL); in write2_cb() 320 ASSERT_PTR_EQ(pipe, &ctx2.channel); in read_cb() 324 recv = &ctx2.recv; in read_cb() 325 write_req = &ctx2.write_req; in read_cb() 327 recv = &ctx2.recv2; in read_cb() 328 write_req = &ctx2 in read_cb() [all...] |
/third_party/openssl/test/ |
H A D | ssl_test_ctx_test.c | 75 static int testctx_eq(SSL_TEST_CTX *ctx, SSL_TEST_CTX *ctx2) in testctx_eq() argument 77 if (!TEST_int_eq(ctx->method, ctx2->method) in testctx_eq() 78 || !TEST_int_eq(ctx->handshake_mode, ctx2->handshake_mode) in testctx_eq() 79 || !TEST_int_eq(ctx->app_data_size, ctx2->app_data_size) in testctx_eq() 80 || !TEST_int_eq(ctx->max_fragment_size, ctx2->max_fragment_size) in testctx_eq() 81 || !extraconf_eq(&ctx->extra, &ctx2->extra) in testctx_eq() 82 || !extraconf_eq(&ctx->resume_extra, &ctx2->resume_extra) in testctx_eq() 83 || !TEST_int_eq(ctx->expected_result, ctx2->expected_result) in testctx_eq() 85 ctx2->expected_client_alert) in testctx_eq() 87 ctx2 in testctx_eq() [all...] |
H A D | sm3_internal_test.c | 59 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 D | cmactest.c | 171 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 D | hmactest.c | 221 HMAC_CTX *ctx = NULL, *ctx2 = NULL; in test_hmac_copy() local 227 ctx2 = HMAC_CTX_new(); in test_hmac_copy() 228 if (!TEST_ptr(ctx) || !TEST_ptr(ctx2)) in test_hmac_copy() 233 || !TEST_true(HMAC_CTX_copy(ctx2, ctx)) in test_hmac_copy() 234 || !TEST_true(HMAC_Final(ctx2, buf, &len))) in test_hmac_copy() 243 HMAC_CTX_free(ctx2); in test_hmac_copy()
|
H A D | keymgmt_internal_test.c | 33 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 D | evp_pkey_provided_test.c | 910 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()
|
/third_party/node/test/parallel/ |
H A D | test-vm-context-property-forwarding.js | 39 const ctx2 = vm.createContext(x); 40 const pd_actual = Object.getOwnPropertyDescriptor(ctx2, 1); 43 assert.strictEqual(ctx2[1], 5); 44 delete ctx2[1]; 45 assert.strictEqual(ctx2[1], undefined);
|
/third_party/openssl/demos/pkey/ |
H A D | EVP_PKEY_DSA_paramvalidate.c | 111 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()
|
/third_party/node/deps/openssl/openssl/crypto/rsa/ |
H A D | rsa_x931g.c | 31 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()
|
/third_party/openssl/crypto/rsa/ |
H A D | rsa_x931g.c | 31 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()
|
/third_party/node/deps/openssl/openssl/apps/ |
H A D | s_server.c | 82 static SSL_CTX *ctx2 = NULL; variable 438 if (ctx2 != NULL) { in ssl_servername_cb() 440 SSL_set_SSL_CTX(s, ctx2); in ssl_servername_cb() 1062 ctx = ctx2 = NULL; in s_server_main() 1965 ctx2 = SSL_CTX_new_ex(app_get0_libctx(), app_get0_propq(), meth); in s_server_main() 1966 if (ctx2 == NULL) { in s_server_main() 1972 if (ctx2 != NULL) { in s_server_main() 1976 ssl_ctx_security_debug(ctx2, sdebug); in s_server_main() 1982 if (!SSL_CTX_set_generate_session_id(ctx2, generate_session_id)) { in s_server_main() 1990 ssl_ctx_set_excert(ctx2, ex in s_server_main() [all...] |
H A D | fipsinstall.c | 303 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()
|
H A D | x509.c | 683 X509V3_CTX ctx2; in x509_main() local 694 X509V3_set_ctx_test(&ctx2); in x509_main() 695 X509V3_set_nconf(&ctx2, extconf); in x509_main() 696 if (!X509V3_EXT_add_nconf(extconf, &ctx2, extsect, NULL)) { in x509_main()
|
/third_party/openssl/apps/ |
H A D | s_server.c | 82 static SSL_CTX *ctx2 = NULL; variable 438 if (ctx2 != NULL) { in ssl_servername_cb() 440 SSL_set_SSL_CTX(s, ctx2); in ssl_servername_cb() 1062 ctx = ctx2 = NULL; in s_server_main() 1960 ctx2 = SSL_CTX_new_ex(app_get0_libctx(), app_get0_propq(), meth); in s_server_main() 1961 if (ctx2 == NULL) { in s_server_main() 1967 if (ctx2 != NULL) { in s_server_main() 1971 ssl_ctx_security_debug(ctx2, sdebug); in s_server_main() 1977 if (!SSL_CTX_set_generate_session_id(ctx2, generate_session_id)) { in s_server_main() 1985 ssl_ctx_set_excert(ctx2, ex in s_server_main() [all...] |
H A D | fipsinstall.c | 303 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()
|
/third_party/selinux/libsepol/src/ |
H A D | mls.c | 672 context_struct_t *ctx1 = NULL, *ctx2 = NULL; in sepol_mls_contains() local 674 ctx2 = malloc(sizeof(context_struct_t)); in sepol_mls_contains() 675 if (ctx1 == NULL || ctx2 == NULL) in sepol_mls_contains() 678 context_init(ctx2); in sepol_mls_contains() 683 if (mls_from_string(handle, &policydb->p, mls2, ctx2) < 0) in sepol_mls_contains() 686 *response = mls_range_contains(ctx1->range, ctx2->range); in sepol_mls_contains() 688 context_destroy(ctx2); in sepol_mls_contains() 690 free(ctx2); in sepol_mls_contains() 700 context_destroy(ctx2); in sepol_mls_contains() 702 free(ctx2); in sepol_mls_contains() [all...] |
/third_party/ntfs-3g/ntfsprogs/ |
H A D | ntfscmp.c | 672 ntfs_attr_search_ctx *ctx2) in cmp_attribute() 675 ATTR_RECORD *a2 = ctx2->attr; in cmp_attribute() 684 na2 = ntfs_attr_open(base_inode(ctx2), a2->type, GET_ATTR_NAME(a2)); in cmp_attribute() 834 ntfs_attr_search_ctx *ctx1, *ctx2; in cmp_attributes() local 838 if (!(ctx2 = attr_get_search_ctx(ni2))) in cmp_attributes() 842 set_cmp_attr(ctx2, &atype2, &name2); in cmp_attributes() 853 ret2 = next_attr(ctx2, &atype2, &name2, &errno2); in cmp_attributes() 875 if (new_attribute(ctx2, prev_atype, prev_name)) { in cmp_attributes() 876 print_ctx(ctx2); in cmp_attributes() 883 cmp_attribute(ctx1, ctx2); in cmp_attributes() 671 cmp_attribute(ntfs_attr_search_ctx *ctx1, ntfs_attr_search_ctx *ctx2) cmp_attribute() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
H A D | wpa_auth.h | 485 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);
|
/third_party/python/Lib/test/ |
H A D | test_context.py | 149 ctx2 = contextvars.Context() 158 ctx2.run(func2) 254 ctx2 = contextvars.copy_context() 255 self.assertNotIn(c, ctx2) 257 ctx2[c] 258 self.assertEqual(ctx2.get(c, 'aa'), 'aa') 259 self.assertEqual(len(ctx2), 0) 260 self.assertEqual(list(ctx2), []) 326 ctx2 = ctx1.copy() 327 self.assertEqual(ctx2[ [all...] |
/third_party/mesa3d/src/gallium/frontends/wgl/ |
H A D | stw_context.c | 96 struct stw_context *ctx2; in DrvShareLists() local 105 ctx2 = stw_lookup_context_locked( dhglrc2 ); in DrvShareLists() 107 if (ctx1 && ctx2 && ctx2->st->share) { in DrvShareLists() 108 ret = ctx2->st->share(ctx2->st, ctx1->st); in DrvShareLists() 110 ctx2->shared = TRUE; in DrvShareLists()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
H A D | wpa_auth.h | 550 void (*cb)(void *ctx1, void *ctx2), 551 void *ctx1, void *ctx2); 553 void (*cb)(void *ctx1, void *ctx2), 554 void *ctx1, void *ctx2); 556 void (*cb)(void *ctx1, void *ctx2), 557 void *ctx1, void *ctx2);
|
/third_party/libinput/test/ |
H A D | test-quirks.c | 1475 struct quirks_context *ctx, *ctx2; in START_TEST() local 1488 ctx2 = quirks_context_ref(ctx); in START_TEST() 1489 litest_assert_ptr_eq(ctx, ctx2); in START_TEST() 1490 ctx2 = quirks_context_unref(ctx); in START_TEST() 1491 litest_assert_ptr_eq(ctx2, NULL); in START_TEST() 1492 ctx2 = quirks_context_unref(ctx); in START_TEST() 1493 litest_assert_ptr_eq(ctx2, NULL); in START_TEST()
|
/third_party/mesa3d/src/gallium/targets/osmesa/ |
H A D | test-render.cpp | 250 std::unique_ptr<osmesa_context, decltype(&OSMesaDestroyContext)> ctx2{ in TEST() 253 ASSERT_TRUE(ctx2); in TEST() 263 ASSERT_EQ(OSMesaMakeCurrent(ctx2.get(), &pixel2, GL_UNSIGNED_BYTE, 1, 1), GL_TRUE); in TEST()
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
H A D | MultithreadingTest.cpp | 253 EGLContext ctx2 = createMultithreadedContext(window, EGL_NO_CONTEXT); in TEST_P() 255 EXPECT_EGL_TRUE(eglMakeCurrent(dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, ctx2)); in TEST_P() 258 EXPECT_EGL_TRUE(eglDestroyContext(dpy, ctx2)); in TEST_P()
|