gnutls_subject_alt_names_init(3)

✨ NAME ✨

gnutls_subject_alt_names_init β€” okay bestie this is the API function that sets up your alternative names structure, and it's literally the first thing you call πŸŽ€

This one lives in the gnutls manual, so if you're out here reading man gnutls_subject_alt_names_init you're in exactly the right place πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/x509-ext.h>

int gnutls_subject_alt_names_init(gnutls_subject_alt_names_t * sans);
Heads up: that header is gnutls/x509-ext.h, not the regular x509 one β€” she's special, she's extended, she's iconic ✨

🌸 ARGUMENTS 🌸

  • gnutls_subject_alt_names_t * sans β€” the alternative names, periodt. You hand her the pointer to your alt-names thingy and she does the rest πŸ’…

πŸ‘‘ DESCRIPTION πŸ‘‘

So basically: this function will initialize an alternative names structure. That's it, that's the whole vibe. You call it, the structure gets initialized, and now you have somewhere to put your subject alternative names. Main character setup energy fr fr 🫢


⭐ RETURNS ⭐

  • On success, GNUTLS_E_SUCCESS (0) is returned 🌈
  • Otherwise you get a negative error value β€” aka it's giving "something went wrong," no cap 😭

πŸŽ€ SINCE πŸŽ€

3.3.0 β€” she's been here since 3.3.0, a true veteran, an OG πŸ’œ


πŸ”₯ REPORTING BUGS πŸ”₯

Found a bug? Not me gatekeeping β€” 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. So yes bestie, you can share her around, 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/

iykyk, the Texinfo manual is where the whole lore lives πŸ“š


Okay that's the whole page, you ate that πŸ’… This was gnutls version 3.8.13, signing off β€” go forth and initialize those alternative names, queen πŸ‘‘βœ¨

πŸ“¦ where this page comes from