mirror of
https://github.com/TakeV-Lambda/dino.git
synced 2024-11-21 22:44:23 +00:00
Use uppercase hex for DTLS fingerprints
This commit is contained in:
parent
460c520db7
commit
51dc414631
2 changed files with 2 additions and 2 deletions
|
@ -338,7 +338,7 @@ private uint8[] get_fingerprint(X509.Certificate certificate, DigestAlgorithm di
|
|||
private string format_fingerprint(uint8[] fingerprint) {
|
||||
var sb = new StringBuilder();
|
||||
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) {
|
||||
sb.append(":");
|
||||
}
|
||||
|
|
|
@ -151,7 +151,7 @@ public abstract class Xmpp.Xep.JingleIceUdp.IceUdpTransportParameters : Jingle.T
|
|||
private string format_fingerprint(uint8[] fingerprint) {
|
||||
var sb = new StringBuilder();
|
||||
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) {
|
||||
sb.append(":");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue