extract: Fix regression in --purpose option
authorStef Walter <stefw@gnome.org>
Fri, 8 Mar 2013 07:32:50 +0000 (08:32 +0100)
committerStef Walter <stefw@gnome.org>
Fri, 8 Mar 2013 13:01:54 +0000 (14:01 +0100)
commit082bc5773abe1c003bf34bbb3bf6a6b5282a212c
tree167fb12b1fb9be112d4ca7ff45f1c9d79ee4a907
parentfc383e025f09af70d3eb52fcd7e03c02733b14b0
extract: Fix regression in --purpose option

The --purpose option would only match certificates that had no
purposes marked on them. Fix it so that it correctly matches
certificates with the given purpose.

https://bugs.freedesktop.org/show_bug.cgi?id=62009
tools/extract-info.c
tools/tests/test-extract.c