summaryrefslogtreecommitdiff
path: root/libarchive/archive_write_private.h
diff options
context:
space:
mode:
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>2014-09-14 17:23:29 +0900
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>2014-09-14 18:44:50 +0900
commit6c222e59f461bf61962c7de318f946147f58d29b (patch)
tree067a0800e807606f2a48101c3c5013461a401a04 /libarchive/archive_write_private.h
parentabdce769f16d60e657b47beb3ec855c5d4325bf5 (diff)
downloadlibarchive-6c222e59f461bf61962c7de318f946147f58d29b.tar.gz
Add new APIs that pass passphrases for reading and writing
encrypted archives.
Diffstat (limited to 'libarchive/archive_write_private.h')
-rw-r--r--libarchive/archive_write_private.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libarchive/archive_write_private.h b/libarchive/archive_write_private.h
index e600d547..a2b5c0f8 100644
--- a/libarchive/archive_write_private.h
+++ b/libarchive/archive_write_private.h
@@ -26,8 +26,10 @@
*/
#ifndef __LIBARCHIVE_BUILD
+#ifndef __LIBARCHIVE_TEST
#error This header is only to be used internally to libarchive.
#endif
+#endif
#ifndef ARCHIVE_WRITE_PRIVATE_H_INCLUDED
#define ARCHIVE_WRITE_PRIVATE_H_INCLUDED
@@ -116,6 +118,12 @@ struct archive_write {
const void *buff, size_t);
int (*format_close)(struct archive_write *);
int (*format_free)(struct archive_write *);
+
+
+ /*
+ * Encryption passphrase.
+ */
+ char *passphrase;
};
/*
@@ -142,4 +150,9 @@ int __archive_write_program_close(struct archive_write_filter *,
struct archive_write_program_data *);
int __archive_write_program_write(struct archive_write_filter *,
struct archive_write_program_data *, const void *, size_t);
+
+/*
+ * Get a encryption passphrase.
+ */
+const char * __archive_write_get_passphrase(struct archive_write *a);
#endif