mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1147919 - Part 2: Lowercase fingerprint alg before comparing. r=drno
This commit is contained in:
parent
0484bd79e4
commit
ff8b608e91
@ -8,6 +8,7 @@
|
||||
#define _SDPATTRIBUTE_H_
|
||||
|
||||
#include <algorithm>
|
||||
#include <cctype>
|
||||
#include <vector>
|
||||
#include <ostream>
|
||||
#include <sstream>
|
||||
@ -307,10 +308,15 @@ public:
|
||||
// For use by application programmers. Enforces that it's a known and
|
||||
// non-crazy algorithm.
|
||||
void
|
||||
PushEntry(const std::string& algorithm_str,
|
||||
PushEntry(std::string algorithm_str,
|
||||
const std::vector<uint8_t>& fingerprint,
|
||||
bool enforcePlausible = true)
|
||||
{
|
||||
std::transform(algorithm_str.begin(),
|
||||
algorithm_str.end(),
|
||||
algorithm_str.begin(),
|
||||
::tolower);
|
||||
|
||||
SdpFingerprintAttributeList::HashAlgorithm algorithm =
|
||||
SdpFingerprintAttributeList::kUnknownAlgorithm;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user