aboutsummaryrefslogtreecommitdiff
path: root/docs/nng_tls_config_alloc.adoc
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-01-01 18:11:17 -0800
committerGarrett D'Amore <garrett@damore.org>2018-01-01 18:12:39 -0800
commit7e83c78ad2c98a7c32a1b9557deaa13723e75b02 (patch)
tree878f7c8036c1969b41a22198146617cc1a78ddbd /docs/nng_tls_config_alloc.adoc
parent7df0165712bb6ca623830ac55c548696c83e8647 (diff)
downloadnng-7e83c78ad2c98a7c32a1b9557deaa13723e75b02.tar.gz
nng-7e83c78ad2c98a7c32a1b9557deaa13723e75b02.tar.bz2
nng-7e83c78ad2c98a7c32a1b9557deaa13723e75b02.zip
Add TLS configuration manipulation documentation.
While here, also fixup the markup on many of the pages, to use commas in SEE ALSO, avoid adding the .adoc extension to cross-references, and correct the link to the MIT license text.
Diffstat (limited to 'docs/nng_tls_config_alloc.adoc')
-rw-r--r--docs/nng_tls_config_alloc.adoc37
1 files changed, 20 insertions, 17 deletions
diff --git a/docs/nng_tls_config_alloc.adoc b/docs/nng_tls_config_alloc.adoc
index 4b41258f..21b4755f 100644
--- a/docs/nng_tls_config_alloc.adoc
+++ b/docs/nng_tls_config_alloc.adoc
@@ -6,7 +6,8 @@ nng_tls_config_alloc(3)
:manvolnum: 3
:icons: font
:source-highlighter: pygments
-:copyright: Copyright 2017 Staysail Systems, Inc. <info@staysail.tech> \
+:copyright: Copyright 2018 Staysail Systems, Inc. <info@staysail.tech> \
+ Copyright 2018 Capitar IT Group BV <info@capitar.com> \
This software is supplied under the terms of the MIT License, a \
copy of which should be located in the distribution where this \
file was obtained (LICENSE.txt). A copy of the license may also \
@@ -35,12 +36,13 @@ DESCRIPTION
-----------
The `nng_tls_config_alloc()` function creates a newly initialized
-TLS (Transport Layer Security, see
-https://tools.ietf.org/html/rfc5246[RFC 5246])
-configuration object.
+https://tools.ietf.org/html/rfc5246[Transport Layer Security])
+configuration object, and stores a pointer to it in the value pointed
+to by 'cfgp'.
This object is initialized for use when acting as either a
-client (`NNG_TLS_MODE_CLIENT`) or as a server (`NNG_TLS_MODE_SERVER`).
+client (`NNG_TLS_MODE_CLIENT`) or as a server (`NNG_TLS_MODE_SERVER`),
+depending on the value of 'mode'.
A TLS object can be further modified by functions that set the security
keys used, peeer certificates, protocol policies, and so forth.
@@ -64,28 +66,29 @@ ERRORS
------
`NNG_ENOMEM`:: Insufficient memory is available to allocate the object.
+`NNG_EINVAL`:: An invalid 'mode' was specified.
SEE ALSO
--------
-<<nng_setopt#,nng_setopt(3)>>
-<<nng_strerror#,nng_strerror(3)>>
-<<nng_tls_config_auth_mode#,nng_tls_config_auth_mode(3)>>
-<<nng_tls_config_ca_cert#,nng_tls_config_ca_cert(3)>>
-<<nng_tls_config_cert#,nng_tls_config_cert(3)>>
-<<nng_tls_config_crl#,nng_tls_config_crl(3)>>
-<<nng_tls_config_free#,nng_tls_config_free(3)>>
-<<nng_tls_config_key#,nng_tls_config_key(3)>>
-<<nng_tls_config_pass#,nng_tls_config_pass(3)>>
-<<nng_tls_config_server_name#,nng_tls_config_server_name(3)>>
+<<nng_strerror#,nng_strerror(3)>>,
+<<nng_tls_config_auth_mode#,nng_tls_config_auth_mode(3)>>,
+<<nng_tls_config_ca_cert#,nng_tls_config_ca_cert(3)>>,
+<<nng_tls_config_cert#,nng_tls_config_cert(3)>>,
+<<nng_tls_config_crl#,nng_tls_config_crl(3)>>,
+<<nng_tls_config_free#,nng_tls_config_free(3)>>,
+<<nng_tls_config_key#,nng_tls_config_key(3)>>,
+<<nng_tls_config_pass#,nng_tls_config_pass(3)>>,
+<<nng_tls_config_server_name#,nng_tls_config_server_name(3)>>,
<<nng#,nng(7)>>
COPYRIGHT
---------
-Copyright 2017 mailto:info@staysail.tech[Staysail Systems, Inc.]
+Copyright 2018 mailto:info@staysail.tech[Staysail Systems, Inc.] +
+Copyright 2018 mailto:info@capitar.com[Capitar IT Group BV]
This document is supplied under the terms of the
-https://opensource.org/licenses/LICENSE.txt[MIT License].
+https://opensource.org/licenses/MIT[MIT License].