]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/UserIdentification/UserIdentifyManagerDxe/UserIdentifyManager.c
Update UID drivers to align with latest UEFI spec 2.3.1 errata A.
[mirror_edk2.git] / SecurityPkg / UserIdentification / UserIdentifyManagerDxe / UserIdentifyManager.c
index e105579115a89cf1864dfc5fb7962f4677049a79..64388130e1e4938d3a271c91e3cfaa1e9199caa0 100644 (file)
@@ -2319,7 +2319,7 @@ GetIdentifyType (
   Identify the User by the specfied provider.\r
 \r
   @param[in]  User                Handle of a user profile.\r
-  @param[in]  Provider            Points to the identifir of credential provider.\r
+  @param[in]  Provider            Points to the identifier of credential provider.\r
 \r
   @retval EFI_INVALID_PARAMETER   Provider is NULL.\r
   @retval EFI_NOT_FOUND           Fail to identify the specified user.\r
@@ -2340,7 +2340,6 @@ IdentifyByProviderId (
   EFI_GUID                      FormSetId;\r
   EFI_FORM_ID                   FormId;\r
   EFI_USER_CREDENTIAL_PROTOCOL  *UserCredential;\r
-  EFI_USER_INFO                 *IdInfo;\r
 \r
   if (Provider == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
@@ -2398,24 +2397,7 @@ IdentifyByProviderId (
       if (EFI_ERROR (Status)) {\r
         return Status;\r
       }\r
-\r
-      if (User == NULL) {\r
-        return EFI_SUCCESS;\r
-      }\r
       \r
-      //\r
-      // Get user ID information.\r
-      //\r
-      IdInfo  = NULL;\r
-      Status  = FindUserInfoByType (User, &IdInfo, EFI_USER_INFO_IDENTIFIER_RECORD);\r
-      ASSERT (IdInfo != NULL);\r
-\r
-      if (CompareMem ((UINT8 *) (IdInfo + 1), UserId, sizeof (EFI_USER_INFO_IDENTIFIER)) != 0) {\r
-        //\r
-        // One user name is selected, but the other's credential is given. Here no user passed.\r
-        //\r
-        break;\r
-      }\r
       return EFI_SUCCESS;\r
     }\r
   }\r