Lines Matching defs:ctx
290 static int test_tlsafile(SSL_CTX *ctx, const char *base_name,
322 if (!TEST_ptr(ssl = SSL_new(ctx)))
386 SSL_CTX *ctx = NULL;
391 || !TEST_ptr(ctx = SSL_CTX_new(TLS_client_method()))
392 || !TEST_int_gt(SSL_CTX_dane_enable(ctx), 0)
393 || !TEST_true(SSL_CTX_load_verify_file(ctx, CAfile))
394 || !TEST_int_gt(SSL_CTX_dane_mtype_set(ctx, EVP_sha512(), 2, 1), 0)
395 || !TEST_int_gt(SSL_CTX_dane_mtype_set(ctx, EVP_sha256(), 1, 2), 0)
396 || !TEST_int_gt(test_tlsafile(ctx, basedomain, f, tlsafile), 0))
402 SSL_CTX_free(ctx);