| * Copyright 2021 The OpenSSL Project Authors. All Rights Reserved. |
| * Licensed under the Apache License 2.0 (the "License"). You may not use |
| * this file except in compliance with the License. You can obtain a copy |
| * in the file LICENSE in the source distribution or at |
| * https://www.openssl.org/source/license.html |
| static void thread_fips_rand_fetch(void) |
| if (!TEST_true(md = EVP_MD_fetch(NULL, "SHA2-256", NULL))) |
| static int test_fips_rand_leak(void) |
| if (!TEST_true(run_thread(&thread, thread_fips_rand_fetch))) |
| if (!TEST_true(wait_for_thread(thread))) |
| return TEST_true(success); |
| * This test MUST be run first. Once the default library context is set |
| * up, this test will always pass. |
| ADD_TEST(test_fips_rand_leak); |