MSoPskKeyHandler Class Reference

class MSoPskKeyHandler

Interface to the client code which decides which PSK identity and value should be used to secure the connection.

Public Member Functions
void GetPskL (const HBufC8 *, HBufC8 *&, HBufC8 *&)

Member Functions Documentation

GetPskL(const HBufC8 *, HBufC8 *&, HBufC8 *&)

void GetPskL ( const HBufC8 * aPskIdentityHint,
HBufC8 *& aPskIdentity,
HBufC8 *& aPskKey
) [pure virtual]

Called during the TLS PSK handshake to get the PSK identity and value to be used to secure the connection.

Note that the meaning of the PSK identity hint is NOT defined by the TLS standard, therefore any application using PSK must previously agree the source of the PSK to be used and the interpretion of the (optional) PSK identity hint.

Parameters

const HBufC8 * aPskIdentityHint A ptr to an HBufC8 containing the "PSK identity hint", or NULL if the server did not send one.
HBufC8 *& aPskIdentity NULL passed in, must be set to an HBufC8 containing the PSK Identity to be used.
HBufC8 *& aPskKey NULL passed in, must be set to an HBufC8 containing the PSK key value to be used.