UPSCLI_SSL(3)
π UPSCLI_SSL(3) π
okay bestie, welcome to the NUT Manual page for upscli_ssl β it's giving "tiny function, big vibes", let's go π¦
β¨ NAME β¨
upscli_ssl β check the SSL mode on your current connection, fr fr π
πΈ SYNOPSIS πΈ
#include <upsclient.h>
int upscli_ssl(UPSCONN_t *ups);
like, that's the whole thing. one include, one call, no cap π
π DESCRIPTION π
so upscli_ssl() takes that ups pointer you're holding, the one pointing at a UPSCONN_t state structure. and here's the tea: it only returns 1 if SSL support was actually compiled into the upsclient(3) library and it got successfully enabled for this specific connection. both things. no shortcuts. β¨
and starting with NUT v2.8.5, there's a whole new way to snoop β you can call upscli_ssl_caps(3) from your consumer code to query the library about its build circumstances, like whether it supports SSL at all, and which backend(s) it's working with. iconic behavior honestly π
β RETURN VALUE β
1β SSL is running, we're so back π₯0β no SSL, it's not running-1β uh oh, an error happened π
π SEE ALSO π
upscli_ssl_caps(3)upscli_ssl_caps_descr(3)upscli_fd(3)upscli_get(3)upscli_readline(3)upscli_sendline(3)upscli_strerror(3)upscli_upserror(3)
and that's the page, bestie π«Ά this was Network UPS Tools 2.8.5, dated 10/07/2026 β mwah, slay, periodt πππ¦
π¦ where this page comes from
- fedora 43: nut-devel 2.8.5-9.fc43 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 43: nut-devel 2.8.5-9.fc43 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 44: nut-devel 2.8.5-9.fc44 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 44: nut-devel 2.8.5-9.fc44 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms