- <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>ne_ssl_proto_name</title><link rel="stylesheet" type="text/css" href="manual.css"><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><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="refsslca.html" title="ne_ssl_trust_cert"><link rel="next" href="refsslvers.html" title="ne_ssl_set_protovers"></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_proto_name</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="refsslca.html">Prev</a> </td><th width="60%" align="center">neon API reference</th><td width="20%" align="right"> <a accesskey="n" href="refsslvers.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="refsslproto"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ne_ssl_proto_name — SSL/TLS protocol version to name mapping</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">const char *<b class="fsfunc">ne_ssl_proto_name</b>(</code></td><td>enum ne_ssl_protocol <var class="pdparam">proto</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="id4103"></a><h2>Description</h2><p>The <code class="function">ne_ssl_proto_name</code> function returns
- a human-readable name for a SSL/TLS version constant. The set of
- versions currently are as follows:</p><div class="variablelist"><table border="0" class="variablelist"><colgroup><col align="left" valign="top"><col></colgroup><tbody><tr><td><p><span class="term"><code class="constant">NE_SSL_PROTO_UNSPEC</code></span></p></td><td>unspecified/unknown version</td></tr><tr><td><p><span class="term"><code class="constant">NE_SSL_PROTO_SSL3</code></span></p></td><td>SSL v3</td></tr><tr><td><p><span class="term"><code class="constant">NE_SSL_PROTO_TLS_1_0</code></span></p></td><td>TLS v1.0</td></tr><tr><td><p><span class="term"><code class="constant">NE_SSL_PROTO_TLS_1_1</code></span></p></td><td>TLS v1.1</td></tr><tr><td><p><span class="term"><code class="constant">NE_SSL_PROTO_TLS_1_2</code></span></p></td><td>TLS v1.2</td></tr><tr><td><p><span class="term"><code class="constant">NE_SSL_PROTO_TLS_1_3</code></span></p></td><td>TLS v1.3</td></tr></tbody></table></div></div><div class="refsect1"><a name="id4138"></a><h2>Return value</h2><p>The <code class="function">ne_ssl_proto_name</code> function always
- returns a non-<code class="literal">NULL</code> string even if the version constant is not
- valid.</p></div><div class="refsect1"><a name="id4143"></a><h2>History</h2><p><code class="function">ne_ssl_proto_name</code> is available in
- neon 0.34.0 and later.</p></div><div class="refsect1"><a name="id4147"></a><h2>See also</h2><p><a class="xref" href="refsslvers.html#ne_ssl_set_protovers">ne_ssl_set_protovers</a></p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="refsslca.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="refsslvers.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">ne_ssl_trust_cert </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> ne_ssl_set_protovers</td></tr></table></div></body></html>
|