X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Fcrypto%2FsimpleOpensslSigner.cpp;h=b6005b7483c112e85ed108f0939331a582c94ae8;hb=e8f8107bdd0d1149117f06e10b145ef00d5543fb;hp=f7042a29fccee7cbbdc731e5cf16e7d04469b4cd;hpb=f69f31caeda734d6d9c8ab00e693671ac7512bea;p=cassiopeia.git diff --git a/src/crypto/simpleOpensslSigner.cpp b/src/crypto/simpleOpensslSigner.cpp index f7042a2..b6005b7 100644 --- a/src/crypto/simpleOpensslSigner.cpp +++ b/src/crypto/simpleOpensslSigner.cpp @@ -191,6 +191,7 @@ std::shared_ptr SimpleOpensslSigner::sign( std::shared_ptr output = c.sign( ca->caKey, cert->md ); signlog << "FINE: all went well" << std::endl; std::string fn = writeBackFile( num, output->certificate, ca->path ); + if( fn.empty() ) { signlog << "ERROR: failed to get filename for storage of signed certificate." << std::endl; throw "Storage location could not be determined";