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

Function traceAndThrowEncode

flow/PKey.cpp:47–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void traceAndThrowEncode(const char* type) {
48 auto te = TraceEvent(SevWarnAlways, type);
49 te.suppressFor(10);
50 if (auto err = ::ERR_get_error()) {
51 char buf[256]{
52 0,
53 };
54 ::ERR_error_string_n(err, buf, sizeof(buf));
55 te.detail("OpenSSLError", static_cast<const char*>(buf));
56 }
57 throw pkey_encode_error();
58}
59
60void traceAndThrowDsa(const char* type) {
61 auto te = TraceEvent(SevWarnAlways, type);

Callers 2

doWritePublicKeyPemFunction · 0.85
writePemMethod · 0.85

Calls 2

TraceEventClass · 0.85
detailMethod · 0.80

Tested by

no test coverage detected