gnutls_certificate_type_get_id(3)

✨ gnutls_certificate_type_get_id ✨

okay bestie, so this one lives in section 3 of the gnutls manual β€” it's a lil lookup function and it is, honestly, so simple it's kind of iconic. πŸ’…


🌸 NAME 🌸

gnutls_certificate_type_get_id β€” API function πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/gnutls.h>

gnutls_certificate_type_t gnutls_certificate_type_get_id(const char *
name);

πŸ’– ARGUMENTS πŸ’–

  • const char * name β€” this is a certificate type name, bestie. that's it. that's the whole vibe. give it a string, it tells you what the certificate type is. 🌈

πŸ‘‘ DESCRIPTION πŸ‘‘

so the way this works is: it takes your name string and matches it against certificate type names, and the names are compared in a case insensitive way. so like, casing? not the moment. "X509" and "x509" are gonna get treated the same, periodt. ✨


⭐ RETURNS ⭐

it hands you back a gnutls_certificate_type_t for the certificate type you specified in that string 🫢 β€” or, if something went sideways, you get GNUTLS_CRT_UNKNOWN on error. so yeah, if you see that one come back, it's giving "not found", and you should lowkey check your spelling. πŸ’€


😭 REPORTING BUGS 😭

found a bug? don't suffer in silence, bestie. report it to bugs@gnutls.org fr fr. πŸ“§

home page is right here: https://www.gnutls.org


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. slay, no cap, that's genuinely generous of them. πŸŽ€


🌈 SEE ALSO 🌈

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

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

iykyk 🧚


and that's the whole page! every single detail, exactly where it belongs, no notes. πŸ’…βœ¨

okay that's a wrap, bestie β€” this page is from gnutls 3.8.13, page gnutls_certificate_type_get_id(3). go forth and case-insensitively slay. πŸ¦‹πŸŒΈπŸ’–

πŸ“¦ where this page comes from