Use uppercase hex for DTLS fingerprints

This commit is contained in:
Marvin W 2022-02-05 23:55:18 +01:00
parent 460c520db7
commit 51dc414631
No known key found for this signature in database
GPG key ID: 072E9235DB996F2A
2 changed files with 2 additions and 2 deletions

View file

@ -338,7 +338,7 @@ private uint8[] get_fingerprint(X509.Certificate certificate, DigestAlgorithm di
private string format_fingerprint(uint8[] fingerprint) { private string format_fingerprint(uint8[] fingerprint) {
var sb = new StringBuilder(); var sb = new StringBuilder();
for (int i = 0; i < fingerprint.length; i++) { for (int i = 0; i < fingerprint.length; i++) {
sb.append("%02x".printf(fingerprint[i])); sb.append("%02X".printf(fingerprint[i]));
if (i < fingerprint.length - 1) { if (i < fingerprint.length - 1) {
sb.append(":"); sb.append(":");
} }

View file

@ -151,7 +151,7 @@ public abstract class Xmpp.Xep.JingleIceUdp.IceUdpTransportParameters : Jingle.T
private string format_fingerprint(uint8[] fingerprint) { private string format_fingerprint(uint8[] fingerprint) {
var sb = new StringBuilder(); var sb = new StringBuilder();
for (int i = 0; i < fingerprint.length; i++) { for (int i = 0; i < fingerprint.length; i++) {
sb.append("%02x".printf(fingerprint[i])); sb.append("%02X".printf(fingerprint[i]));
if (i < fingerprint.length - 1) { if (i < fingerprint.length - 1) {
sb.append(":"); sb.append(":");
} }