gnutls_x509_crt_equals2(3)

πŸ’– gnutls_x509_crt_equals2 πŸ’–

okay bestie, welcome to the gnutls manual, page for gnutls_x509_crt_equals2(3). pull up a chair, grab a boba, we're doing certificate comparison today and honestly? it's giving low-effort-high-reward. ✨


✨ NAME ✨

gnutls_x509_crt_equals2 β€” this function compares a gnutls_x509_crt_t cert with DER data πŸ¦‹


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

unsigned gnutls_x509_crt_equals2(gnutls_x509_crt_t cert1, const
gnutls_datum_t * der);

like yes, that's the whole thing. two arguments, one answer, no drama. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_crt_t cert1 β€” the first certificate. she's the main character here πŸ‘‘
  • const gnutls_datum_t * der β€” a DER encoded certificate. the contender, the challenger, the one we're vibe-checking against 🌈

πŸ’œ DESCRIPTION πŸ’œ

so basically, this function will compare an X.509 certificate structures, with DER encoded certificate data. that's it. that's the whole plot. you hand her a parsed cert and a blob of raw DER, and she tells you if they're the same girl. fr fr. 😭


⭐ RETURNS ⭐

on equality, non-zero is returned. otherwise zero.

so like, careful bestie β€” non-zero means YES they match. it's not the 0 == success convention you're used to. don't get caught out by that one, i'm literally begging πŸ™ˆ

πŸ¦‹ SINCE πŸ¦‹

3.5.0 β€” she's been around a minute, this one. iconic behavior. ✨


🫢 REPORTING BUGS 🫢

found a bug? tell the people! report bugs to <bugs@gnutls.org>.

home page: 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. πŸ’–


🌈 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/


and that's the page bestie, we ate, no crumbs left πŸ“

this was brought to you by gnutls 3.8.13, gnutls_x509_crt_equals2(3), mwah, go compare some certs πŸ’…βœ¨πŸ§š

πŸ“¦ where this page comes from