Use uppercase hex for DTLS fingerprints
This commit is contained in:
parent
460c520db7
commit
51dc414631
|
@ -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(":");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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(":");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue