gnutls_ocsp_req_get_version(3)
π gnutls_ocsp_req_get_version β bestie's guide to peeking at your OCSP request version π
okay so this one lives in the gnutls manual (section 3, the library-call girlies π«Ά), and honestly? it's a tiny little function with main character energy. let's get into it.
β¨ NAME β¨
gnutls_ocsp_req_get_version β it's an API function, bestie. that's the whole name. that's the vibe. π
πΈ SYNOPSIS πΈ
#include <gnutls/ocsp.h>
int gnutls_ocsp_req_get_version(gnutls_ocsp_req_const_t req);
like. look at her. one header, one function, zero drama. iconic. β¨
π ARGUMENTS π
gnutls_ocsp_req_const_t reqβ bestie this should contain agnutls_ocsp_req_ttype. that's the tea. hand her a request and she'll tell you what's up. π¦
π DESCRIPTION π
so this function will return the version of the OCSP request. and here's the thing β typically this is always 1, indicating version 1. like, no cap, it's basically always gonna be a 1. she's consistent, she's reliable, she ate and left no crumbs. π₯
π RETURNS π
she gives you back the version of OCSP request, or a negative error code on error. so if you get a negative number, that's your vibe check failing, and you should lowkey go look at what went wrong. π
π REPORTING BUGS π
found a bug? not me being the bearer of bad news, but you gotta tell the devs:
- 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. so like, copy it, share it, remix it β just keep the receipts, periodt. π
β 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/
go read it, it's giving educational, iykyk. πβ¨
and that's the whole page, bestie!! this beauty ships with gnutls 3.8.13, so when you're out here calling gnutls_ocsp_req_get_version, just know she's serving version 1 energy and you're gonna be fine. mwah. ππ
π
π¦ 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