summaryrefslogtreecommitdiff
path: root/tools/extract.h
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-03-15 08:23:43 +0100
committerStef Walter <stefw@gnome.org>2013-03-15 17:34:00 +0100
commit7fc0ecd1ca7840e71958e62163b27d645c936c25 (patch)
tree21721a33b2a3ed88daad4a18cbf5d0d130217e94 /tools/extract.h
parent58e1e3764250fbda96c5ef7244e891a6be04d4cb (diff)
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
Diffstat (limited to 'tools/extract.h')
-rw-r--r--tools/extract.h8
1 files changed, 8 insertions, 0 deletions
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);