mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-19 14:46:20 +00:00
Show summary of trusted certificates, add /tls cert <fingerprint>
fixes #676
This commit is contained in:
@@ -188,6 +188,18 @@ cons_show_error(const char *const msg, ...)
|
||||
cons_alert();
|
||||
}
|
||||
|
||||
void
|
||||
cons_show_tlscert_summary(TLSCertificate *cert)
|
||||
{
|
||||
if (!cert) {
|
||||
return;
|
||||
}
|
||||
|
||||
cons_show("Subject : %s", cert->subject_commonname);
|
||||
cons_show("Issuer : %s", cert->issuer_commonname);
|
||||
cons_show("Fingerprint : %s", cert->fingerprint);
|
||||
}
|
||||
|
||||
void
|
||||
cons_show_tlscert(TLSCertificate *cert)
|
||||
{
|
||||
|
||||
@@ -293,6 +293,7 @@ void cons_show_contact_online(PContact contact, Resource *resource, GDateTime *l
|
||||
void cons_show_contact_offline(PContact contact, char *resource, char *status);
|
||||
void cons_theme_colours(void);
|
||||
void cons_show_tlscert(TLSCertificate *cert);
|
||||
void cons_show_tlscert_summary(TLSCertificate *cert);
|
||||
|
||||
// title bar
|
||||
void title_bar_set_presence(contact_presence_t presence);
|
||||
|
||||
Reference in New Issue
Block a user