Browse Source

Accept both "sha-265" and "SHA-256" as hash function names in SDP

Paul-Louis Ageneau 1 year ago
parent
commit
01528bd72d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/description.cpp

+ 1 - 1
src/description.cpp

@@ -120,7 +120,7 @@ Description::Description(const string &sdp, Type type, Role role)
 					mRole = Role::ActPass;
 					mRole = Role::ActPass;
 
 
 			} else if (key == "fingerprint") {
 			} 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)};
 					string fingerprint{value.substr(8)};
 					trim_begin(fingerprint);
 					trim_begin(fingerprint);
 					setFingerprint(std::move(fingerprint));
 					setFingerprint(std::move(fingerprint));