0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-04 17:48:35 +02:00

ircd::net: Debug print certificate subject rather than whole cert.

This commit is contained in:
Jason Volk 2018-01-12 15:32:58 -08:00
parent c1a3fabd5a
commit 4d14adc961

View file

@ -1788,12 +1788,12 @@ noexcept try
if(!valid)
{
thread_local char buf[256];
thread_local char buf[4_KiB];
const critical_assertion ca;
log.warning("verify: %s /CN=%s :%s",
log.warning("verify[%s]: %s :%s",
common_name(opts),
openssl::subject_common_name(buf, cert),
openssl::get_error_string(stctx));
openssl::get_error_string(stctx),
openssl::print_subject(buf, cert));
}
if(!valid) switch(openssl::get_error(stctx))
@ -1850,11 +1850,11 @@ noexcept try
}
{
thread_local char buf[16_KiB];
thread_local char buf[4_KiB];
const critical_assertion ca;
log.debug("verify[%s]: %s",
common_name(opts),
openssl::print(buf, cert));
openssl::print_subject(buf, cert));
}
return true;