1UPSCLI_ADD_HOST_CERT(3) NUT Manual UPSCLI_ADD_HOST_CERT(3)
2
3
4
6 upscli_add_host_cert - Register a security rule for an host.
7
9 #include <upsclient.h>
10
11 void upscli_add_host_cert(const char* hostname, const char* certname,
12 int certverify, int forcessl);
13
15 The upscli_add_host_cert() function register a security rule associated
16 to the hostname. All connections to this host use this rule.
17
18 The rule is composed of the certificate name certname 'expected for the
19 host, 'certverify if the certificate must be validated for the host and
20 forcessl if a secured connection must be used to connect to the host.
21
22 Note: This call only functions if upsclient has been compiled with NSS
23 support. If instead it was compiled with OpenSSL support, this function
24 contains an empty definition and will take no action when called.
25
27 upscli_add_host_cert() returns no value.
28
30 upscli_init(3), upscli_connect(3), upscli_ssl(3), upscli_strerror(3),
31 upscli_upserror(3)
32
33
34
35Network UPS Tools 2.8.0 04/26/2022 UPSCLI_ADD_HOST_CERT(3)