GNUTLS_CERTIFICATE_VERIFICATION_PROFILE_GET_ID(3)

πŸ’– NAME πŸ’–

gnutls_certificate_verification_profile_get_id β€” bestie, it's an API function and it's here to turn your lil profile name string into a real, official profile id ✨ (this one lives in the gnutls manual, iykyk)


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

gnutls_certificate_verification_profiles_t
gnutls_certificate_verification_profile_get_id(const char * name);

πŸŽ€ ARGUMENTS πŸŽ€

  • const char * name β€” literally just a profile name, that's it, that's the whole vibe πŸ¦‹

✨ DESCRIPTION ✨

okay so here's the tea β˜• β€” this function converts a string into a gnutls_certificate_verification_profiles_t value. one string in, one profile id out, slay πŸ’…

and the way it matches? the names are compared in a case insensitive way. so go ahead and type it however your heart desires, bestie, capitals are not the main character here πŸ‘‘


🫢 RETURNS 🫢

it hands you back a gnutls_certificate_verification_profiles_t id of the profile you asked for πŸ’–

and if it can't find it? you get GNUTLS_PROFILE_UNKNOWN β€” no cap, that's the failure signal 😭 so always check before you run off with it.


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? don't be shy, tell the devs:


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. iconic behaviour fr fr, the legal girlies ate πŸ”₯


🌈 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, go visit:

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


and that's the whole page, bestie πŸŽ€ mwah πŸ’‹ this was gnutls version 3.8.13 β€” go off, verify those certificates, and remember: case insensitive names, GNUTLS_PROFILE_UNKNOWN on failure, periodt πŸ’œ

πŸ“¦ where this page comes from