gnutls_ocsp_resp_import2(3)

πŸ’– gnutls_ocsp_resp_import2(3) πŸ’–

okay bestie, welcome to the gnutls manual (section 3, we're fancy like that) β€” and today's main character is gnutls_ocsp_resp_import2. it's giving "turn your OCSP response into a real live object" energy, and honestly? obsessed. πŸ¦‹


✨ NAME ✨

gnutls_ocsp_resp_import2 β€” literally just an API function, no cap πŸ’…


🌸 SYNOPSIS 🌸

#include <gnutls/ocsp.h>

int gnutls_ocsp_resp_import2(gnutls_ocsp_resp_t resp, const
       gnutls_datum_t * data, gnutls_x509_crt_fmt_t fmt);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_ocsp_resp_t resp β€” bestie this is the ✨destination✨, the place where the parsed response gets stored. the data to store the parsed response, fr fr.
  • const gnutls_datum_t * data β€” the OCSP response itself, and it can be DER or PEM encoded. either one, she contains multitudes πŸ’œ
  • gnutls_x509_crt_fmt_t fmt β€” DER or PEM. that's it. that's the whole job description 🫢

🌈 DESCRIPTION 🌈

so what does she actually do? this function will convert the given OCSP response into the native gnutls_ocsp_resp_t format. and not only that β€” she also decodes the Basic OCSP Response part, if any (if any!! like, don't @ her if it's not there, she handles it).

the output? yeah, that goes into resp. the way she just... puts it there. iconic. πŸ‘‘


⭐ RETURNS ⭐

on success, GNUTLS_E_SUCCESS (which is 0) is returned πŸŽ‰

otherwise? a negative error value. not a slay. 😭


🧚 SINCE 🧚

3.6.3 β€” she's been around, she's a legend, she's vintage but make it cute 🌸


πŸ’€ REPORTING BUGS πŸ’€

found a bug? don't suffer in silence, spill it:


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. (yes bestie, you can share it, that's the whole vibe πŸ’–)


πŸ¦‹ 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 tea, bestie πŸ“ this page came to you from gnutls version 3.8.13, in manual section 3, and it's exactly gnutls_ocsp_resp_import2(3). go forth and parse responsibly πŸ’…βœ¨

πŸ“¦ where this page comes from