nut-debian/docs/man/upscli_add_host_cert.txt

41 lines
1.1 KiB
Plaintext
Raw Normal View History

2013-11-24 17:00:12 +02:00
UPSCLI_ADD_HOST_CERT(3)
=======================
NAME
----
upscli_add_host_cert - Register a security rule for an host.
SYNOPSIS
--------
#include <upsclient.h>
void upscli_add_host_cert(const char* hostname, const char* certname,
int certverify, int forcessl);
DESCRIPTION
-----------
2022-07-10 10:23:45 +03:00
The *upscli_add_host_cert()* function register a security rule associated
2013-11-24 17:00:12 +02:00
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.
2022-07-10 10:23:45 +03:00
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.
2013-11-24 17:00:12 +02:00
RETURN VALUE
------------
*upscli_add_host_cert()* returns no value.
SEE ALSO
--------
2022-07-10 10:23:45 +03:00
linkman:upscli_init[3], linkman:upscli_connect[3], linkman:upscli_ssl[3],
2013-11-24 17:00:12 +02:00
linkman:upscli_strerror[3], linkman:upscli_upserror[3]