]> granicus.if.org Git - p11-kit/commit
uri: Make vendor query attribute handling reliable
authorDaiki Ueno <dueno@redhat.com>
Tue, 8 Aug 2017 12:52:41 +0000 (14:52 +0200)
committerDaiki Ueno <ueno@gnu.org>
Tue, 8 Aug 2017 14:04:40 +0000 (16:04 +0200)
commit992b6000459b9eb5159cb6826b40d7cdb6c4c412
tree4e7a3cfe3c447ff12609b6dea393f6785a5f3581
parentc29f51ad8ef97a1fae356dd7660e41d81cde0d09
uri: Make vendor query attribute handling reliable

Previously we used p11_dict to keep track of vendor query attributes.
This had a couple of limitations: duplicate attributes are not allowed
while they are actually allowed in RFC 7512, and the order of
attributes is unpredictable.

This patch switches to using an array instead of p11_dict and ensures
that the attributes are sorted in alphabetical order.

Fixes #88.
p11-kit/uri.c