Function

CertGetSubjectCertificateFromStore

Directives

External
Name
Stdcall

Module

wcrypt2

Last Modified

7/15/2014 3:26:44 PM

Comments

+-------------------------------------------------------------------------
  Get the subject certificate context uniquely identified by its Issuer and
  SerialNumber from the store.
  If the certificate isn't found, NULL is returned. Otherwise, a pointer to
  a read only CERT_CONTEXT is returned. CERT_CONTEXT must be freed by calling
  CertFreeCertificateContext. CertDuplicateCertificateContext can be called to make a
  duplicate.
  The returned certificate might not be valid. Normally, it would be
  verified when getting its issuer certificate (CertGetIssuerCertificateFromStore).
--------------------------------------------------------------------------

Scope

Interfaced

Declaration

function CertGetSubjectCertificateFromStore(hCertStore :HCERTSTORE;
                                            dwCertEncodingType :DWORD;
                                            pCertId :PCERT_INFO         // Only the Issuer and SerialNumber
                                            ):PCCERT_CONTEXT ; stdcall; // fields are used

Called-By Hierarchy


CertGetSubjectCertificateFromStore
          tCryptography.CheckSig┘ 
    tCryptography.Certsigndata┘   
      tCryptography.SignData┘     

Called-By

Name Declaration Comments
tCryptography.CheckSig function CheckSig(pBlob: pointer; Blobsize: DWORD): boolean; -


Source