Server side: UserIdentityToken provided with None security policy is refused
Description
UserIdentityToken provided by client with None security policy encryption algorithm is refused whereas this is a configured security policy in server.
Analysis
The constant SOPC_String containing None security policy URI is wrongly defined since sizeof
was used to defined the SOPC_String length. Therefore length was string length + 1 (including '\0') and comparison with the SOPC_String decoded was returning false
due to the difference of string length field.
Fix
The constant SOPC_String containing None security policy URI should use sizeof(<string>) - 1
as length field value.