.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_set_enc_part" 3 "1.0.2" "shishi" "shishi" .SH NAME shishi_priv_set_enc_part \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_priv_set_enc_part(Shishi * " handle ", Shishi_asn1 " priv ", int32_t " etype ", const char * " encpart ", size_t " encpartlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 priv" 12 priv as allocated by \fBshishi_priv()\fP. .IP "int32_t etype" 12 input encryption type to store in PRIV. .IP "const char * encpart" 12 input encrypted data to store in PRIV. .IP "size_t encpartlen" 12 size of input encrypted data to store in PRIV. .SH "DESCRIPTION" Store encrypted data in PRIV. The encrypted data is usually created by calling \fBshishi_encrypt()\fP on some application specific data using the key from the ticket that is being used. To save time, you may want to use \fBshishi_priv_build()\fP instead, which encryptes the data and calls this function in one step. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . .SH COPYRIGHT Copyright \(co 2002-2010 Simon Josefsson. .br 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. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual.