Selaa lähdekoodia

Fix/accescontrol default (#1113)

* Fixed mismatching function declaration and the resulting build error

* Fix #1112
Mark Giraud 6 vuotta sitten
vanhempi
commit
b4f1c9e347
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      plugins/ua_accesscontrol_default.c

+ 1 - 1
plugins/ua_accesscontrol_default.c

@@ -56,7 +56,7 @@ activateSession_default(const UA_NodeId *sessionId,
        &UA_TYPES[UA_TYPES_USERNAMEIDENTITYTOKEN]) {
         const UA_UserNameIdentityToken *token =
             (UA_UserNameIdentityToken*)userIdentityToken->content.decoded.data;
-        if(!UA_String_equal(&token->policyId, &username_policy))
+        if(!UA_String_equal(&token->policyId, &username_policy) || token->encryptionAlgorithm.length > 0)
             return UA_STATUSCODE_BADIDENTITYTOKENINVALID;
 
         /* Empty username and password */