Gabriele Contini
2019-09-21 55419547206c2be326503a220575d6a124ea16cc
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