gnutls_x509_crq_set_pubkey(3)

πŸ’– gnutls_x509_crq_set_pubkey(3) πŸ’–

okay bestie, welcome to the gnutls manual, this one's a little function from <gnutls/abstract.h> and it's literally the glow-up your certificate request needs ✨


✨ NAME ✨

gnutls_x509_crq_set_pubkey β€” API function πŸŽ€


🌸 SYNOPSIS 🌸

#include <gnutls/abstract.h>

int gnutls_x509_crq_set_pubkey(gnutls_x509_crq_t crq, gnutls_pubkey_t
key);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_x509_crq_t crq β€” should contain a gnutls_x509_crq_t type. yes that's the vibe, it's the request you're handing the keys to 🫢
  • gnutls_pubkey_t key β€” holds a public key. the whole point, the main character, the one carrying the public params πŸ”‘

πŸ’… DESCRIPTION πŸ’…

So the way this works: this function will set the public parameters from the given public key to the request. That's it, that's the job. πŸ’–

and the best part?? once you've done it, the key can be deallocated after that. so you're not stuck holding onto it forever β€” set it, and let it go, periodt. no cap, that's a whole weight off your shoulders 😭✨


🌈 RETURNS 🌈

On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. so like, zero is the slay outcome, negative is the "girl what happened" outcome πŸ’€


⭐ SINCE ⭐

2.12.0 β€” this one's been iconic since way back πŸ‘‘


πŸ™ˆ REPORTING BUGS πŸ™ˆ

Report bugs to <bugs@gnutls.org>. Home page: https://www.gnutls.org

if something's broken fr fr, tell the gnutls girlies directly, they want to know 🫢


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. literally free to share, 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/

like, go read the whole thing, it's giving encyclopedia but make it cute πŸ“šβœ¨


bestie reminder: every option, arg and caveat above is straight from the source, i just put a bow on it πŸŽ€

and that's the page!! this was gnutls version 3.8.13, part of the gnutls_x509_crq_set_pubkey(3) manual β€” mwah, love u, go set some public keys πŸ’œπŸ¦‹

πŸ“¦ where this page comes from