1 .TH "ZIP_SET_DEFAULT_PASSWORD" "3" "January 3, 2011" "NiH" "Library Functions Manual"
5 \fBzip_set_default_password\fR
6 \- set default password for encrypted files in zip
10 \fB#include <zip.h>\fR
15 \fBzip_set_default_password\fR(\fIzip_t\ *archive\fR, \fIconst\ char\ *password\fR);
19 \fBzip_set_default_password\fR()
20 function sets the default password used when accessing encrypted files.
25 the default password is unset.
27 If you prefer a different password for single files, use
28 zip_fopen_encrypted(3)
31 Usually, however, the same password is used for every file in an
34 Upon successful completion 0 is returned.
35 Otherwise, \-1 is returned and the error information in
37 is set to indicate the error.
39 \fBzip_set_default_password\fR()
43 Required memory could not be allocated.
47 zip_fopen_encrypted(3)
49 Dieter Baron <\fIdillo@nih.at\fR>
51 Thomas Klausner <\fItk@giga.or.at\fR>