pskc_get_device_expirydate(3)
π pskc_get_device_expirydate(3) β the libpskc glow-up
okay bestie, so this is a page from the libpskc manual, section 3, and it's literally just one tiny little function that fetches a date. lowkey iconic in its simplicity. let's get into it π
β¨ NAME β¨
pskc_get_device_expirydate β the API function that gets you a device's expiry date, no cap
πΈ SYNOPSIS πΈ
#include <pskc.h>
const struct tm * pskc_get_device_expirydate(pskc_key_t * key);
that's it. that's the whole thing. short and slay π
π¦ ARGUMENTS π¦
pskc_key_t * keyβ apskc_key_thandle, and you get it frompskc_get_keypackage(). like, that's where it comes from, periodt. don't just invent one out of nowhere π
π DESCRIPTION π
so this one gets the PSKC KeyPackage DeviceInfo ExpiryDate. fancy name, simple job.
this element denotes the end date of a device β think the one printed on a payment card, used when issue numbers are not printed on cards. yep, that's the whole vibe check. it's giving "this card is valid until". π«Ά
β RETURNS β
you get back a constant struct (which β important β must not be deallocated, so don't you dare free() it, bestie π) holding the content.
or NULL if it's not set. that's the whole returns section. no notes. π
π₯ REPORTING BUGS π₯
found a bug? go tell the people who can actually do something about it:
- Report bugs to <oath-toolkit-help@nongnu.org>.
- libpskc home page:
https://oath-toolkit.codeberg.page/ - General help using GNU software:
http://www.gnu.org/gethelp/
fr fr, they wanna hear from you π§
π COPYRIGHT π
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.
(the license is literally so chill β copy it, share it, remix it, just keep the copyright notice and this notice. ate. π)
ngl the one thing to actually remember here: the returned struct tm * is constant and must not be deallocated. treat it like a borrowed hoodie β it's yours to look at, not yours to keep. π
that's the whole page, bestie!! β¨ this was the libpskc manual, version 2.6.15, pskc_get_device_expirydate(3), and honestly? a little legend. go get those expiry dates. ππ
π¦ where this page comes from
- arch rolling: oath-toolkit 2.6.15-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms