Skip to content

Commit

Permalink
Merge pull request paullouisageneau#969 from paullouisageneau/sdp-upp…
Browse files Browse the repository at this point in the history
…ercase-hash-function

Accept both "sha-265" and "SHA-256" as hash function names in SDP
  • Loading branch information
paullouisageneau authored Sep 7, 2023
2 parents 78adb1e + 01528bd commit 48a260c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/description.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 48a260c

Please sign in to comment.