MCPcopy Create free account
hub / github.com/apple/foundationdb / traceAndThrowDecode

Function traceAndThrowDecode

flow/PKey.cpp:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace {
33
34void traceAndThrowDecode(const char* type) {
35 auto te = TraceEvent(SevWarnAlways, type);
36 te.suppressFor(10);
37 if (auto err = ::ERR_get_error()) {
38 char buf[256]{
39 0,
40 };
41 ::ERR_error_string_n(err, buf, sizeof(buf));
42 te.detail("OpenSSLError", static_cast<const char*>(buf));
43 }
44 throw pkey_decode_error();
45}
46
47void traceAndThrowEncode(const char* type) {
48 auto te = TraceEvent(SevWarnAlways, type);

Callers 2

PublicKeyMethod · 0.85
PrivateKeyMethod · 0.85

Calls 2

TraceEventClass · 0.85
detailMethod · 0.80

Tested by

no test coverage detected