X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=test%2Fsrc%2FX509Req.cpp;h=0d8300be374e7ac01adef1dba6a38e04c05d43d5;hb=e8abb7ca28c05c91fef58d23c40d3f2b1d5322ff;hp=f1dc3fce320045e558828ebcefc02f12ed7e8fb1;hpb=9e866a1a2facc8cb1565cd660c6b6d482f18ecb1;p=cassiopeia.git diff --git a/test/src/X509Req.cpp b/test/src/X509Req.cpp index f1dc3fc..0d8300b 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 );