Skip to main content
Open topic with navigation

SecurityLocalUnregisterApplicationProtocol

CAPL Functions » Security » SecurityLocalUnregisterApplicationProtocol Valid for: CANoe DE • CANoe4SW DE

Function Syntax

  • long SecurityLocalUnregisterApplicationProtocol(char applicationProtocolUserDefinedId[]) // form 1
  • long SecurityLocalUnregisterApplicationProtocol(char applicationProtocolUserDefinedId[], dword vLanId) // form 2

Description

Unregisters the reception of the application protocol with the specified User Defined Id. The node will no longer receive this application protocol and the callbacks OnSecurityLocalApplicationProtocolRxFinished or OnSecurityLocalApplicationProtocolTxFinished will also no longer be called. The call of SecurityLocalAllowNetworkWideRegistrations is a precondition for using this function.

Parameters

Return Values

  • 1: Success.
  • -1: The specified applicationProtocolUserDefinedId has not been registered.
  • -2: SecurityLocalAllowNetworkWideRegistrations must be called before using this function.
  • -5: The specified applicationProtocolUserDefinedId has not been registered on the same VLAN.
  • -6: The Security Manager does not support this function. (Security Manager V2.3.9 or later required).
  • -10: Security is not usable. Reasons can be: Security Manager version is too old. Tool Version is too old. Security Profile is invalid.

Example