---
name: "pskc_add_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_add_keypackage"
---

# pskc\_add\_keypackage(3)

API function

## NAME

pskc\_add\_keypackage - API function

## SYNOPSIS

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

**int pskc\_add\_keypackage(pskc\_t \*** *container***, pskc\_key\_t \*\*** *key***);**

## ARGUMENTS

- pskc\_t \* container

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

- pskc\_key\_t \*\* key

  pointer to **pskc\_key\_t** key package handle.

## DESCRIPTION

Add a new a PSKC keypackage to the *container* and give back a **pskc\_key\_t** handle.

## RETURNS

**PSKC\_MALLOC\_ERROR** on memory allocation errors, or **PSKC\_OK** on success.

## SINCE

2\.2.0

## 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.
