gnutls_ocsp_status_request_get(3)

✨ gnutls_ocsp_status_request_get ✨

okay bestie, so this one lives in the gnutls manual (that's the man page name, iykyk) and it's genuinely one of the cuter little API functions. let's get into it πŸ’…


🌸 NAME 🌸

gnutls_ocsp_status_request_get β€” an API function, and yes she's giving "I just wanna fetch one thing" energy πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/gnutls.h>

int gnutls_ocsp_status_request_get(gnutls_session_t session,
gnutls_datum_t * response);

πŸ’– ARGUMENTS πŸ’–

  • gnutls_session_t session β€” it's literally just a gnutls_session_t type, that's the whole vibe. your session bestie 🫢
  • gnutls_datum_t * response β€” a gnutls_datum_t holding the DER encoded OCSP response. DER encoded, no cap πŸ”₯

πŸ‘‘ DESCRIPTION πŸ‘‘

so like, this function returns the OCSP status response that came back from the TLS server. that's it, that's the whole job ✨

⚠️ the response should be treated as constant. do not go messing with it, bestie. it is not yours to edit. hands off πŸ™ˆ

and if there's no OCSP response available? then GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE gets returned. she simply isn't there. ghosted πŸ’€


🌈 RETURNS 🌈

on success, GNUTLS_E_SUCCESS (0) is returned πŸŽ‰ otherwise you get a negative error code back. negative = not the vibe. periodt.


⭐ SINCE ⭐

3.1.3 β€” an OG, lowkey been here forever πŸ‘‘


πŸ“ REPORTING BUGS πŸ“

found a bug? report it to <bugs@gnutls.org>. they want to hear from you, fr fr πŸ’œ

home page: https://www.gnutls.org β€” go say hi 🌸


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, take it, share it, just keep the receipts πŸ’–


πŸ’œ 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!! this was gnutls, version 3.8.13, and yes she ate πŸ’…βœ¨πŸ¦‹ mwah, go read some more man pages, ily πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from