Discuss this help topic in SecureBlackbox Forum

TElSSLServer.OnGetSrpDb

TElSSLServer     


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


This event is fired when SRP database entry is requested.

Declaration

[C#]
    event TSBServerSrpDbNeededEvent OnGetSrpDb;
    delegate void TSBServerSrpDbNeededEvent(Object Sender, string UserName, ref byte[] N, ref byte[] G, ref byte[] S, ref byte[] V);

[VB.NET]
    Event OnGetSrpDb As TSBServerSrpDbNeededEvent
    Delegate Sub TSBServerSrpDbNeededEvent(ByVal Sender As Object, ByVal UserName As String, ByRef N As Byte(), ByRef G As Byte(), ByRef S As Byte(), ByRef V As Byte())

[Pascal]
    property OnGetSrpDb : TSBServerSrpDbNeededEvent;
    TSBServerSrpDbNeededEvent = function(Sender: TObject; const UserName: string; var N, G, S, V: ByteArray): boolean of object;

[C++]
    void get_OnGetSrpDb(TSBServerSrpDbNeededEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnGetSrpDb(TSBServerSrpDbNeededEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBServerSrpDbNeededEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcUserName, int32_t szUserName, uint8_t pN[], int32_t &szN, uint8_t pG[], int32_t &szG, uint8_t pS[], int32_t &szS, uint8_t pV[], int32_t &szV);

[PHP]
    TSBServerSrpDbNeededEvent|callable|NULL get_OnGetSrpDb()
    void set_OnGetSrpDb(TSBServerSrpDbNeededEvent|callable|NULL $Value)
    callable TSBServerSrpDbNeededEvent(TObject $Sender, string $UserName, string &$N, string &$G, string &$S, string &$V)

[Java]
    TSBServerSrpDbNeededEvent getOnGetSrpDb();
    void setOnGetSrpDb(TSBServerSrpDbNeededEvent Value);
    TSBServerSrpDbNeededEvent.Callback OnGetSrpDb = new TSBServerSrpDbNeededEvent.Callback() {
        public boolean TSBServerSrpDbNeededEventCallback(TObject Sender, String UserName, byte[] N, byte[] G, byte[] S, byte[] V) {
            //...
        }
    }

Parameters

  • UserName - user name.
  • N - SRP group's prime.
  • G - SRP group's generator modulo.
  • S - SRP salt.
  • V - SRP password verifier.
  • pcUserName - user name.
  • szUserName - the length of pcUserName.
  • pN - SRP group's prime.
  • szN - the length of pcN.
  • pG - SRP group's generator modulo.
  • szG - the length of pcG.
  • pS - SRP salt.
  • szS - the length of pcS.
  • pV - SRP password verifier.
  • szV - the length of pcV.

Return value

This event should return true if the database entry was successfully retrieved.

Description

This event is fired by the component when a SRP database entry corresponding to the specified user name is needed. The handler shall provide the requested data via the corresponding parameters, and return true on success.

Discuss this help topic in SecureBlackbox Forum