TLSPSK Event
Requests a pre-shared key for TLS-PSK.
Syntax
typedef struct { __int64 ConnectionID; String Identity; String PSK; String Ciphersuite; } TsbxOCSPServerTLSPSKEventParams; typedef void __fastcall (__closure *TsbxOCSPServerTLSPSKEvent)(System::TObject* Sender, TsbxOCSPServerTLSPSKEventParams *e); __property TsbxOCSPServerTLSPSKEvent OnTLSPSK = { read=FOnTLSPSK, write=FOnTLSPSK };
Remarks
The component fires this event to report that a client has requested a TLS-PSK negotiation. ConnectionId indicates the unique connection ID that requested the PSK handshake.
Use Identity to look up for the corresponding pre-shared key in the server's database, then assign the key to the PSK parameter. If TLS 1.3 PSK is used, you will also need to assign the Ciphersuite parameter with the ciphersuite associated with that identity and their key.