gcontini
2019-09-21 0ec4d68600b83d41d2e48ad35d18e2a00f234619
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