NAME
upscli_add_host_cert - Register a security rule for an host.
SYNOPSIS
Note
|
Two NUT websites
This version of the page reflects NUT release v2.8.1 with codebase commited 4ba352d8f at 2023-10-31T21:46:20+01:00 Options, features and capabilities in current development (and future releases) are detailed on the main site and may differ from ones described here. |
#include <upsclient.h>
void upscli_add_host_cert(const char* hostname, const char* certname,
int certverify, int forcessl);
DESCRIPTION
The upscli_add_host_cert() function register a security rule associated to the hostname. All connections to this host use this rule.
The rule is composed of the certificate name certname 'expected for the host, 'certverify if the certificate must be validated for the host and forcessl if a secured connection must be used to connect to the host.
Note: This call only functions if upsclient has been compiled with NSS support. If instead it was compiled with OpenSSL support, this function contains an empty definition and will take no action when called.
RETURN VALUE
upscli_add_host_cert() returns no value.