gnutls_ocsp_resp_export(3)

πŸ’… gnutls_ocsp_resp_export β€” bestie's guide to yeeting an OCSP response into DER

okay so real talk, this page lives in the gnutls manual (the gnutls_ocsp_resp_export(3) one, iykyk) and it's literally just about turning your in-memory OCSP response into bytes. slay.


🌸 NAME 🌸

gnutls_ocsp_resp_export β€” it's an API function, bestie πŸ’–


✨ SYNOPSIS ✨

#include <gnutls/ocsp.h>

int gnutls_ocsp_resp_export(gnutls_ocsp_resp_const_t resp,
                            gnutls_datum_t * data);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_ocsp_resp_const_t resp β€” this is the OCSP response you're holding, the main character of this whole operation πŸ‘‘
  • gnutls_datum_t * data β€” and this is where the freshly allocated buffer lands, holding the DER encoded OCSP response. newly allocated. fresh out the oven. πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

So the way that this works is: this function will export the OCSP response to DER format. that's it. that's the whole vibe. it takes your response, it hands you back DER bytes. periodt. ✨


πŸ’œ RETURNS πŸ’œ

In case of failure a negative error code will be returned 😭 (not the vibe), and 0 on success πŸ’… (the vibe).


πŸ™ˆ REPORTING BUGS πŸ™ˆ

Found a bug? not me being the bearer of bad news, but please report bugs to <bugs@gnutls.org>. 🫢

Home page: https://www.gnutls.org


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. iconic behavior honestly.


🌈 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/


ngl, that's the whole page. no cap. go export something. πŸ’–

and that's a wrap, bestie β€” this was gnutls_ocsp_resp_export(3) from gnutls version 3.8.13 πŸ’« thanks for reading, ily, drink water 🧚

πŸ“¦ where this page comes from