Vtk_OCSPSignCallBack
Toolkit Reference

prevnext

Vtk_OCSPSignCallBack

typedef int (VTK_CALLBACK*Vtk_OCSPSignCallback)
(
void *userHdl,
Vtk_Buffer *digest,
Vtk_Buffer *sigOut,
int maxSigOutBuf,
int padding
);

Description

This callback is used for signing OCSP requests. It enables the application to add signatures to the outgoing requests. When the Toolkit gets to the point of its processing where OCSP signing occurs, this callback directs the Toolkit to call back the application. The application will then create the signature on the token.

Once the application completes its processing, it returns a 0 or 1 to the Toolkit. The values are as follows:

Parameters


userHdl Parameter that the Toolkit calls. The application provides this parameter.
digest DER encoding of hashed data bytes.
sigout Buffer that the Toolkit allocates for the application to store the resulting signature.
Note: The application uses the length parameter to set the size of the signature written.
maxSigOutBuf Size of the sigOut buffer allocated by the Toolkit.
padding Type of padding requests. Use 1 to request PKCS#1 padding.

Notes

OCSP requests are not required to be signed.

This callback is set through the Vtk_CtxtSetOption.



See Also

Vtk_CtxtLogType

Vtk_LogOptions

prevnext


ValiCert, Inc.
http://www.valicert.com
Voice: +1.650.567.5469
Fax: (+1.650.254.2148
support@valicert.com