gnutls_x509_crt_check_email(3)
β¨ gnutls_x509_crt_check_email β¨
okay bestie, so this one lives in the gnutls manual, section 3, and it's literally called gnutls_x509_crt_check_email(3). it's an API function, it's giving "does this cert actually belong to this email or is it lying to us" energy, and we're gonna go through it together π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
unsigned gnutls_x509_crt_check_email(gnutls_x509_crt_t cert, const char
* email, unsigned int flags);
like yes, that's the whole thing, she's short and she knows exactly what she wants π
π¦ ARGUMENTS π¦
gnutls_x509_crt_t certβ bestie this one should contain angnutls_x509_crt_ttype. that's the assignment. that's the whole job description.const char * emailβ a null terminated string that contains an email address (RFC822). yes, actual RFC822, not vibes-based email. so bring the real thing β¨unsigned int flagsβ should be zero. that's it. that's the whole rule. zero, queen, nothing else π
π DESCRIPTION π
so what does she do? this function will check if the given certificate's subject matches the given email address.
that's it. that's the function. no cap. it looks at the subject of your cert, looks at your email string, and goes "hmmβ¦ do these two know each other?" ππ
β RETURNS β
- non-zero β successful match, slay, they match, we love to see it π«Ά
- zero β failure, no match, tragic, we move on π
π REPORTING BUGS π
found a bug? not me finding a bug π please report bugs to <bugs@gnutls.org>.
Home page: https://www.gnutls.org β go say hi, she's iconic.
π COPYRIGHT π
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 basically: keep the notice, keep the notice, and you're golden π
π 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/
okay and that's the page fr fr π this was gnutls 3.8.13 β the footer energy, the version, all of it β go check the cert, check the email, and stay hydrated bestie ππ§β¨
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms