gnutls_ocsp_req_randomize_nonce(3)

✨ NAME ✨

gnutls_ocsp_req_randomize_nonce β€” bestie, this is literally an API function and it's about to refresh your OCSP request's nonce πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <gnutls/ocsp.h>

int gnutls_ocsp_req_randomize_nonce(gnutls_ocsp_req_t req);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_ocsp_req_t req β€” okay so this one should contain a gnutls_ocsp_req_t type. that's the whole vibe of it. that's the assignment. πŸ’–

🌸 DESCRIPTION 🌸

So here's the tea, bestie: this function will add or update a nonce extension to the OCSP request, and it fills it in with a newly generated random value. ✨

Like, if your request already has a nonce? It gets updated. If it doesn't? It gets added. Either way, the value is fresh and random, no cap. It's giving "new nonce just dropped" energy πŸ‘‘


πŸ’œ RETURNS πŸ’œ

On success, GNUTLS_E_SUCCESS (0) is returned. πŸŽ‰

Otherwise? A negative error code comes back. 😭 Not the slay we wanted, but that's the deal β€” negative means something went sideways.


🫢 REPORTING BUGS 🫢

Found a bug? Not me being the bearer of bad news, but please tell the gnutls people:


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, that's the actual legal text, iconic of them 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/

and that's the whole page, babes πŸ’… this one's from gnutls 3.8.13, and yeah β€” the manual name is right there in the title, gnutls_ocsp_req_randomize_nonce(3), we been knew. go randomize that nonce, you got this πŸ¦‹βœ¨

πŸ“¦ where this page comes from