GNUTLS_X509_CRQ_SET_SUBJECT_ALT_NAME(3)
π NAME π
gnutls_x509_crq_set_subject_alt_name β okay so this is an API function, bestie, and it lives in the gnutls manual (section 3, the library functions section, iykyk). It sets the subject alternative name extension on a certificate request. That's the whole vibe. β¨
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crq_set_subject_alt_name(gnutls_x509_crq_t crq,
gnutls_x509_subject_alt_name_t nt, const void * data, unsigned int
data_size, unsigned int flags);
Likeβ¦ look at that signature. Five whole arguments. She's doing a lot but she's slaying it. π
π ARGUMENTS π
gnutls_x509_crq_t crqβ a certificate request of typegnutls_x509_crq_t. That's the thing you're decorating, bestie. The main character, honestly. πgnutls_x509_subject_alt_name_t ntβ this one is one of thegnutls_x509_subject_alt_name_tenumerations. Pick your fighter. πconst void * dataβ the data to be set. Just raw data, no notes, no explanation, she's mysterious like that. πunsigned int data_sizeβ the size of the data to be set. Gotta tell her how big it is or she's lost fr. πunsigned int flagsβ your two options areGNUTLS_FSAN_SET, which clears previous data, orGNUTLS_FSAN_APPEND, which appends. So like, fresh start or pile it on. Choose wisely. β¨
π¦ DESCRIPTION π¦
Okay so the way that this function sets the subject alternative name certificate extension. That's her job. That's what she does.
It can set the following types:
β¦and that's literally where the list ends in this manpage, bestie. Just a colon and vibes. We move. π«Ά
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. So if you get a 0, she ate and left no crumbs. If you get a negative number, something is not giving and you should probably go read the error. π
π SINCE π
2.8.0 β she's been around since 2.8.0, so she's lowkey a legend at this point. Respect the elders. π
π REPORTING BUGS π
Found something cursed? Report bugs to <bugs@gnutls.org>. π§
Home page: https://www.gnutls.org β go say hi. π
π COPYRIGHT π
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, share it, remix it, no cap, 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/
Okay that's the whole page, bestie!! Every flag, every argument, every return value, preserved in full and looking cute. This was page gnutls_x509_crq_set_subject_alt_name(3) from the gnutls manual, version 3.8.13. Now go forth and set those subject alternative names, main character. π
β¨π¦
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms