From 01528bd72d08eeab9df530e306080844cb71e583 Mon Sep 17 00:00:00 2001 From: Paul-Louis Ageneau Date: Thu, 7 Sep 2023 12:14:11 +0200 Subject: [PATCH] Accept both "sha-265" and "SHA-256" as hash function names in SDP --- src/description.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/description.cpp b/src/description.cpp index 7042f8941..f153e6f0e 100644 --- a/src/description.cpp +++ b/src/description.cpp @@ -120,7 +120,7 @@ Description::Description(const string &sdp, Type type, Role role) mRole = Role::ActPass; } else if (key == "fingerprint") { - if (match_prefix(value, "sha-256 ")) { + if (match_prefix(value, "sha-256 ") || match_prefix(value, "SHA-256 ")) { string fingerprint{value.substr(8)}; trim_begin(fingerprint); setFingerprint(std::move(fingerprint));