X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=test%2Fsrc%2FX509Req.cpp;h=f8bb6044c2df33540c2a4d15345d0d40fb97b277;hb=6121035a7d8ea738bc89c2de8e6602fb1099b0e2;hp=f1dc3fce320045e558828ebcefc02f12ed7e8fb1;hpb=9e866a1a2facc8cb1565cd660c6b6d482f18ecb1;p=cassiopeia.git diff --git a/test/src/X509Req.cpp b/test/src/X509Req.cpp index f1dc3fc..f8bb604 100644 --- a/test/src/X509Req.cpp +++ b/test/src/X509Req.cpp @@ -6,9 +6,18 @@ #include "crypto/X509.h" +#include +#include + BOOST_AUTO_TEST_SUITE( TestX509Req ) BOOST_AUTO_TEST_CASE( CSR ) { + ERR_load_crypto_strings(); + ERR_free_strings(); + SSL_load_error_strings(); + ERR_print_errors_fp( stdout ); + BOOST_REQUIRE( ERR_peek_error() == 0 ); + // Testing a valid CSR std::shared_ptr req( X509Req::parseCSR( readFile( "testdata/test.csr" ) ) ); BOOST_REQUIRE( req );