From: Daiki Ueno Date: Mon, 13 Feb 2017 15:32:01 +0000 (+0100) Subject: trust: Revert to the original 'extract' behavior X-Git-Tag: 0.23.4~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ea08989cecee217befd3b964b5a4f0d584e2a29;p=p11-kit trust: Revert to the original 'extract' behavior 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 --- diff --git a/trust/extract.c b/trust/extract.c index 05273f9..3433151 100644 --- a/trust/extract.c +++ b/trust/extract.c @@ -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);