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 β€” a pskc_key_t handle, and you get it from pskc_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:

fr fr, they wanna hear from you 🧚


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