logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

upscli_add_host_cert - Register a security rule for an host.

Description

       The upscli_add_host_cert() function registers 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.

Name

       upscli_add_host_cert - Register a security rule for an host.

Return Value

upscli_add_host_cert() returns no value.

See Also

upscli_init(3), upscli_connect(3), upscli_ssl(3), upscli_strerror(3), upscli_upserror(3)

Network UPS Tools 2.8.3                            07/08/2025                            UPSCLI_ADD_HOST_CERT(3)

Synopsis

               #include <upsclient.h>

               void upscli_add_host_cert(
                       const char* hostname,
                       const char* certname,
                       int certverify,
                       int forcessl);

See Also