Prepare to use SHA256 fingerprints of certs.
First let's make clear we're currently using SHA1 & untangle the tlscerts API from fingerprint specific details. Related-to: https://github.com/profanity-im/profanity/issues/2068 Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
@@ -180,7 +180,7 @@ cons_show_tlscert_summary(const TLSCertificate* cert)
|
||||
|
||||
cons_show("Subject : %s", cert->subject_commonname);
|
||||
cons_show("Issuer : %s", cert->issuer_commonname);
|
||||
cons_show("Fingerprint : %s", cert->fingerprint);
|
||||
cons_show("Fingerprint : %s", cert->fingerprint_sha1);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -260,7 +260,7 @@ cons_show_tlscert(const TLSCertificate* cert)
|
||||
cons_show(" Start : %s", cert->notbefore);
|
||||
cons_show(" End : %s", cert->notafter);
|
||||
|
||||
cons_show(" Fingerprint : %s", cert->fingerprint);
|
||||
cons_show(" Fingerprint : %s", cert->fingerprint_sha1);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user