---
name: "pskc_get_keypackage"
section: "3"
platform: "linux"
package: "oath-toolkit"
version: "2.6.15-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/pskc_get_keypackage"
---

# pskc\_get\_keypackage(3)

API function

## NAME

pskc\_get\_keypackage - API function

## SYNOPSIS

**#include \<pskc.h\>**

**pskc\_key\_t \* pskc\_get\_keypackage(pskc\_t \*** *container***, size\_t** *i***);**

## ARGUMENTS

- pskc\_t \* container

  a **pskc\_t** handle, from **pskc\_init()**.

- size\_t i

  number of keypackage to get.

## DESCRIPTION

Get a PSKC keypackage **pskc\_key\_t** handle for the *i*'th key package in *container*.  *i* is zero-based, i.e., 0 refer to the first key package, 1 refer to the second key package, and so on.

## RETURNS

NULL if there is no *i*'th key package, or a valid **pskc\_key\_t** pointer.

## REPORTING BUGS

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.
