GNUTLS_X509_CRT_SET_CRQ_EXTENSION_BY_OID(3)

πŸ’– NAME πŸ’–

gnutls_x509_crt_set_crq_extension_by_oid β€” an API function, bestie. And it lives in the gnutls manual, page gnutls_x509_crt_set_crq_extension_by_oid(3) πŸŽ€


✨ SYNOPSIS ✨

okay so first thing, you gotta include this header, no skipping:

#include <gnutls/x509.h>

and here's the whole function signature, exactly, don't freestyle it:

int gnutls_x509_crt_set_crq_extension_by_oid(gnutls_x509_crt_t crt,
       gnutls_x509_crq_t crq, const char * oid, unsigned flags);

πŸ¦‹ ARGUMENTS πŸ¦‹

the tea on every single parameter, let's go:

  • gnutls_x509_crt_t crt β€” a certificate of type gnutls_x509_crt_t. that's the glow-up destination, the cert getting the extension πŸ’…
  • gnutls_x509_crq_t crq β€” holds a certificate request. yes she's holding it, she's the source of the extension 🫢
  • const char * oid β€” the object identifier of the OID to copy. like, the literal OID string, copy it over verbatim pls
  • unsigned flags β€” should be zero. that's it. zero. not one. zero. πŸ™ˆ

🌸 DESCRIPTION 🌸

so what does she actually do? This function will set the extension specify by oid from the given request to the certificate.

that's the whole vibe: extension lives in the crq, you name it by oid, it lands on the crt. periodt. πŸŽ€


πŸ’œ RETURNS πŸ’œ

On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value.

so if you get a 0? slay, you ate. if you get a negative number? that's your sign something went sideways, go read it 😭


⭐ SINCE ⭐

3.5.1 β€” she's been iconic since way back, no cap.


πŸ“ REPORTING BUGS πŸ“

found something cursed? tell the devs, they wanna know:

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.

like, share the file, remix the file, just keep the receipt ok? 🫢


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

lowkey the Texinfo manual is the main character here, go check her out if the local docs ghosted you πŸ’€

okay bestie that's the whole page, every flag, every arg, every word β€” nothing dropped, nothing invented, iykyk πŸ’–

signed, sealed, delivered from the gnutls 3.8.13 era, dated right there in the footer, mwah πŸ’…βœ¨

πŸ“¦ where this page comes from