gnutls_ocsp_resp_list_import2(3)
β¨ gnutls_ocsp_resp_list_import2(3) β¨
okay bestie, pull up a chair, because we're diving into the gnutls manual and this one's a banger π It's gnutls_ocsp_resp_list_import2, she's an API function, and she's here to take a big ol' pile of OCSP responses and make them make sense. Let's get into it π¦
πΈ NAME πΈ
gnutls_ocsp_resp_list_import2 β literally an API function, no cap π
π SYNOPSIS π
#include <gnutls/ocsp.h>
int gnutls_ocsp_resp_list_import2(gnutls_ocsp_resp_t ** ocsps, unsigned
int * size, const gnutls_datum_t * resp_data, gnutls_x509_crt_fmt_t
format, unsigned int flags);
she's giving five arguments and a dream β¨
π ARGUMENTS π
gnutls_ocsp_resp_t ** ocspsβ this is where the parsed OCSP response list is gonna live. she will hold it, bestie, she's built for this π«Άunsigned int * sizeβ and this one? she'll contain the size of the list. the receipts, if you will πconst gnutls_datum_t * resp_dataβ the PEM encoded OCSP list. the raw material, the source material, the moment πgnutls_x509_crt_fmt_t formatβ one ofGNUTLS_X509_FMT_PEMorGNUTLS_X509_FMT_DER. pick your fighter, no in-between πunsigned int flagsβ must be(0)or an OR'd sequence ofgnutls_certificate_import_flags. so like, either nothing or a lil combo situation π₯
π DESCRIPTION π
so this function will convert the given PEM encoded OCSP response list to the native gnutls_ocsp_resp_t format. glow up central β¨ The output will be stored in ocsps, which will be allocated and initialized β she's brand new, she's fresh out the box, main character energy fr fr π
The OCSP responses should have a header of "OCSP RESPONSE". that's the vibe check, and they gotta pass it π
okay now listen, this part matters: to deinitialize responses, you need to deinitialize eachgnutls_ocsp_resp_tstructure independently, and usegnutls_free()atocsps. not one big cleanup, bestie β one by one, individually, no shortcuts π
In PEM files, when no OCSP responses are detected, GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned. not me getting ghosted by the data π
β RETURNS β
the number of responses read, or a negative error value. so either a cute lil count or a lil sad negative, and that's just how it is π
π¦ SINCE π¦
3.6.3 β vintage, iconic, been here since forever π
π REPORTING BUGS π
found a bug? spill the tea to <bugs@gnutls.org> π§
Home page: https://www.gnutls.org β the mothership π
π 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, go off, just keep the notice, 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/
iykyk π§
and that's the whole page, bestie!! written by the gnutls girlies, version 3.8.13, and yeah this manual page is dated the same era as all her sisters π mwah, go import some OCSP responses, you got this π«Άβ¨
π¦ 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