From 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 20:24:20 +0200 Subject: Adding upstream version 14.2.21. Signed-off-by: Daniel Baumann --- src/boost/libs/winapi/test/run/crypt_abi.cpp | 47 ++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/boost/libs/winapi/test/run/crypt_abi.cpp (limited to 'src/boost/libs/winapi/test/run/crypt_abi.cpp') diff --git a/src/boost/libs/winapi/test/run/crypt_abi.cpp b/src/boost/libs/winapi/test/run/crypt_abi.cpp new file mode 100644 index 00000000..09e01140 --- /dev/null +++ b/src/boost/libs/winapi/test/run/crypt_abi.cpp @@ -0,0 +1,47 @@ +/* + * Copyright Andrey Semashev 2018. + * Distributed under the Boost Software License, Version 1.0. + * (See accompanying file LICENSE_1_0.txt or copy at + * http://www.boost.org/LICENSE_1_0.txt) + */ +/*! + * \file crypt_abi.cpp + * \author Andrey Semashev + * \date 09.03.2018 + * + * \brief This file contains ABI test for crypt.hpp + */ + +#include +#include +#include +#include "abi_test_tools.hpp" + +int main() +{ + BOOST_WINAPI_TEST_TYPE_SAME(HCRYPTPROV); + +#if BOOST_WINAPI_PARTITION_APP_SYSTEM + BOOST_WINAPI_TEST_CONSTANT(PROV_RSA_FULL); + + BOOST_WINAPI_TEST_CONSTANT(CRYPT_VERIFYCONTEXT); + BOOST_WINAPI_TEST_CONSTANT(CRYPT_NEWKEYSET); + BOOST_WINAPI_TEST_CONSTANT(CRYPT_DELETEKEYSET); + BOOST_WINAPI_TEST_CONSTANT(CRYPT_MACHINE_KEYSET); + BOOST_WINAPI_TEST_CONSTANT(CRYPT_SILENT); +#endif + +#if BOOST_WINAPI_PARTITION_DESKTOP || BOOST_WINAPI_PARTITION_SYSTEM + +#if !defined(BOOST_NO_ANSI_APIS) + BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(CryptEnumProvidersA); + BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(CryptAcquireContextA); +#endif + BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(CryptEnumProvidersW); + BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(CryptAcquireContextW); + BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(CryptGenRandom); + +#endif // BOOST_WINAPI_PARTITION_DESKTOP || BOOST_WINAPI_PARTITION_SYSTEM + + return boost::report_errors(); +} -- cgit v1.2.3