]> granicus.if.org Git - p11-kit/commit
uri: Remove whitespace early when parsing
authorDaiki Ueno <dueno@redhat.com>
Mon, 8 Aug 2016 08:31:19 +0000 (10:31 +0200)
committerStef Walter <stefw@redhat.com>
Fri, 2 Sep 2016 15:48:35 +0000 (17:48 +0200)
commit63644dcb6ccf52508f41633945fce9c3a8e46d3d
tree768a69a127e3a215f65db9164c441d6692eda9c1
parentd8f90d300eb76e04dec2caba99f78e7f8a99b215
uri: Remove whitespace early when parsing

For every path/query component, p11_kit_uri_parse() allocates a small
buffer to strip whitespace out.  This patch removes any whitespace in
the URI at the entry of the function to simplify the code.

Note that RFC 7512 actually suggests to ignore whitespace at the
extracting phase rather than the parsing phase.

https://bugs.freedesktop.org/show_bug.cgi?id=97245
p11-kit/uri.c