1.1.19.19 WDRV_WINC_TLS_CS_CALLBACK

Function

void (*WDRV_WINC_TLS_CS_CALLBACK)
(
DRV_HANDLE handle,
WDRV_WINC_TLS_CS_HANDLE tlsCsHandle,
uint16_t *pAlgorithms,
uint8_t numAlgorithms,
bool success
)

Summary

TLS cipher suite callback.

Description

Callback will be called to provide TLS cipher suite information.

Precondition

WDRV_WINC_TLSCipherSuiteAlgGet must be called to register the callback.

Parameters

handle - Client handle obtained by a call to WDRV_WINC_Open.

tlsCsHandle - TLS cipher suite handle obtained by a call to WDRV_WINC_TLSCipherSuiteOpen.

pAlgorithms - Pointer to buffer to receive cipher suite algorithm list.

numAlgorithms - Number of cipher suite algorithms in the buffer provided.

success - Flag indicating if the operation was a success.

Returns

None.

Remarks

When used with WDRV_WINC_TLSCipherSuiteAlgSet, if any individual cipher suites are in error this callback will be called with pAlgorithms pointing to the cipher suite that failed (and numAlgorithms will be 1). The overall success or failure of the operation will be indicated by a final call to the callback with pAlgorithms being NULL. When used with WDRV_WINC_TLSCipherSuiteAlgGet, the overall success or failure of the operation will be indicated by a single call to the callback.