EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElX509Certificate.ValidateWithCA

TElX509Certificate     See also    


 

Validates the certificate signed by certificate authority (CA)

 
 

Declaration

[C#]
    bool ValidateWithCA(TElX509Certificate CACertificate);

[VB.NET]
    Function ValidateWithCA(ByVal CACertificate As TElX509Certificate) As Boolean

[Pascal]
    function ValidateWithCA(CACertificate : TElX509Certificate) : boolean;

[VB6]
    Sub IElCertificateX.ValidateWithCA(CACertificate As Byte(), Valid As Boolean)

[ActiveX]
    HRESULT _stdcall IElCertificateX.ValidateWithCA([in] VARIANT CACertificate, [out] VARIANT_BOOL * Valid);

[DLL]
    __stdcall BOOL SBX509ValidateWithCA(HANDLE handle, void* pCACertificate, int nCACertificateSize);
 
 

Parameters

  • [DLL]handle - handle to the TElX509Certificate object that was returned by Constructor
  • CACertificate (pCACertificate) - the certificate of the authority that issued the certificate being validated. [ActiveX] Buffer should contain a one-dimensional zero-based safe array with elements of type unsigned char (byte). The buffer contains the certificate in DER format. [DLL]The buffer contains the certificate in DER format.
  • [DLL]nCACertificateSize - the size of the buffer with issuer certificate
 
 

Return value

    True if certificate is valid.
    False otherwise.

 
 

Description

    Use this function to validate a certificate signed by certificate authority (CA). First you need to either set all certificate properties or load the certificate from the stream or from the buffer. Then call this function to do validation. Pass the certificate of the CA to this function as a parameter. To validate a self-signed certificate use Validate function.

 
 

See also:     Validate     LoadFromBuffer     LoadFromStream    

 
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2012, EldoS Corporation