pskc_set_key_p...oftransactions(3)

πŸŽ€ pskc_set_key_p...oftransactions(3) πŸŽ€

hii bestie, welcome to the libpskc manual πŸ’– this page is all about setting the number-of-transactions policy on a PSKC key, and it’s giving very specific API energy. let’s get into it 🫢

✨ NAME ✨

pskc_set_key_policy_numberoftransactions β€” API function. that’s the name, periodt πŸ’…

🌸 SYNOPSIS 🌸

okay so you include the header and call it like this:

#include <pskc.h>

void pskc_set_key_policy_numberoftransactions(pskc_key_t * key, uint64_t
uses);

🫢 ARGUMENTS 🫢

  • pskc_key_t * key β€” a pskc_key_t handle, from pskc_get_keypackage(). ✨
  • uint64_t uses β€” the number of transactions to set. πŸ’…

πŸ’… DESCRIPTION πŸ’…

okay so this function sets the PSKC KeyPackage Key Policy NumberOfTransactions value. no cap. The value in this element indicates the maximum number of times a key carried within the PSKC document can be used by an application after having received it. When this element is omitted, there is no restriction regarding the number of times a key can be used. πŸ¦‹

note note note: while the PSKC specification uses the XML data type "nonNegativeInteger" for this variable, this implementation restricts the size of the value to 64-bit integers. so like, 64-bit realness only πŸ”₯

⭐ SINCE ⭐

2.2.0 β€” iconic since then πŸ’œ

πŸ’– REPORTING BUGS πŸ’–

got a bug? spill:

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.

and that’s the whole page, bestie πŸŽ€ signed off from the libpskc manual, version 2.6.15, page pskc_set_key_p...oftransactions(3) β€” no date in sight, and we don’t invent deets. byeeeee πŸ‘‹πŸ’–

πŸ“¦ where this page comes from