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