jwtHeaderDelete (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

All

Firmware version:

1.70.00


jwtHeaderDelete deletes a header from the JWT object.

 

Input:

jwt : SYSHANDLE

A handle to the JWT object.

 

name : STRING

The name of the header to delete. If empty, all headers will be deleted.

 

 

 

Returns: INT

1

- Success

0

- Function is not supported.

-2

- Could not find JWT object.

-99

- Failed to delete header.

 

 

Declaration:

FUNCTION jwtHeaderDelete : INT;
VAR_INPUT
  jwt   : SYSHANDLE;
  name  : STRING;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
VAR
  rc  : INT;
  jwt : SYSHANDLE;
END_VAR;
 
BEGIN
  ...
  // Delete header
  rc := jwtHeaderDelete(jwt := jwt, name := "name");
  ...
END;
 
END_PROGRAM;