tfSslPskGetData
Table of Contents >> SSL Programmer's Reference
#include <trsocket.h> |
int tfSslPskGetData | (ttUserSslPskCBDataPtr pskPtr); |
Function Description
Call this function to get the latest PSK (TLS Pre-Shared Key) information negotiated for a connection.
Parameters
- pskPtr
- A pointer to a ttUserSslPskCBData structure. Set ttUserSslPskCBData‑>pskSocket to the socket to query. The remaining data in the structure will be filled in.
Returns
- TM_ENOERROR
- Successful.
- TM_EINVAL
- Null pointer.
- TM_EBADF
- Invalid socket descriptor.
- TM_ENOENT
- No PSK data (e.g. PSK not used during TLS handshake).