pskc_get_key_data_timeinterval(3)

πŸ’… pskc_get_key_data_timeinterval

okay so bestie, welcome to the libpskc corner of the universe ✨ this page is literally the manual for pskc_get_key_data_timeinterval(3) β€” yes that's a whole mouthful, we're gonna get through it together 🫢


🌸 NAME

pskc_get_key_data_timeinterval β€” her whole job is one thing and she ate πŸ’… (it's an API function, iykyk)


✨ SYNOPSIS

#include <pskc.h>

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

like, that's the whole vibe. one include, one function call, zero drama πŸŽ€


πŸ¦‹ ARGUMENTS

  • pskc_key_t * key β€” your pskc_key_t handle, bestie. you get it from pskc_get_keypackage(). no handle, no data, we don't make the rules πŸ’€
  • int * present β€” an output variable that tells you whether the data was provided or not. she's the receipts-holder πŸ“‹

πŸ”₯ DESCRIPTION

so what does it actually do? it gets you the PSKC KeyPackage Key Data TimeInterval value. fancy name, simple job: this element carries the time interval value for time-based OTP algorithms, in seconds ⏱️ and a typical value for this would be 30, which means β€” you guessed it β€” a time interval of 30 seconds. iconic, honestly πŸ‘‘

and about that present pointer: if present is non-NULL, then it'll be 0 if the field is not present, or 1 if it was present. literally a vibe check for your data 🌈 ngl it's giving boolean but make it int.


🧚 RETURNS

an integer holding the content. that's it, that's the return πŸ’–


πŸ’€ REPORTING BUGS

found a bug? don't suffer in silence, report it to <oath-toolkit-help@nongnu.org> πŸ“§

we love a community that takes bug reports seriously πŸ’œ


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. periodt πŸŽ€


okay bestie that's the whole page, go forth and read your time intervals 🌸 this was libpskc version 2.6.15 and the page belongs to pskc_get_key_data_timeinterval(3) β€” mwah, take care of her πŸ’…βœ¨

πŸ“¦ where this page comes from