#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 );