]> granicus.if.org Git - p11-kit/commitdiff
trust: Revert to the original 'extract' behavior
authorDaiki Ueno <dueno@redhat.com>
Mon, 13 Feb 2017 15:32:01 +0000 (16:32 +0100)
committerDaiki Ueno <ueno@gnu.org>
Tue, 14 Feb 2017 08:49:41 +0000 (09:49 +0100)
Since commit f4384a40, due to a missing ex->flags setting, the 'trust
extract' command didn't retrieve correlation between related objects and
that was causing assertion failure when writing PEM files.

https://bugs.freedesktop.org/show_bug.cgi?id=99795

trust/extract.c

index 05273f92fc81a3cc504c34a001b08fd2c3f53c48..3433151868ac5c9ef73f69f194633d4f3a799e89 100644 (file)
@@ -285,6 +285,7 @@ p11_trust_extract (int argc,
        if (!p11_enumerate_ready (&ex, "ca-anchors"))
                exit (1);
 
+       ex.flags |= P11_ENUMERATE_CORRELATE;
        ret = (format) (&ex, argv[0]) ? 0 : 1;
 
        p11_enumerate_cleanup (&ex);