gnutls_pubkey_import_x509_crq(3)

πŸ’– gnutls_pubkey_import_x509_crq(3) πŸ’–

okay bestie, so this one lives in the gnutls manual (that's the gnutls 3.8.13 era, for the record) and it's literally just "hey, take this public key out of a cert request and put it in an abstract pubkey" β€” no drama, no chaos, we love a low-effort icon. ✨


🌸 NAME 🌸

gnutls_pubkey_import_x509_crq β€” it's an API function, bestie, that's the whole vibe πŸ’…


✨ SYNOPSIS ✨

#include <gnutls/abstract.h>

int gnutls_pubkey_import_x509_crq(gnutls_pubkey_t key, gnutls_x509_crq_t
crq, unsigned int flags);

like, that's the whole spell. copy it exactly, don't freestyle 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_pubkey_t key β€” the public key. that's the lil guy you're building up. πŸ‘‘
  • gnutls_x509_crq_t crq β€” the certificate to be imported. yes the original literally calls it "the certificate", we're keeping that word fr fr. it's the source material. πŸ’–
  • unsigned int flags β€” should be zero. that's it. zero. nothing else. don't get creative. 🚫✨

πŸ¦‹ DESCRIPTION πŸ¦‹

so the way this works is: this function will import the given public key to the abstract gnutls_pubkey_t type. that's the tea. β˜•

like β€” you hand it a crq (a certificate request), it reaches in, pulls out the public key, and drops it into your gnutls_pubkey_t. main character energy, honestly. no cap. πŸ’…


🌈 RETURNS 🌈

On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. so if you get a zero, slay. if you get a negative number, that's your sign to go read the error handling docs, bestie. 😭


⭐ SINCE ⭐

3.1.5 β€” she's been around a minute, an OG. iconic behavior. πŸ‘‘


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? not the vibe, but okay, tell the gnutls girlies:


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. periodt. 🫢


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

ok that's the whole page, go forth and import those pubkeys responsibly πŸ“βœ¨

mwah πŸ’‹ β€” this was the gnutls manual, version 3.8.13, page gnutls_pubkey_import_x509_crq(3). love u, bye! πŸŽ€

πŸ“¦ where this page comes from