Vtk_ValidationAddReqExtForSingleCert
Toolkit Reference

prevnext

Vtk_ValidationAddReqExtForSingleCert

#include <vtk_valid.h>
#include <vtk_err.h>
Vtk_uint32 Vtk_ValidationAddReqExtForSingleCert(
const Vtk_Ctxt *ctxt, /* input */
Vtk_Validation *val, /* input/output */
const Vtk_Cert *cert, /* input */
const Vtk_Cert *issuerCert, /* input */
const Vtk_Extension *ext, /* input */
);

Description

This validation function adds an extension to a specific certificate in a validation request. The certificate and issuer certificate information passed in this function are used to identify the certificate to which the application wants an extension added.

Compare this function with the Vtk_ValidationAddReqExtForSingleCert function which identifies the certificate using its Vtk_ValHdl.

Parameters

ctxt Pointer to Toolkit context created using the Vtk_CtxtNew function and for which memory has been allocated.
val Pointer to the validation query structure that contains certificates to be validated.
cert Pointer to the certificate in the validation query structure to add the extension.
issuerCert Pointer to issuer certificate of the certificate to which an extension is to be added. This value can be NULL if the issuer certificate was added into the Vtk_Ctxt.
ext Pointer to the extension to add to the specific certificate.

Return Value
VTK_OK The function has completed successfully and the extension has been added to the certificate in the validation query.
error code The function has failed. For information about possible error values, refer to Appendix 

Notes

An application can add extensions to the entire request as well as individual certificates in the validation request.


See Also

Vtk_ValidationAddReqExt

Vtk_ValidationAddReqExtForSingleCertHdl

prevnext


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