summaryrefslogtreecommitdiff
path: root/docs/nng_tls_config_auth_mode.adoc
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-02-02 15:43:43 -0800
committerGarrett D'Amore <garrett@damore.org>2018-02-02 17:02:40 -0800
commitc2deb4a479be750b054372e83154f4b3b051c95a (patch)
treea6909733d8d56fcfa192b16c0c05b07e15e1ad7f /docs/nng_tls_config_auth_mode.adoc
parent4f1029f8f4c582d1f04632b0c50f4c374284fa16 (diff)
downloadnng-c2deb4a479be750b054372e83154f4b3b051c95a.tar.gz
nng-c2deb4a479be750b054372e83154f4b3b051c95a.tar.bz2
nng-c2deb4a479be750b054372e83154f4b3b051c95a.zip
Update markup with simpler copyright and new-style asciidoctor.
Diffstat (limited to 'docs/nng_tls_config_auth_mode.adoc')
-rw-r--r--docs/nng_tls_config_auth_mode.adoc46
1 files changed, 16 insertions, 30 deletions
diff --git a/docs/nng_tls_config_auth_mode.adoc b/docs/nng_tls_config_auth_mode.adoc
index e07a6a41..1895abba 100644
--- a/docs/nng_tls_config_auth_mode.adoc
+++ b/docs/nng_tls_config_auth_mode.adoc
@@ -1,24 +1,19 @@
-nng_tls_config_auth_mode(3)
-===========================
+= nng_tls_config_auth_mode(3)
:doctype: manpage
:manmanual: nng
:mansource: nng
:manvolnum: 3
-:icons: font
-:source-highlighter: pygments
-: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 \
- be found online at https://opensource.org/licenses/MIT.
-
-NAME
-----
+:copyright: Copyright 2018 mailto:info@staysail.tech[Staysail Systems, Inc.] + \
+ Copyright 2018 mailto:info@capitar.com[Capitar IT Group BV] + \
+ {blank} + \
+ This document is supplied under the terms of the \
+ https://opensource.org/licenses/MIT[MIT License].
+
+== NAME
+
nng_tls_config_auth_mode - configure authentication mode
-SYNOPSIS
---------
+== SYNOPSIS
[source, c]
-----------
@@ -33,8 +28,7 @@ typedef enum nng_tls_auth_mode {
int nng_tls_config_auth_mode(nni_tls_config *cfg, nng_tls_auth_mode mode);
-----------
-DESCRIPTION
------------
+== DESCRIPTION
The `nng_tls_config_auth_mode()` function configures the authentication mode
to be used for TLS sessions using this configuration object.
@@ -55,21 +49,18 @@ A check is made to ensure that the peer has presented a valid certificate
used for the session. If the peer's certificate is invalid or missing, then
the session is refused. This is the default for clients.
-RETURN VALUES
--------------
+== RETURN VALUES
This function returns 0 on success, and non-zero otherwise.
-ERRORS
-------
+== ERRORS
`NNG_ENOMEM`:: Insufficient memory is available.
`NNG_EINVAL`:: An invalid 'mode' was specified.
`NNG_EBUSY`:: The configuration 'cfg' is already in use, and cannot be modified.
-SEE ALSO
---------
+== SEE ALSO
<<nng_strerror#,nng_strerror(3)>>,
<<nng_tls_config_alloc#,nng_tls_config_alloc(3)>>,
@@ -79,11 +70,6 @@ SEE ALSO
<<nng#,nng(7)>>
-COPYRIGHT
----------
-
-Copyright 2018 mailto:info@staysail.tech[Staysail Systems, Inc.] +
-Copyright 2018 mailto:info@capitar.com[Capitar IT Group BV]
+== COPYRIGHT
-This document is supplied under the terms of the
-https://opensource.org/licenses/MIT[MIT License].
+{copyright}