Discuss this help topic in SecureBlackbox Forum

TElSSLClient.OnCertificateNeeded

TElSSLClient     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Deprecated. Use OnCertificateNeededEx event instead.

Declaration

[C#/Java]
    event TSBCertificateNeededEvent OnCertificateNeeded;
    delegate void TSBCertificateNeededEvent(object Sender, ref byte[] CertificateBuffer, ref long CertificateSize, ref byte[] PrivateKeyBuffer, ref long PrivateKeySize, TClientCertificateType CertificateType);

[VB.NET]
    Event OnCertificateNeeded As TSBCertificateNeededEvent
    Delegate Sub TSBCertificateNeededEvent(ByVal Sender As Object, ByRef CertificateBuffer As Byte(), ByRef CertificateSize As Long, ByRef PrivateKeyBuffer As Byte(), ByRef PrivateKeySize As Long, ByVal CertificateType As TClientCertificateType)

[Pascal]
    property OnCertificateNeeded : TSBCertificateNeededEvent;
    TSBCertificateNeededEvent = procedure(Sender: TObject; CertificateBuffer: pointer; var CertificateSize: LongInt; PrivateKeyBuffer: pointer; var PrivateKeySize: LongInt; CertificateType : TClientCertificateType) of object;

[C++]
    void get_OnCertificateNeeded(TSBCertificateNeededEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnCertificateNeeded(TSBCertificateNeededEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBCertificateNeededEvent)(void * _ObjectData, TObjectHandle Sender, void * CertificateBuffer, int32_t &CertificateSize, void * PrivateKeyBuffer, int32_t &PrivateKeySize, TClientCertificateTypeRaw CertificateType);

[PHP]
    TSBCertificateNeededEvent|callable|NULL get_OnCertificateNeeded()
    void set_OnCertificateNeeded(TSBCertificateNeededEvent|callable|NULL $Value)
    callable TSBCertificateNeededEvent(TObject $Sender, TSBPointer|NULL $CertificateBuffer, integer &$CertificateSize, TSBPointer|NULL $PrivateKeyBuffer, integer &$PrivateKeySize, integer $CertificateType)

Parameters

  • CertificateBuffer - Contains a buffer for the certificate
  • CertificateSize - When the event handler is called, this parameter contains the size of the buffer passed via CertificateBuffer. The event handler should put the data to the buffer and return the size of the data in CertificateSize
  • PrivateKeyBuffer - Contains a buffer for the private key that corresponds to the given certificate
  • PrivateKeySize - When the event handler is called, this parameter contains the size of the buffer passed via PrivateKeyBuffer. The event handler should put the data to the buffer and return the size of the data in PrivateKeySize
  • CertificateType - specifies the type of certificate requested.

TClientCertificateType values:


Description

    This event is fired by TElSSLClient when the negotiated protocol requires a client-side X509 certificate to be used during session.

See also:     TElSSLClass.OnCertificateValidate    

Discuss this help topic in SecureBlackbox Forum