File: upscli_ssl.3

package info (click to toggle)
nut 2.4.3-1.1squeeze2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 5,816 kB
  • ctags: 5,658
  • sloc: ansic: 45,735; sh: 11,290; makefile: 668; python: 448; perl: 179
file content (23 lines) | stat: -rw-r--r-- 779 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.TH UPSCLI_SSL 3 "Mon Jan 22 2007" "" "Network UPS Tools (NUT)"
.SH NAME
upscli_ssl \- Check SSL mode for current connection
.SH SYNOPSIS
.nf
.B #include <upsclient.h>
.sp
.BI "int upscli_ssl(UPSCONN *ups);"
.fi
.SH DESCRIPTION
The \fBupscli_ssl()\fP function takes the pointer \fIups\fP to a
UPSCONN state structure.  It only returns 1 if SSL support has been
compiled into the \fBupsclient\fR library, and if it was successfully
enabled for this connection.
.PP
.SH "RETURN VALUE"
The \fBupscli_ssl()\fP function returns 1 if SSL is running, and 0 if
not.  It returns \-1 in the event of an error.
.SH "SEE ALSO"
.BR upscli_fd "(3), "upscli_get "(3), "
.BR upscli_readline "(3), "upscli_sendline "(3), "
.BR upscli_ssl "(3), "
.BR upscli_strerror "(3), "upscli_upserror "(3) "