X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=test%2Fsrc%2FX509Req.cpp;h=f8bb6044c2df33540c2a4d15345d0d40fb97b277;hb=6121035a7d8ea738bc89c2de8e6602fb1099b0e2;hp=750d7fcc99fd3a0f79741a36d24d73348dad07f5;hpb=5abd625675236b9068438d90615fa08d45a389db;p=cassiopeia.git diff --git a/test/src/X509Req.cpp b/test/src/X509Req.cpp index 750d7fc..f8bb604 100644 --- a/test/src/X509Req.cpp +++ b/test/src/X509Req.cpp @@ -1,15 +1,23 @@ -#include - #include #include -#include "X509.h" #include "util.h" +#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 );