BOOST_AUTO_TEST_CASE( CSR ) {
// Testing a valid CSR
- std::shared_ptr<X509Req> req( X509Req::parse( readFile( "testdata/test.csr" ) ) );
+ std::shared_ptr<X509Req> req( X509Req::parseCSR( readFile( "testdata/test.csr" ) ) );
BOOST_REQUIRE( req );
BOOST_CHECK( req->verify() == 1 );
// Testing a CSR, where the signature content has been tampered with
- req = std::shared_ptr<X509Req>( X509Req::parse( readFile( "testdata/test_false_sig.csr" ) ) );
+ req = std::shared_ptr<X509Req>( X509Req::parseCSR( readFile( "testdata/test_false_sig.csr" ) ) );
BOOST_REQUIRE( req );
BOOST_CHECK( req->verify() == 0 );
// Testing a CSR, where the signature OID is something strange
- req = std::shared_ptr<X509Req>( X509Req::parse( readFile( "testdata/test_invalid_sig.csr" ) ) );
+ req = std::shared_ptr<X509Req>( X509Req::parseCSR( readFile( "testdata/test_invalid_sig.csr" ) ) );
BOOST_REQUIRE( req );
BOOST_CHECK( req->verify() < 0 );
}