gnutls_x509_crt_get_raw_dn(3)

πŸ’– gnutls_x509_crt_get_raw_dn(3) πŸ’–

okay bestie, welcome to the gnutls manual, she's an API function and she's here to hand you the raw DER of a distinguished name πŸ’…


✨ NAME ✨

gnutls_x509_crt_get_raw_dn β€” API function


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/x509.h>

int gnutls_x509_crt_get_raw_dn(gnutls_x509_crt_t cert, gnutls_datum_t *
dn);

🌸 ARGUMENTS 🌸

  • gnutls_x509_crt_t cert β€” should contain a gnutls_x509_crt_t type. like, she needs to be that type, no substitutes πŸ’–
  • gnutls_datum_t * dn β€” will hold the starting point of the DN ✨

πŸ’œ DESCRIPTION πŸ’œ

so this function is gonna return a pointer to the DER encoded DN structure and the length. that's it, that's the job, she ate πŸ“

⚠️ important bestie: this points to allocated data and you must free it using gnutls_free(). do not forget. do not ghost the allocator. it's giving memory leak if you do 😭

πŸ”₯ RETURNS πŸ”₯

On success, GNUTLS_E_SUCCESS (0) is returned β€” slay. otherwise a negative error value, or a negative error code on error πŸ’€


πŸŽ€ REPORTING BUGS πŸŽ€

found a bug? tell the girlies: 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. iconic, honestly 🌈


πŸ’€ 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, no cap, every last detail intact 🫢

this was the gnutls manual, version 3.8.13, page gnutls_x509_crt_get_raw_dn(3) β€” k bye, go free your datums πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from