VMS Help  —  CDSA  CDSA_API, CL CertVerifyWithKey
 NAME

   CL_CertVerifyWithKey,
   CSSM_CL_CertVerifyWithKey - Verify with a key (CDSA)

 SYNOPSIS

   # include <cssm.h>

   API:
        CSSM_RETURN CSSMAPI CSSM_CL_CertVerifyWithKey
        (CSSM_CL_HANDLE CLHandle,
        CSSM_CC_HANDLE CCHandle,
        const CSSM_DATA *CertToBeVerified)

   SPI:
        CSSM_RETURN CSSMCLI CL_CertVerifyWithKey
        (CSSM_CL_HANDLE CLHandle,
        CSSM_CC_HANDLE CCHandle,
        const CSSM_DATA *CertToBeVerified)

 LIBRARY

   Common Security Services Manager library (CDSA$INCSSM300_SHR.EXE)

 PARAMETERS

   CLHandle (input)
           The handle that describes the certificate library service module
           used to perform this function.

   CCHandle (input)
           A signature verification context defining the CSP, verification
           algorithm, and public key that must be used to perform the
           operation.

   CertToBeVerified (input)
           A signed certificate whose signature is to be verified.

 DESCRIPTION

   This function verifies that the CertToBeVerified parameter was signed
   using a specific private key and that the certificate has not been
   altered since it was signed using that private key. The public key
   corresponding to the private signing key is used in the verification
   process.

   The CCHandle, must be a signature verification context created using
   the function CSSM_CSP_CreateSignatureContext() (CSSM API), or
   CSP_CreateSignatureContext() (SPI). The context must specify the
   Cryptographic Services Provider (CSP) module, the verification
   algorithm, and the public verification key that must be used to
   perform this operation.

 RETURN VALUE

   A CSSM_RETURN value indicating success or specifying a particular
   error condition. The value CSSM_OK indicates success. All other values
   represent an error condition.

 ERRORS

   Errors are described in the CDSA technical standard.  See CDSA.

        CSSMERR_CL_INVALID_CONTEXT_HANDLE
        CSSMERR_CL_INVALID_CERT_POINTER
        CSSMERR_CL_UNKNOWN_FORMAT
        CSSMERR_CL_VERIFICATION_FAILURE

 SEE ALSO

   Books

   Intel CDSA Application Developer's Guide (see CDSA)

   Other Help Topics

   Functions for the CSSM API:

       CSSM_CL_CertVerify
       CSSM_CL_CrlVerify

   Functions for the CLI SPI:

       CL_CertVerify
       CL_CrlVerify
Close Help