// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 OR ISC #ifndef OPENSSL_HEADER_CRYPTO_TEST_X509_UTIL_H #define OPENSSL_HEADER_CRYPTO_TEST_X509_UTIL_H #include #include #include int Verify( X509 *leaf, const std::vector &roots, const std::vector &intermediates, const std::vector &crls, unsigned long flags = 0, std::function configure_callback = nullptr); // CRLsToStack converts a vector of |X509_CRL*| to an OpenSSL // STACK_OF(X509_CRL), bumping the reference counts for each CRL in question. bssl::UniquePtr CRLsToStack( const std::vector &crls); #endif