1ARCHIVE_WRITE_SET_PAS... BSD Library Functions Manual ARCHIVE_WRITE_SET_PAS...
2
4 archive_write_set_passphrase, archive_write_set_passphrase_callback —
5 functions for writing encrypted archives
6
8 Streaming Archive Library (libarchive, -larchive)
9
11 #include <archive.h>
12
13 int
14 archive_write_set_passphrase(struct archive *, const char *passphrase);
15
16 int
17 archive_write_set_passphrase_callback(struct archive *,
18 void *client_data, archive_passphrase_callback *);
19
21 archive_write_set_passphrase()
22 Set a passphrase for writing an encryption archive. If
23 passphrase is NULL or empty, this function will do nothing and
24 ARCHIVE_FAILED will be returned. Otherwise, ARCHIVE_OK will be
25 returned.
26
27 archive_write_set_passphrase_callback()
28 Register callback function that will be invoked to get a
29 passphrase for encrption if the passphrase was not set by the
30 archive_write_set_passphrase() function.
31
33 tar(1), libarchive(3), archive_write(3), archive_write_set_options(3)
34
35BSD September 21, 2014 BSD