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