X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=test%2Fsrc%2FbioWrapper.cpp;h=dbf6a6d42cf5c82c002fb4d58bc94886a84416c7;hb=23987db96db7962a6ee58d1aeda2bd87780ca579;hp=aaf3ecc67939fdd740d5124534eb8df8106015bb;hpb=156855b7e12c3a0254590da514b0d0e8efe469f4;p=cassiopeia.git diff --git a/test/src/bioWrapper.cpp b/test/src/bioWrapper.cpp index aaf3ecc..dbf6a6d 100644 --- a/test/src/bioWrapper.cpp +++ b/test/src/bioWrapper.cpp @@ -40,7 +40,8 @@ const char* OpensslBIO1::getName() { BOOST_AUTO_TEST_SUITE( TestBioWrapper ) BOOST_AUTO_TEST_CASE( BasicCalls ) { - std::shared_ptr n( BIO_new( toBio() ), BIO_free ); + std::shared_ptr m( toBio(), BIO_meth_free ); + std::shared_ptr n( BIO_new( m.get() ), BIO_free ); OpensslBIO* o = new OpensslBIOWrapper( n ); OpensslBIO1* data = ( OpensslBIO1* ) n->ptr;