pskc_set_device_expirydate(3)

πŸ’… pskc_set_device_expirydate β€” the libpskc glow-up you didn't know you needed

okay so bestie, listen. this one is a little function from libpskc (yes, the pskc_set_device_expirydate(3) girlies know) and she's got one job and she eats every single time. no cap. let's get into it πŸŽ€


✨ NAME ✨

pskc_set_device_expirydate β€” literally just an API function, that's the whole vibe πŸ¦‹


🌸 SYNOPSIS 🌸

#include <pskc.h>

void pskc_set_device_expirydate(pskc_key_t * key, const struct tm *
expirydate);

like, that's it. two args, void return, she doesn't even give you anything back because she's not about the drama πŸ’…


🫢 ARGUMENTS 🫢

  • pskc_key_t * key β€” a pskc_key_t handle, and you get it from pskc_get_keypackage(). that's your main character right there πŸ‘‘
  • const struct tm * expirydate β€” a pointer to a tm struct holding the device expiry date you wanna set. very demure, very mindful, just a pointer 🧚

πŸ”₯ DESCRIPTION πŸ”₯

okay so what she actually does: she sets the PSKC KeyPackage DeviceInfo ExpiryDate. periodt.

and that element? it denotes the end date of a device β€” think the one on a payment card, used when issue numbers aren't printed on cards. so like, the card's little expiration moment gets its own field. iconic honestly πŸ’³βœ¨

not me being obsessed with a struct field. but here we are 🫢


⭐ SINCE ⭐

2.2.0 β€” she's been around, she's got lore 🌈


πŸ’€ REPORTING BUGS πŸ’€

found a bug? spill it to <oath-toolkit-help@nongnu.org> πŸ“

ngl they're nice about it, go tell them πŸ™ˆ


Copyright Β© 2009-2026 Simon Josefsson.

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, slay, go forth and redistribute, just keep the receipts πŸ’–


fr fr keep every detail intact and don't come for the copyright notice. she's protected. πŸ”₯

okay that's the whole page bestie, no notes. this is libpskc version 2.6.15, and pskc_set_device_expirydate(3) said what she said πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from