Thomas Klausner | 99af5ff | 2020-04-22 16:50:36 +0200 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <!-- This is an automatically generated file. Do not edit. |
| 4 | zip_encryption_method_supported.mdoc -- return if encryption method is supported |
| 5 | Copyright (C) 2020 Dieter Baron and Thomas Klausner |
| 6 | |
| 7 | This file is part of libzip, a library to manipulate ZIP files. |
| 8 | The authors can be contacted at <libzip@nih.at> |
| 9 | |
| 10 | Redistribution and use in source and binary forms, with or without |
| 11 | modification, are permitted provided that the following conditions |
| 12 | are met: |
| 13 | 1. Redistributions of source code must retain the above copyright |
| 14 | notice, this list of conditions and the following disclaimer. |
| 15 | 2. Redistributions in binary form must reproduce the above copyright |
| 16 | notice, this list of conditions and the following disclaimer in |
| 17 | the documentation and/or other materials provided with the |
| 18 | distribution. |
| 19 | 3. The names of the authors may not be used to endorse or promote |
| 20 | products derived from this software without specific prior |
| 21 | written permission. |
| 22 | |
| 23 | THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS |
| 24 | OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 25 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 26 | ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY |
| 27 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 28 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE |
| 29 | GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 30 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER |
| 31 | IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| 32 | OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN |
| 33 | IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 34 | --> |
| 35 | <head> |
| 36 | <meta charset="utf-8"/> |
| 37 | <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/> |
| 38 | <title>ZIP_ENCRYPTION_METHOD_SUPPORTED(3)</title> |
| 39 | </head> |
| 40 | <body> |
| 41 | <table class="head"> |
| 42 | <tr> |
| 43 | <td class="head-ltitle">ZIP_ENCRYPTION_METHOD_SUPPORTED(3)</td> |
| 44 | <td class="head-vol">Library Functions Manual</td> |
| 45 | <td class="head-rtitle">ZIP_ENCRYPTION_METHOD_SUPPORTED(3)</td> |
| 46 | </tr> |
| 47 | </table> |
| 48 | <div class="manual-text"> |
| 49 | <section class="Sh"> |
| 50 | <h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1> |
| 51 | <code class="Nm">zip_encryption_method_supported</code> — |
| 52 | <div class="Nd">return if an encryption method is supported</div> |
| 53 | </section> |
| 54 | <section class="Sh"> |
| 55 | <h1 class="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1> |
| 56 | libzip (-lzip) |
| 57 | </section> |
| 58 | <section class="Sh"> |
| 59 | <h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1> |
| 60 | <code class="In">#include <<a class="In">zip.h</a>></code> |
| 61 | <p class="Pp"><var class="Ft">int</var> |
| 62 | <br/> |
| 63 | <code class="Fn">zip_encryption_method_supported</code>(<var class="Fa" style="white-space: nowrap;">zip_int16_t |
| 64 | method</var>, <var class="Fa" style="white-space: nowrap;">int |
| 65 | encrypt</var>);</p> |
| 66 | </section> |
| 67 | <section class="Sh"> |
| 68 | <h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1> |
| 69 | The <code class="Fn">zip_encryption_method_supported</code>() returns if the |
| 70 | encryption method <var class="Ar">method</var> is supported for encryption (if |
| 71 | <var class="Ar">encrypt</var> is zero) or decryption (otherwise). |
| 72 | </section> |
| 73 | <section class="Sh"> |
| 74 | <h1 class="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN |
| 75 | VALUES</a></h1> |
| 76 | Returns 1 if the method is supported, 0 otherwise. |
| 77 | </section> |
| 78 | <section class="Sh"> |
| 79 | <h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE |
| 80 | ALSO</a></h1> |
| 81 | <a class="Xr" href="libzip.html">libzip(3)</a>, |
| 82 | <a class="Xr" href="zip_compression_method_supported.html">zip_compression_method_supported(3)</a>, |
| 83 | <a class="Xr" href="zip_file_set_encryption.html">zip_file_set_encryption(3)</a> |
| 84 | </section> |
| 85 | <section class="Sh"> |
| 86 | <h1 class="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1> |
| 87 | <code class="Fn">zip_encryption_method_supported</code>() was added in libzip |
| 88 | 1.7.0. |
| 89 | </section> |
| 90 | <section class="Sh"> |
| 91 | <h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1> |
| 92 | <span class="An">Dieter Baron</span> |
| 93 | <<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>> and |
| 94 | <span class="An">Thomas Klausner</span> |
| 95 | <<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>> |
| 96 | </section> |
| 97 | </div> |
| 98 | <table class="foot"> |
| 99 | <tr> |
| 100 | <td class="foot-date">April 2, 2020</td> |
Thomas Klausner | 6aecb02 | 2020-07-11 10:38:46 +0200 | [diff] [blame] | 101 | <td class="foot-os">NiH</td> |
Thomas Klausner | 99af5ff | 2020-04-22 16:50:36 +0200 | [diff] [blame] | 102 | </tr> |
| 103 | </table> |
| 104 | </body> |
| 105 | </html> |