summaryrefslogtreecommitdiff
path: root/trust/extract.h
diff options
context:
space:
mode:
authorAdam Williamson <awilliam@redhat.com>2015-01-13 20:52:20 -0800
committerStef Walter <stefw@redhat.com>2015-01-14 13:36:47 +0100
commita6df1f21e42a3b57448eb6897b976ac8883908eb (patch)
tree78d0379a31c7370907086535c4fe1cc2159991ff /trust/extract.h
parentb65e3148a8ea2d54b17a8be617bbdcb026c49fcd (diff)
downloadp11-kit-a6df1f21e42a3b57448eb6897b976ac8883908eb.tar.gz
trust: Add pem-directory-hash extract format
This allows extraction of a directory of standard PEM files with the OpenSSL hash symlinks; this is a format used by some popular platforms (Debian's /etc/ssl/certs is in this form, and OpenSUSE provides it for compatibility). Initially by: Ludwig Nussel <ludwig.nussel@suse.de> Signed-off-by: Stef Walter <stefw@redhat.com> * Added header, fixed compiler warnings
Diffstat (limited to 'trust/extract.h')
-rw-r--r--trust/extract.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/trust/extract.h b/trust/extract.h
index ca14238..2664ba0 100644
--- a/trust/extract.h
+++ b/trust/extract.h
@@ -39,6 +39,7 @@
#include "enumerate.h"
#include "pkcs11.h"
+#include "save.h"
enum {
/* These overlap with the flags in save.h, so start higher */
@@ -60,6 +61,9 @@ bool p11_extract_pem_bundle (p11_enumerate *ex,
bool p11_extract_pem_directory (p11_enumerate *ex,
const char *destination);
+bool p11_extract_pem_directory_hash (p11_enumerate *ex,
+ const char *destination);
+
bool p11_extract_jks_cacerts (p11_enumerate *ex,
const char *destination);
@@ -75,4 +79,8 @@ int p11_trust_extract (int argc,
int p11_trust_extract_compat (int argc,
char *argv[]);
+/* from extract-openssl.c but also used in extract-pem.c */
+bool p11_openssl_symlink (p11_enumerate *ex,
+ p11_save_dir *dir,
+ const char *filename);
#endif /* P11_EXTRACT_H_ */