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β apskc_key_thandle, and you get it frompskc_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> π
- libpskc home page: https://oath-toolkit.codeberg.page/
- General help using GNU software: http://www.gnu.org/gethelp/
π 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. 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
- 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