GNUTLS_X509_TLSFEATURES_CHECK_CRT(3)

✨ gnutls_x509_tlsfeatures_check_crt ✨

okay bestie, welcome to the gnutls manual β€” yes that's the manual name, we're in the gnutls house now πŸ πŸ’– This one's an API function, so it's giving library-girl energy, not command-line-girl energy. Still iconic tho.


🌸 NAME 🌸

gnutls_x509_tlsfeatures_check_crt β€” literally just an API function, that's the whole vibe πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <gnutls/x509.h>

unsigned gnutls_x509_tlsfeatures_check_crt(gnutls_x509_tlsfeatures_t
feat, gnutls_x509_crt_t cert);

like. she's a function. she takes two things. she returns an unsigned. no cap. πŸ¦‹


πŸ’œ ARGUMENTS πŸ’œ

  • gnutls_x509_tlsfeatures_t feat β€” a whole set of TLSFeatures, like a little squad of features 🫢
  • gnutls_x509_crt_t cert β€” the certificate that's getting checked, she's the one on trial bestie 😭

🌈 DESCRIPTION 🌈

so what this function DOES, fr fr: it takes that certificate you handed it and checks it against the TLSFeatures set living in feat, and it does that using the RFC7633 p.4.2.2 rules. (yes, an actual RFC, an actual page number, we stay precise here πŸ‘‘)

and the check itself? it's checking whether the certificate contains the features in feat β€” or a superset of them. so like, extra features are fine, she's flexible, she just needs at least everything in feat to show up. periodt. ✨


⭐ RETURNS ⭐

  • non-zero if the certificate you provided complies πŸ’š
  • zero otherwise πŸ’€

that's it, that's the whole verdict. no in-between, no "it's complicated".


πŸ¦‹ SINCE πŸ¦‹

3.5.1 β€” she's been around a minute, lowkey a veteran πŸŽ–οΈ


πŸ™ˆ 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. (so yes, you may copy her, she's generous like that πŸ’–)


πŸ”₯ 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/

like, click it. it's right there. iykyk πŸ“šβœ¨


and that's the whole page bestie!! this little legend comes to you from gnutls 3.8.13 β€” mwah, go forth and check those certificates, you ate πŸ’…πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from