diff options
author | Michael Brown | 2016-01-21 18:50:34 +0100 |
---|---|---|
committer | Michael Brown | 2016-01-21 18:50:34 +0100 |
commit | 42c2a6aab7727e7359600515471f463c65315ff0 (patch) | |
tree | b7f0775c7e32a6f596c0d6534a5b380ce20b29df /src/tests | |
parent | [uri] Avoid potentially large stack allocation (diff) | |
download | ipxe-42c2a6aab7727e7359600515471f463c65315ff0.tar.gz ipxe-42c2a6aab7727e7359600515471f463c65315ff0.tar.xz ipxe-42c2a6aab7727e7359600515471f463c65315ff0.zip |
[ocsp] Avoid including a double path separator in request URI
The OCSP responder URI included within an X.509 certificate may or may
not include a trailing slash. We currently rely on the fact that
format_uri() incorrectly inserts an initial slash, which we include
unconditionally within the OCSP request URI.
Switch to using uri_encode() directly, and insert a slash only if the
X.509 certificate's OCSP responder URI does not already include a
trailing slash.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/tests')
0 files changed, 0 insertions, 0 deletions