Home
last modified time | relevance | path

Searched refs:test_ctx (Results 1 – 2 of 2) sorted by relevance

/netbsd/src/crypto/external/bsd/openssl/dist/test/
Dssl_test.c34 static int check_result(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) in check_result() argument
36 if (!TEST_int_eq(result->result, test_ctx->expected_result)) { in check_result()
38 ssl_test_result_name(test_ctx->expected_result), in check_result()
45 static int check_alerts(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) in check_alerts() argument
75 if (test_ctx->expected_client_alert in check_alerts()
81 && (result->client_alert_sent & 0xff) != test_ctx->expected_client_alert) { in check_alerts()
83 print_alert(test_ctx->expected_client_alert), in check_alerts()
88 if (test_ctx->expected_server_alert in check_alerts()
89 && (result->server_alert_sent & 0xff) != test_ctx->expected_server_alert) { in check_alerts()
91 print_alert(test_ctx->expected_server_alert), in check_alerts()
[all …]
/netbsd/src/crypto/external/bsd/openssl/dist/apps/
Dspeed.c2830 EVP_PKEY_CTX *test_ctx = NULL; in speed_main() local
2858 if ((test_ctx = EVP_PKEY_CTX_new(key_B, NULL)) == NULL /* test ctx from skeyB */ in speed_main()
2859 || EVP_PKEY_derive_init(test_ctx) <= 0 /* init derivation test_ctx */ in speed_main()
2860 || EVP_PKEY_derive_set_peer(test_ctx, key_A) <= 0 /* set peer pubkey in test_ctx */ in speed_main()
2861 || EVP_PKEY_derive(test_ctx, NULL, &test_outlen) <= 0 /* determine max length */ in speed_main()
2863 … || EVP_PKEY_derive(test_ctx, loopargs[i].secret_b, &test_outlen) <= 0 /* compute b*A */ in speed_main()
2887 EVP_PKEY_CTX_free(test_ctx); in speed_main()
2888 test_ctx = NULL; in speed_main()
3173 EVP_PKEY_CTX *test_ctx = NULL; in speed_main() local
3286 test_ctx = EVP_PKEY_CTX_new(pkey_B, NULL); in speed_main()
[all …]