Use the stronger certificate fingerprint.

If a cert has a SHA256 use that one and only use SHA1 as fallback.

Closes: https://github.com/profanity-im/profanity/issues/2068
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
Steffen Jaeckel
2025-11-04 17:46:48 +01:00
parent 0acea8d0d2
commit a07cff8a99
6 changed files with 31 additions and 22 deletions

View File

@@ -41,6 +41,7 @@
typedef struct tls_cert_t
{
int version;
const char* fingerprint;
char* serialnumber;
char* subjectname;
char* subject_country;