gnutls_certificate_type_get(3)
π gnutls_certificate_type_get(3) β the gnutls girlies' guide π
okay bestie, sit down, we're doing a gnutls manual page and it's literally so much less scary than it sounds. this is the gnutls_certificate_type_get situation, straight from the gnutls manual, and yes it's giving "short and sweet" for once. let's go π¦
β¨ NAME β¨
gnutls_certificate_type_get β API function π
β¨ SYNOPSIS β¨
#include <gnutls/gnutls.h>
gnutls_certificate_type_t gnutls_certificate_type_get(gnutls_session_t
session);
β¨ ARGUMENTS β¨
gnutls_session_t sessionβ bestie, it's agnutls_session_ttype. that's it, that's the whole argument. iconic minimalism π
β¨ DESCRIPTION β¨
so what does this function actually do? it hands you back the type of the certificate that got negotiated for this side to send over to the peer. like, the cert type your side is planning to yeet across the connection. π«Ά
by default, the certificate type is X.509 β that's the standard, the default, the main character. the only way you get something else is if an alternative certificate type got enabled by gnutls_init() and then actually negotiated during the session. no negotiation, no alternative, no drama. π₯
now, resumed sessions? they stay loyal. a resumed session will return the certificate type that was negotiated and used in the original session β no glow-up, no changing its mind mid-resume. periodt. π
and here's the tea, as of version 3.6.4 it is recommended to use gnutls_certificate_type_get2() instead, because that one is more fine-grained. so if you're on a modern version, that's your girl. β¨
β¨ RETURNS β¨
it returns the currently used gnutls_certificate_type_t certificate type β as negotiated for 'our' side of the connection. (yes, 'our' in quotes, because perspective is everything, bestie.) πΈ
β¨ REPORTING BUGS β¨
found a bug? don't suffer in silence, tell the people π
- report bugs to <bugs@gnutls.org>
- home page: https://www.gnutls.org
β¨ 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.
β¨ 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 whole page, bestie, no cap. this one shipped in gnutls 3.8.13 β go forth and read your cert types with confidence. slay ππ¦β¨
π¦ 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