GNUTLS_X509_CRQ_GET_SUBJECT_ALT_NAME(3)

✨ gnutls_x509_crq_get_subject_alt_name ✨

okay bestie, welcome to the gnutls manual, page gnutls_x509_crq_get_subject_alt_name(3) πŸ’– this one is a little API function and she is serving certificate request subject alternative names and honestly? iconic.


🌸 NAME 🌸

gnutls_x509_crq_get_subject_alt_name β€” API function πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/x509.h>

int gnutls_x509_crq_get_subject_alt_name(gnutls_x509_crq_t crq, unsigned
int seq, void * ret, size_t * ret_size, unsigned int * ret_type,
unsigned int * critical);

πŸ’… ARGUMENTS πŸ’…

  • gnutls_x509_crq_t crq β€” should contain a gnutls_x509_crq_t type. yes bestie, that's literally what the manpage says, it's giving "the type is the type" 😭
  • unsigned int seq β€” the sequence number of the alt name, okay? 0 for the first one, 1 for the second etc. counting from zero like a true girlboss πŸ”₯
  • void * ret β€” this is the place where the alternative name will be copied to. the drop-off spot πŸ“¦βœ¨
  • size_t * ret_size β€” holds the size of ret. she's the vibe check on how much room you gave her 🫢
  • unsigned int * ret_type β€” holds the gnutls_x509_subject_alt_name_t name type. the what kind of name is this info πŸ‘‘
  • unsigned int * critical β€” will be non-zero if the extension is marked as critical (may be null). so like, is this a big deal or not πŸ’€

πŸŽ€ DESCRIPTION πŸŽ€

This function will return the alternative names, contained in the given certificate. no cap, that's the whole gig.

It is the same as gnutls_x509_crq_get_subject_alt_name() except for the fact that it will return the type of the alternative name in ret_type even if the function fails for some reason (i.e. the buffer provided is not enough). so even when things go wrong she still tells you the type β€” she's not gatekeeping, periodt πŸ’œ


⭐ RETURNS ⭐

the alternative subject name type on success, one of the enumerated gnutls_x509_subject_alt_name_t. slay.

It will return GNUTLS_E_SHORT_MEMORY_BUFFER if ret_size is not large enough to hold the value. in that case ret_size will be updated with the required size. so like, she tells you exactly how much room she needs β€” very main character of her πŸ’…

If the certificate request does not have an Alternative name with the specified sequence number then GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE is returned. she looked. it's not there. moving on πŸ™ˆ


🌈 SINCE 🌈

2.8.0 β€” old money, honestly. been iconic since way back πŸ•°οΈβœ¨


πŸ“ REPORTING BUGS πŸ“

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

bestie if you found a bug, tell the gnutls girlies directly, they want to know fr fr 🫢

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, share it, remix it, it's giving open source generosity 🌸


πŸ‘‘ 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/


and that's the whole page, bestie 🧚 go forth and read those subject alt names πŸ’œ this was page gnutls_x509_crq_get_subject_alt_name(3) from the gnutls manual, version 3.8.13, copyright vibes spanning 2001-2023 β€” mwah, no notes, byeee πŸŽ€βœ¨

πŸ“¦ where this page comes from