X7ROOT File Manager
Current Path:
/usr/share/doc/neon-0.30.0/html
usr
/
share
/
doc
/
neon-0.30.0
/
html
/
π
..
π
api.html
(2.46 KB)
π
biblio.html
(4.59 KB)
π
compliance.html
(5.09 KB)
π
features.html
(4.59 KB)
π
index.html
(10.81 KB)
π
intro.html
(3.52 KB)
π
ref.html
(7.36 KB)
π
refalloc.html
(4.87 KB)
π
refauth.html
(5.84 KB)
π
refbuf.html
(3.46 KB)
π
refbufapp.html
(4.97 KB)
π
refbufcr.html
(3.24 KB)
π
refbufdest.html
(3.94 KB)
π
refbufutil.html
(3.84 KB)
π
refcert.html
(5.8 KB)
π
refclicert.html
(7.8 KB)
π
refconfig.html
(5.06 KB)
π
referr.html
(4.26 KB)
π
reffeat.html
(4.02 KB)
π
refgetst.html
(3.33 KB)
π
refi18n.html
(3.75 KB)
π
refiaddr.html
(8.93 KB)
π
refneon.html
(12.31 KB)
π
refopts.html
(6.22 KB)
π
refproxy.html
(9.04 KB)
π
refreq.html
(8.51 KB)
π
refreqbody.html
(4.27 KB)
π
refreqflags.html
(4.35 KB)
π
refreqhdr.html
(3.71 KB)
π
refresolve.html
(7.31 KB)
π
refresphdr.html
(5.13 KB)
π
refsess.html
(6.69 KB)
π
refsessflags.html
(5.13 KB)
π
refshave.html
(2.82 KB)
π
refsockinit.html
(6.57 KB)
π
refsslca.html
(3.89 KB)
π
refsslcert2.html
(3.01 KB)
π
refsslcertio.html
(5.48 KB)
π
refssldname.html
(3.78 KB)
π
refsslvfy.html
(7.1 KB)
π
refstatus.html
(4.17 KB)
π
reftok.html
(3.94 KB)
π
refvers.html
(3.3 KB)
π
refxml.html
(2.97 KB)
π
security.html
(6.81 KB)
π
using.html
(4.74 KB)
π
xml.html
(11.03 KB)
Editing: refsslcertio.html
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>ne_ssl_cert_read</title><link rel="stylesheet" type="text/css" href="../manual.css"><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="neon HTTP/WebDAV client library"><link rel="up" href="ref.html" title="neon API reference"><link rel="prev" href="refsslcert2.html" title="ne_ssl_cert_cmp"><link rel="next" href="refssldname.html" title="ne_ssl_dname"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">ne_ssl_cert_read</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="refsslcert2.html">Prev</a>Β </td><th width="60%" align="center">neon API reference</th><td width="20%" align="right">Β <a accesskey="n" href="refssldname.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="refsslcertio"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ne_ssl_cert_read, ne_ssl_cert_write, ne_ssl_cert_import, ne_ssl_cert_export β functions to read or write certificates to and from files or strings</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include <ne_ssl.h></pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">ne_ssl_certificate *<b class="fsfunc">ne_ssl_cert_read</b>(</code></td><td>const char *<var class="pdparam">filename</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">Β </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">ne_ssl_cert_write</b>(</code></td><td>const ne_ssl_certificate *<var class="pdparam">cert</var>, </td></tr><tr><td>Β </td><td>const char *<var class="pdparam">filename</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">Β </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">ne_ssl_certificate *<b class="fsfunc">ne_ssl_cert_import</b>(</code></td><td>const char *<var class="pdparam">data</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">Β </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">char *<b class="fsfunc">ne_ssl_cert_export</b>(</code></td><td>const ne_ssl_certificate *<var class="pdparam">cert</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">Β </div></div></div><div class="refsect1"><a name="idm140368849521520"></a><h2>Description</h2><p>The <code class="function">ne_ssl_cert_write</code> function writes a certificate to a file using the PEM encoding. The <code class="function">ne_ssl_cert_export</code> function returns a base64-encoded <code class="literal">NUL</code>-terminated string representing the certificate. This string is malloc-allocated and should be destroyed using <code class="function">free</code> by the caller.</p><p>The <code class="function">ne_ssl_cert_read</code> function reads a certificate from a PEM-encoded file, and returns a certificate object. The <code class="function">ne_ssl_cert_import</code> function returns a certificate object from a base64-encoded string, <code class="parameter">data</code>, as returned by <code class="function">ne_ssl_cert_export</code>. The certificate object returned by these functions should be destroyed using <a class="xref" href="refsslcert2.html#ne_ssl_cert_free">ne_ssl_cert_free</a> after use.</p></div><div class="refsect1"><a name="idm140368849513952"></a><h2>Return value</h2><p><code class="function">ne_ssl_cert_read</code> returns <code class="literal">NULL</code> if a certificate could not be read from the file. <code class="function">ne_ssl_cert_write</code> returns non-zero if the certificate could not be written to the file. <code class="function">ne_ssl_cert_export</code> always returns a <code class="literal">NUL</code>-terminated string, and never <code class="literal">NULL</code>. <code class="function">ne_ssl_cert_import</code> returns <code class="literal">NULL</code> if the string was not a valid base64-encoded certificate.</p></div><div class="refsect1"><a name="idm140368849507840"></a><h2>Encoding Formats</h2><p>The string produced by <code class="function">ne_ssl_cert_export</code> is the base64 encoding of the DER representation of the certificate. The file written by <code class="function">ne_ssl_cert_write</code> uses the PEM format: this is the base64 encoding of the DER representation with newlines every 64 characters, and start and end marker lines.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="refsslcert2.html">Prev</a>Β </td><td width="20%" align="center"><a accesskey="u" href="ref.html">Up</a></td><td width="40%" align="right">Β <a accesskey="n" href="refssldname.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">ne_ssl_cert_cmpΒ </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">Β ne_ssl_dname</td></tr></table></div></body></html>
Upload File
Create Folder