Discuss this help topic in SecureBlackbox Forum



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

This event is fired when TElHTTPSServer needs pre-shared key from user.


    event TSBServerKeyNeededEvent OnKeyNeeded;
    delegate void TSBServerKeyNeededEvent(Object Sender, string Identity, ref byte[] Key);

    Event OnKeyNeeded As TSBServerKeyNeededEvent
    Delegate Sub TSBServerKeyNeededEvent(ByVal Sender As Object, ByVal Identity As String, ByRef Key As Byte())

    property OnKeyNeeded : TSBSSLServerKeyNeededEvent;
    TSBSSLServerKeyNeededEvent = procedure(Sender : TObject; const Identity : string; var Key : ByteArray) of object;

    void get_OnKeyNeeded(TSBServerKeyNeededEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnKeyNeeded(TSBServerKeyNeededEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBServerKeyNeededEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcIdentity, int32_t szIdentity, uint8_t pKey[], int32_t &szKey);

    TSBServerKeyNeededEvent|callable|NULL get_OnKeyNeeded()
    void set_OnKeyNeeded(TSBServerKeyNeededEvent|callable|NULL $Value)
    callable TSBServerKeyNeededEvent(TObject $Sender, string $Identity, string &$Key)


  • Identity - identifier of the key choosen by client
  • Key - key. Must be initialized in event handler.
  • pcIdentity - identifier of the key choosen by client
  • szIdentity - the length of pcIdentity.
  • pKey -
  • szKey - the length of pcKey.


    This event is fired by TElHTTPSServer when it needs pre-shared key from the user. This event is fired only when PSK-based ciphersuites are used.

Discuss this help topic in SecureBlackbox Forum