From 7fc0ecd1ca7840e71958e62163b27d645c936c25 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 15 Mar 2013 08:23:43 +0100 Subject: extract: --comment option adds comments to PEM bundles * Placed before the certificate, simple one liner * No need to put comments in PEM files extracted into directories, as the file names are already descriptive. https://bugs.freedesktop.org/show_bug.cgi?id=62029 --- tools/extract.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tools/extract.h') diff --git a/tools/extract.h b/tools/extract.h index 32b4e35..dfd3a33 100644 --- a/tools/extract.h +++ b/tools/extract.h @@ -43,6 +43,11 @@ #include "iter.h" #include "pkcs11.h" +enum { + /* These overlap with the flags in save.h, so start higher */ + P11_EXTRACT_COMMENT = 1 << 10, +}; + typedef struct { p11_dict *asn1_defs; p11_dict *limit_to_purposes; @@ -83,6 +88,9 @@ void p11_extract_info_cleanup (p11_extract_info *ex); char * p11_extract_info_filename (p11_extract_info *ex); +char * p11_extract_info_comment (p11_extract_info *ex, + bool first); + typedef bool (* p11_extract_func) (P11KitIter *iter, p11_extract_info *ex); -- cgit v1.1