File: upscli_ssl.txt

package info (click to toggle)
nut 2.8.4%2Breally-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,720 kB
  • sloc: ansic: 132,030; sh: 17,256; cpp: 12,566; makefile: 5,646; python: 1,114; perl: 856; xml: 47
file content (37 lines) | stat: -rw-r--r-- 766 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
UPSCLI_SSL(3)
=============

NAME
----

upscli_ssl - Check SSL mode for current connection

SYNOPSIS
--------

------
	#include <upsclient.h>

	int upscli_ssl(UPSCONN_t *ups);
------

DESCRIPTION
-----------

The *upscli_ssl*() function takes the pointer 'ups' to a
`UPSCONN_t` state structure.  It only returns '1' if SSL support has been
compiled into the linkman:upsclient[3] library, and if it was successfully
enabled for this connection.

RETURN VALUE
------------

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

SEE ALSO
--------

linkman:upscli_fd[3], linkman:upscli_get[3],
linkman:upscli_readline[3], linkman:upscli_sendline[3],
linkman:upscli_strerror[3], linkman:upscli_upserror[3]