gnutls_x509_ex...ey_usage_period(3)
β¨ NAME β¨
gnutls_x509_ext_export_private_key_usage_period β bestie, this is an API function π it's part of the gnutls manual, and it's the one that packages up a private key usage period as a DER extension for you.
π SYNOPSIS π
#include <gnutls/x509-ext.h>
int gnutls_x509_ext_export_private_key_usage_period(time_t activation,
time_t expiration, gnutls_datum_t * ext);
πΈ ARGUMENTS πΈ
time_t activationβ the activation time, aka when the clock starts ticking β°time_t expirationβ the expiration time, aka when it's over, done, finished πgnutls_datum_t * extβ the DER-encoded extension data π«Ά and listen, you must free this withgnutls_free(). Notfree(), not vibes,gnutls_free(). Periodt.
π DESCRIPTION π
Okay so here's the tea: this function takes the periods you hand it and converts them into a private key usage DER encoded extension, specifically 2.5.29.16 β¨
The way the ext data gets allocated is with gnutls_malloc(). That's the whole assignment. She ate and left no crumbs π
π₯ RETURNS π₯
On success you get GNUTLS_E_SUCCESS (0) back, and it's giving main character energy π
Otherwise? A negative error value π not the vibe, but at least it's honest.
π¦ SINCE π¦
3.3.0 β an icon, a legend, and she's been here a minute β
π REPORTING BUGS π
Found a bug? Spill it to bugs@gnutls.org π
Home page: https://www.gnutls.org
π 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, go off, 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/
Anyway bestie, that's the whole page β gnutls 3.8.13, manual page gnutls_x509_ex...ey_usage_period(3), and yes the man page header itself really does abbreviate the name like that, iykyk π stay slaying, go free your datum, mwah π
π¦ 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