mirror of
https://github.com/matrix-construct/construct
synced 2025-01-13 16:33:53 +01:00
ircd::net: Debug print certificate subject rather than whole cert.
This commit is contained in:
parent
c1a3fabd5a
commit
4d14adc961
1 changed files with 6 additions and 6 deletions
12
ircd/net.cc
12
ircd/net.cc
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue