http: make the RTSP version check stricter

- make it only accept version 1.0, as that is the version curl supports
- convert the parser to use strparse
- the status code max is now 999, but it does allow != 3 digits

Closes #16435
This commit is contained in:
Daniel Stenberg 2025-02-21 23:48:51 +01:00
parent cfc657a48d
commit 4c5099868e
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 35 additions and 23 deletions

View file

@ -85,6 +85,7 @@ int Curl_str_newline(const char **linep);
/* case insensitive compare that the parsed string matches the
given string. */
int Curl_str_casecompare(struct Curl_str *str, const char *check);
int Curl_str_cmp(struct Curl_str *str, const char *check);
int Curl_str_nudge(struct Curl_str *str, size_t num);