gnutls_url_is_supported(3)

πŸ’– gnutls_url_is_supported(3) πŸ’–

okay bestie, welcome to the gnutls manual, this one's a little guy but it's lowkey iconic. it's the gnutls_url_is_supported API function and we're gonna go through it together, no skimming, promise 🫢


✨ NAME ✨

gnutls_url_is_supported β€” API function

yes that's the whole name section. it's giving "just a girl, standing in front of a URL, asking if it's supported." πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/gnutls.h>

unsigned gnutls_url_is_supported(const char * url);

so you pull in the header, you call the function, you get back an unsigned. that's the whole vibe. periodt.


🌸 ARGUMENTS 🌸

  • const char * url β€” a URI that you want tested. that's it, that's the whole input, she's simple and she knows what she wants πŸŽ€

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea: this function checks whether the url you handed it is supported or not.

and here's the part where it gets spicy β€” depending on the system libraries, GnuTLS may support pkcs11, tpmkey or other URLs. so like, it's not a fixed list, it literally depends on what your system has going on. main character energy is environment-dependent, as always ✨


πŸ”₯ RETURNS πŸ”₯

  • non-zero β†’ the given URL is supported, slay πŸ’–
  • zero β†’ the URL is not known πŸ’€

that's the whole return contract, no cap.


⭐ SINCE ⭐

3.1.0 β€” she's been around a minute, an elder stateswoman fr fr πŸ‘‘


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found something cursed? don't just scream into the group chat, actually tell the maintainers:


Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.

(translation: go off, share it, remix it, just keep the receipt πŸ§ΎπŸ’–)


🌈 SEE ALSO 🌈

The full documentation for gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form, visit:

https://www.gnutls.org/manual/

like, the whole manual manual. this page is just a lil snippet of the bigger picture iykyk πŸ“šβœ¨


and that's the page bestie!! this was gnutls 3.8.13, the gnutls_url_is_supported(3) page, mwah πŸ’‹ stay supported, stay iconic, drink water πŸŒΈπŸ¦‹πŸ’œ

πŸ“¦ where this page comes from