Show current TLS certificate
This commit is contained in:
@@ -188,6 +188,28 @@ cons_show_error(const char *const msg, ...)
|
||||
cons_alert();
|
||||
}
|
||||
|
||||
void
|
||||
cons_show_tlscert(TLSCertificate *cert)
|
||||
{
|
||||
if (!cert) {
|
||||
return;
|
||||
}
|
||||
|
||||
cons_show("Certificate:");
|
||||
if (cert->domain) {
|
||||
cons_show(" Domain : %s", cert->domain);
|
||||
}
|
||||
if (cert->organisation) {
|
||||
cons_show(" Organisation : %s", cert->organisation);
|
||||
}
|
||||
if (cert->email) {
|
||||
cons_show(" Email : %s", cert->email);
|
||||
}
|
||||
cons_show(" Fingerprint : %s", cert->fingerprint);
|
||||
cons_show(" Start : %s", cert->notbefore);
|
||||
cons_show(" End : %s", cert->notafter);
|
||||
}
|
||||
|
||||
void
|
||||
cons_show_typing(const char *const barejid)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user