Gabriele Contini
2019-09-19 6f5db32d147166ab1617c66844e3297eededc704
src/tools/base_lib/win/CryptoHelperWindows.cpp
@@ -71,6 +71,13 @@
            string("Error generating keys ")
                  + to_string(static_cast<long long>(dwErrCode)));
   }
   //double check the key is really generated
   if(m_hCryptKey == NULL) {
      dwErrCode = GetLastError();
      throw logic_error(
            string("Error generating keys (2)")
                  + to_string(static_cast<long long>(dwErrCode)));
    }
}
/* This method calls the CryptExportKey function to get the Public key