Commit 72eebc56 authored by Mingtao Yang's avatar Mingtao Yang Committed by Facebook Github Bot

SSLContext: Report error codes in hexadecimal.

Summary: For compatiblity with `openssl errstr`.

Reviewed By: yfeldblum

Differential Revision: D7246053

fbshipit-source-id: dcf77b67ae3b3dd7b6b85e9b73f2d382e59aa7b9
parent 5a500c70
......@@ -680,7 +680,7 @@ std::string SSLContext::getErrors(int errnoCopy) {
}
const char* reason = ERR_reason_error_string(errorCode);
if (reason == nullptr) {
snprintf(message, sizeof(message) - 1, "SSL error # %lu", errorCode);
snprintf(message, sizeof(message) - 1, "SSL error # %08lX", errorCode);
reason = message;
}
errors += reason;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment