]> WPIA git - cassiopeia.git/blobdiff - test/src/X509Req.cpp
fmt: whitespace, padding and indentation formatting
[cassiopeia.git] / test / src / X509Req.cpp
index 750d7fcc99fd3a0f79741a36d24d73348dad07f5..f8bb6044c2df33540c2a4d15345d0d40fb97b277 100644 (file)
@@ -1,15 +1,23 @@
-#include <iostream>
-
 #include <boost/test/unit_test.hpp>
 
 #include <openssl/err.h>
 
-#include "X509.h"
 #include "util.h"
 
+#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 );