NetSock_CfgSecureClientTrustCallBack
Configure client socket's trust call back function.
File
net_sock.h/net_sock.c
Called from
Application
Prototype
CPU_BOOLEAN NetSock_CfgSecureClientTrustCallBack(NET_SOCK_ID sock_id,
NET_SOCK_SECURE_TRUST_FNCT call_back_fnct,
NET_ERR *p_err);
Arguments
sock_id
Socket descriptor/handle identifier of client socket to configure trust call back function.
call_back_fnct
Pointer to the trust call back function.
p_err
Pointer to variable that will receive the return error code from this function:
NET_SOCK_ERR_NONENET_SOCK_ERR_NOT_USEDNET_SOCK_ERR_INVALID_ARGNET_SOCK_ERR_INVALID_TYPENET_SOCK_ERR_INVALID_STATENET_SOCK_ERR_INVALID_OPNET_SOCK_ERR_API_DISNET_INIT_ERR_NOT_COMPLETEDNET_SOCK_ERR_INVALID_SOCKNET_SECURE_ERR_NOT_AVAILNET_ERR_FAULT_LOCK_ACQUIRE
Returned Value
DEF_OK,
trust call back function successfully configured.
DEF_FAIL,
otherwise.
Required Configuration
Available only if NET_SECURE_CFG_EN is enabled (see section Transport Layer Security Configuration).
Notes / Warnings
The socket’s secure mode must be configured before calling this function, see function NetSock_CfgSecure().