Files
Sergio Ammirata e21f1e644c fix(url): parse ?srp-compat= as 0|1, not "legacy"
The original librist convention for URL parameters that select from a
small fixed enum is numeric values (aes-type, congestion-control,
timing-mode, reflector, and as of the previous commit profile).
?srp-compat= was added in v0.2.18-rc1 with a symbolic alias ("legacy")
and a permissive parser that mapped any unrecognised value, including
a typo of the alias, to 0 (compliant).  Tightened to numeric-only
before v0.2.18 final.

The parser now accepts only 0 or 1.  Out-of-range, non-numeric, and
trailing-garbage values cause rist_parse_address2 to return non-zero
with stderr output.

Tests
-----
- test/rist/unit/test_url_srp_compat_parse.c (new): two accepted forms
  plus six rejected forms.
- meson test --suite unit:        6/6 OK (was 5/5).
- meson test --suite url-profile: 4/4 OK.
- meson test (full):              49 OK, 11 Expected Fail, 0 unexpected.
2026-06-05 20:35:00 -04:00
..