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 🌈


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