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 with gnutls_free(). Not free(), 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 Β© 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