]> WPIA git - cassiopeia.git/blobdiff - src/crypto/simpleOpensslSigner.cpp
upd: remarks from FJW
[cassiopeia.git] / src / crypto / simpleOpensslSigner.cpp
index 8576fad1feb088316484343524e53a23f25ec6e2..b332818291f2e28b751e51fd1d1fc2dd0f34dcc2 100644 (file)
@@ -256,7 +256,7 @@ std::shared_ptr<SignedCertificate> SimpleOpensslSigner::sign( std::shared_ptr<TB
 std::pair<std::shared_ptr<CRL>, std::string> SimpleOpensslSigner::revoke( std::shared_ptr<CAConfig> ca, std::vector<std::string> serials ) {
     std::string crlpath = ca->path + "/ca.crl";
 
-    std::shared_ptr<CRL> crl( new CRL( crlpath ) );
+    auto crl = std::make_shared<CRL>( crlpath );
     std::string date = "";
 
     for( std::string serial : serials ) {