gnutls_x509_ex...ame_constraints(3)
π gnutls_x509_ext_export_name_constraints β bestie's guide to yeeting name constraints into DER β¨
okay so this page lives in the gnutls manual, and it's all about gnutls_x509_ext_export_name_constraints β the lil glow-up function that takes your name constraints and turns them into actual DER-encoded extension bytes. it's giving "craft supplies but make it PKIX". π
β¨ NAME β¨
gnutls_x509_ext_export_name_constraints β it's an API function, no cap π
π¦ SYNOPSIS π¦
#include <gnutls/x509-ext.h>
int
gnutls_x509_ext_export_name_constraints(gnutls_x509_name_constraints_t
nc, gnutls_datum_t * ext);
like yes, the return type is int, and yes, the function signature wraps across lines in the synopsis, that's just how she is π«Ά
πΈ ARGUMENTS πΈ
gnutls_x509_name_constraints_t ncβ the nameconstraints themselves, your main character input πgnutls_datum_t * extβ the DER-encoded extension data that comes out of this. β οΈ bestie listen: this must be freed usinggnutls_free(). don't just leave it out there vibing, that's a leak π
π DESCRIPTION π
so what does she actually do? this function will convert the provided name constraints type to a DER-encoded PKIX NameConstraints extension β and the OID for that is (2.5.29.30), iconic β
the output data in ext will be allocated using gnutls_malloc(). so it's gnutls's memory, which means it's gnutls's free function (gnutls_free()) that has to clean it up. they're a matched set, don't split them up π
π₯ RETURNS π₯
on success, GNUTLS_E_SUCCESS (0) is returned β slay β¨ otherwise you get a negative error value, which is the universe telling you something went sideways π
π SINCE π
3.3.0 β she's been here a while, a true veteran π
π€ REPORTING BUGS π€
found a bug? don't suffer in silence, tell the people:
- Report bugs to <bugs@gnutls.org>.
- Home page: https://www.gnutls.org
fr fr, emailing bugs is self-care. do it. π«Ά
π 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.
(translation: copy it, share it, remix it β 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/
that's the whole lore, go read it, iykyk πβ¨
and that's the page!! π this one came from the gnutls manual, version 3.8.13 β mwah, go free your datums bestie π β¨
π¦ 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