SYNOPSIS
#include <nng/nng.h>
int nng_tls_config_pass(nni_tls_config *cfg, const char *password)
DESCRIPTION
The nng_tls_config_pass() function configures password used to decrypt
a private key previously configured on the configuration cfg with
nng_tls_config_key(3).
The password is an ASCIIZ string.
This function’s affect is limited to decryption only the most recent private key that was configured.
RETURN VALUES
This function returns 0 on success, and non-zero otherwise.
ERRORS
NNG_ENOMEM-
Insufficient memory is available.
NNG_EBUSY-
The configuration cfg is already in use, and cannot be modified.
NNG_EINVAL-
No private key was configured.
COPYRIGHT
Copyright 2018 Staysail Systems, Inc.
Copyright 2018 Capitar IT Group BV
This document is supplied under the terms of the MIT License.