Documentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
SecurityLocalRegisterApplicationProtocol
CAPL Functions » Security » SecurityLocalRegisterApplicationProtocol Valid for: CANoe DE • CANoe4SW DEFunction Syntax
long SecurityLocalRegisterApplicationProtocol(char applicationProtocolUserDefinedId[]) // form 1long SecurityLocalRegisterApplicationProtocol(char applicationProtocolUserDefinedId[], dword vLanId) // form 2
Description
Registers the reception of the application protocol with the specified User Defined Id. The node will receive this application protocol as soon as it is transmitted on the network and the callbacks OnSecurityLocalApplicationProtocolRxFinished or OnSecurityLocalApplicationProtocolTxFinished will also be called accordingly. The call of SecurityLocalAllowNetworkWideRegistrations is a precondition for using this function.Parameters
-
char applicationProtocolUserDefinedId[]
Name of the Application Protocol to register for (form 1 and form 2). -
dword vLanId
In case of Ethernet networks, the VLAN has to be specified as well.
Return Values
- 1: Success
- -1: The specified applicationProtocolUserDefinedId has already been registered.
- -2:
SecurityLocalAllowNetworkWideRegistrationsmust be called before using this function. - -3: The specified applicationProtocolUserDefinedId does not exist. Please check the definition in the used Security Profile.
- -4: The applicationProtocol for the specified UserDefinedId exist but is not available on this network.
- -5: The specified applicationProtocolUserDefinedId has already 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.