shishi_authenticator_set_cksum3
Api function
Usage
#include <shishi.h>
int shishi_authenticator_set_cksum(Shishi * handle, Shishi_asn1 authenticator, int32_t cksumtype, char * cksum, size_t cksumlen);
Arguments
Shishi * handle
|
shishi handle as allocated by |
|---|---|
Shishi_asn1 authenticator
|
authenticator as allocated by |
int32_t cksumtype
|
input checksum type to store in authenticator. |
char * cksum
|
input checksum data to store in authenticator. |
size_t cksumlen
|
size of input checksum data to store in authenticator. |
Overview
Store checksum value in authenticator. 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_authenticator_add_cksum() 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.