1.3.5.10 WDRV_PIC32MZW_AuthCtxSharedKey Function

C

WDRV_PIC32MZW_STATUS WDRV_PIC32MZW_AuthCtxSharedKey
(
WDRV_PIC32MZW_AUTH_CONTEXT *const pAuthCtx,
bool enable
)

Summary

Enable or disable Shared Key authentication in an authentication context.

Description

The authentication context is updated to enable or disable Shared Key authentication.

Precondition

None.

Parameters

ParamDescription
pAuthCtxPointer to an authentication context.
enableTrue to enable Shared Key authentication, false to disable.

Returns

WDRV_PIC32MZW_STATUS_OK - The context has been updated.

WDRV_PIC32MZW_STATUS_INVALID_ARG - The parameters were incorrect.

Remarks

Shared Key authentication is initialised as disabled by WDRV_PIC32MZW_AuthCtxSetWEP. Shared Key is not available when the device is an authenticator. Shared Key authentication is only attempted if Open System authentication fails (i.e. not supported by the authenticator).