pskc_get_key_data_time(3)

πŸ’… pskc_get_key_data_time β€” the libpskc glow-up

Okay so bestie, you're looking at a libpskc man page, section 3 β€” and honestly? This one's a little cutie. It's the function that fishes the Key Data Time value out of a PSKC KeyPackage for you. Let's get into it πŸŽ€


✨ NAME ✨

pskc_get_key_data_time β€” literally the API function, that's the whole vibe πŸ’–


🌸 SYNOPSIS 🌸

#include <pskc.h>

uint32_t pskc_get_key_data_time(pskc_key_t * key, int * present);

πŸ¦‹ 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 πŸ‘‘
  • int * present β€” an output variable that tells you whether the data was actually provided or not. Think of it as the vibe check output 🫢

⭐ DESCRIPTION ⭐

So what does it do? It gets the PSKC KeyPackage Key Data Time value. That element holds the time for time-based OTP algorithms β€” iykyk πŸ”₯

And lowkey important detail: if time intervals are being used, this element carries the number of time intervals passed from a specific start point, and normally that's algorithm dependent. Not me knowing the lore πŸ’€

Now for the present parameter, fr fr: if present is non-NULL, it'll be set to 0 if the field is not present, or 1 if it was present. Iconic little boolean moment ✨


πŸ’œ RETURNS πŸ’œ

An integer holding the content. That's it, that's the return πŸŽ€


πŸ™ˆ REPORTING BUGS πŸ™ˆ

Found a bug? Don't suffer in silence, bestie β€” report bugs to <oath-toolkit-help@nongnu.org> πŸ’Œ


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. Slay, permissive licensing 🫢


Okay so real talk β€” that's the whole page, no skips, no crumbs left behind πŸ’… Go forth and read your time values, bestie.

Signing off from the libpskc corner of the universe, version 2.6.15 β€” mwah, catch you on the next man page πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from