1.1.29.2.4 WDRV_WINC_TLS_CS_CALLBACK Typedef

C

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

Description

Callback will be called to provide TLS cipher suite information.

Parameters

ParametersDescription
handleClient handle obtained by a call to WDRV_WINC_Open.
tlsCsHandleTLS cipher suite handle obtained by a call to WDRV_WINC_TLSCipherSuiteOpen.
pAlgorithmsPointer to buffer to receive cipher suite algorithm list.
numAlgorithmsNumber of cipher suite algorithms in the buffer provided.
successFlag 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.