1 <!-- Creator : groff version 1.22.4 -->
2 <!-- CreationDate: Mon Dec 30 01:41:22 2019 -->
3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
4 "http://www.w3.org/TR/html4/loose.dtd">
7 <meta name="generator" content="groff -Thtml, see www.gnu.org">
8 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
9 <meta name="Content-Style" content="text/css">
10 <style type="text/css">
11 p { margin-top: 0; margin-bottom: 0; vertical-align: top }
12 pre { margin-top: 0; margin-bottom: 0; vertical-align: top }
13 table { margin-top: 0; margin-bottom: 0; vertical-align: top }
14 h1 { text-align: center }
23 <p>ARCHIVE_READ_ADD_PASS... BSD Library Functions Manual
24 ARCHIVE_READ_ADD_PASS...</p>
26 <p style="margin-top: 1em"><b>NAME</b></p>
29 <p style="margin-left:6%;"><b>archive_read_add_passphrase</b>,
30 <b>archive_read_set_passphrase_callback</b> —
31 functions for reading encrypted archives</p>
33 <p style="margin-top: 1em"><b>LIBRARY</b></p>
35 <p style="margin-left:6%;">Streaming Archive Library
36 (libarchive, -larchive)</p>
38 <p style="margin-top: 1em"><b>SYNOPSIS</b></p>
40 <p style="margin-left:6%;"><b>#include
41 <archive.h></b></p>
43 <p style="margin-left:6%; margin-top: 1em"><i>int</i></p>
46 <p><b>archive_read_add_passphrase</b>(<i>struct archive *</i>,
47 <i>const char *passphrase</i>);</p>
49 <p style="margin-left:6%; margin-top: 1em"><i>int</i></p>
52 <p><b>archive_read_set_passphrase_callback</b>(<i>struct archive *</i>,
53 <i>void *client_data</i>,
54 <i>archive_passphrase_callback *</i>);</p>
56 <p style="margin-top: 1em"><b>DESCRIPTION <br>
57 archive_read_add_passphrase</b>()</p>
59 <p style="margin-left:17%;">Register passphrases for
60 reading an encryption archive. If <i>passphrase</i> is NULL
61 or empty, this function will do nothing and
62 <b>ARCHIVE_FAILED</b> will be returned. Otherwise,
63 <b>ARCHIVE_OK</b> will be returned.</p>
66 <p style="margin-top: 1em"><b>archive_read_set_passphrase_callback</b>()</p>
68 <p style="margin-left:17%;">Register a callback function
69 that will be invoked to get a passphrase for decryption
70 after trying all the passphrases registered by the
71 <b>archive_read_add_passphrase</b>() function failed.</p>
73 <p style="margin-top: 1em"><b>SEE ALSO</b></p>
75 <p style="margin-left:6%;">tar(1), archive_read(3),
76 archive_read_set_options(3), libarchive(3)</p>
78 <p style="margin-left:6%; margin-top: 1em">BSD
79 September 14, 2014 BSD</p>