MCPcopy Create free account
hub / github.com/Snapchat/Valdi / logCryptoErrors

Function logCryptoErrors

libs/utils/src/utils/crypto/CryptoHelpers.cpp:12–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace snap::utils::crypto {
11
12void logCryptoErrors() {
13#ifdef NDEBUG
14 while (ERR_get_error() != 0u) {
15 }
16#else
17 while (uint32_t error = ERR_get_error()) {
18 std::array<char, 120> buf;
19 ERR_error_string_n(error, buf.data(), buf.size());
20 SCLOGE("[utils][CryptoHelpers]", "OpenSSL error: {}", buf.data());
21 }
22#endif
23}
24
25} // namespace snap::utils::crypto

Callers 2

encryptWithAdMethod · 0.85
decryptWithAdMethod · 0.85

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected