url: check sasl additional parameters for connection reuse.

Also move static function safecmp() as non-static Curl_safecmp() since
its purpose is needed at several places.

Bug: https://curl.se/docs/CVE-2022-22576.html

CVE-2022-22576

Closes #8746
This commit is contained in:
Patrick Monnerat 2022-04-25 11:44:05 +02:00 committed by Daniel Stenberg
parent ff2f3e8367
commit 852aa5ad35
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 31 additions and 16 deletions

View file

@ -49,4 +49,6 @@ char Curl_raw_toupper(char in);
void Curl_strntoupper(char *dest, const char *src, size_t n);
void Curl_strntolower(char *dest, const char *src, size_t n);
bool Curl_safecmp(char *a, char *b);
#endif /* HEADER_CURL_STRCASE_H */