mirror of
https://github.com/znc/znc.git
synced 2026-06-12 09:45:00 +02:00
Fix calculation of SSL fingerprints
This commit is contained in:
+1
-1
@@ -125,7 +125,7 @@ CString CZNCSock::GetSSLPeerFingerprint() const {
|
||||
}
|
||||
CString sResult;
|
||||
sResult.reserve(3*256/8);
|
||||
for (char c : buf) {
|
||||
for (unsigned char c : buf) {
|
||||
char b[3];
|
||||
snprintf(b, 3, "%02x", c);
|
||||
sResult += b;
|
||||
|
||||
Reference in New Issue
Block a user