]> WPIA git - cassiopeia.git/blobdiff - test/src/X509Req.cpp
fmt: whitespace, padding and indentation formatting
[cassiopeia.git] / test / src / X509Req.cpp
index f1dc3fce320045e558828ebcefc02f12ed7e8fb1..f8bb6044c2df33540c2a4d15345d0d40fb97b277 100644 (file)
@@ -6,9 +6,18 @@
 
 #include "crypto/X509.h"
 
+#include <iostream>
+#include <openssl/ssl.h>
+
 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<X509Req> req( X509Req::parseCSR( readFile( "testdata/test.csr" ) ) );
     BOOST_REQUIRE( req );