shishi_key_print(3)

shishi_key_print3

Api function

Usage

#include <shishi.h>

int shishi_key_print(Shishi * handle, FILE * fh, const Shishi_key * key);

Arguments

Shishi * handle

Shishi handle as allocated by shishi_init().

FILE * fh

File handle open for writing.

const Shishi_key * key

Key to print.

Overview

Prints an ASCII representation of a key structure key to the file descriptor fh. Example output:

-----BEGIN SHISHI KEY-----

Keytype

18 (aes256-cts-hmac-sha1-96)

Principal

host/latte.josefsson.org

Realm

JOSEFSSON.ORG Key-Version-Number: 1

Timestamp

20130420150337Z

P1QdeW/oSiag/bTyVEBAY2msiGSTmgLXlopuCKoppDs= -----END SHISHI KEY-----

Return value

Returns SHISHI_OK if successful. The only failure is SHISHI_MALLOC_ERROR.

Releases

10 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8–11
  6. 12–13

Reporting bugs

Report bugs to <[email protected]>. GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/

From shishi-doc 1.0.3-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.