1UPSCLI_SSL(3)                     NUT Manual                     UPSCLI_SSL(3)
2
3
4

NAME

6       upscli_ssl - Check SSL mode for current connection
7

SYNOPSIS

9       #include <upsclient.h>
10
11       int upscli_ssl(UPSCONN_t *ups);
12

DESCRIPTION

14       The upscli_ssl() function takes the pointer ups to a UPSCONN_t state
15       structure. It only returns 1 if SSL support has been compiled into the
16       upsclient(3) library, and if it was successfully enabled for this
17       connection.
18

RETURN VALUE

20       The upscli_ssl() function returns 1 if SSL is running, and 0 if not. It
21       returns -1 in the event of an error.
22

SEE ALSO

24       upscli_fd(3), upscli_get(3), upscli_readline(3), upscli_sendline(3),
25       upscli_strerror(3), upscli_upserror(3)
26
27
28
29Network UPS Tools 2.7.3.          03/02/2016                     UPSCLI_SSL(3)
Impressum