shishi_safe_set_cksum3
Api function
Usage
#include <shishi.h>
int shishi_safe_set_cksum(Shishi * handle, Shishi_asn1 safe, int32_t cksumtype, const char * cksum, size_t cksumlen);
Arguments
Shishi * handle
|
shishi handle as allocated by |
|---|---|
Shishi_asn1 safe
|
safe as allocated by |
int32_t cksumtype
|
input checksum type to store in SAFE. |
const char * cksum
|
input checksum data to store in SAFE. |
size_t cksumlen
|
size of input checksum data to store in SAFE. |
Overview
Store checksum value in SAFE. A checksum is usually created by calling shishi_checksum() on some application specific data using the key from the ticket that is being used. To save time, you may want to use shishi_safe_build() instead, which calculates the checksum and calls this function in one step.
Return value
Returns SHISHI_OK iff successful.
Releases
10 releases since Debian 4.0 (Etch); the text changed 5 times.