MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / OpenSSLThrowOnBadStatus

Function OpenSSLThrowOnBadStatus

src/openrct2/core/Crypt.OpenSSL.cpp:25–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23using namespace OpenRCT2::Crypt;
24
25static void OpenSSLThrowOnBadStatus(std::string_view name, int status)
26{
27 if (status != 1)
28 {
29 throw std::runtime_error(std::string(name) + " failed: " + std::to_string(status));
30 }
31}
32
33static void OpenSSLInitialise()
34{

Callers 3

GenerateMethod · 0.85
SignDataMethod · 0.85
VerifyDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected