]>
git.ipfire.org Git - thirdparty/openssl.git/blob - test/threadstest_fips.c
2 * Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.
4 * Licensed under the Apache License 2.0 (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
15 #include "threadstest.h"
19 static void thread_fips_rand_fetch(void)
23 if (!TEST_true(md
= EVP_MD_fetch(NULL
, "SHA2-256", NULL
)))
28 static int test_fips_rand_leak(void)
34 if (!TEST_true(run_thread(&thread
, thread_fips_rand_fetch
)))
36 if (!TEST_true(wait_for_thread(thread
)))
38 return TEST_true(success
);
44 * This test MUST be run first. Once the default library context is set
45 * up, this test will always pass.
47 ADD_TEST(test_fips_rand_leak
);