]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProvider.c
Update UID drivers to align with latest UEFI spec 2.3.1 errata A.
[mirror_edk2.git] / SecurityPkg / UserIdentification / UsbCredentialProviderDxe / UsbCredentialProvider.c
index 6c22bfb2bb2922be2c4ac33b14a7cc15c6644c46..2b79354fbd9805f9b3e5925100b04ec7d6e245b1 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Usb Credential Provider driver implemenetation.\r
     \r
 /** @file\r
   Usb Credential Provider driver implemenetation.\r
     \r
-Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials \r
 are licensed and made available under the terms and conditions of the BSD License \r
 which accompanies this distribution.  The full text of the license may be found at \r
 This program and the accompanying materials \r
 are licensed and made available under the terms and conditions of the BSD License \r
 which accompanies this distribution.  The full text of the license may be found at \r
@@ -1037,25 +1037,10 @@ CredentialUser (
       } \r
     }\r
   }\r
       } \r
     }\r
   }\r
-  FreePool (UserInfo);\r
-  \r
-  //\r
-  // The read token mismatch with the User's Token.\r
-  // Only check token.\r
-  //\r
-  for (Index = 0; Index < mUsbTable->Count; Index++) {\r
-    UserToken = mUsbTable->UserInfo[Index].Token;\r
-    if (CompareMem (UserToken, ReadToken, HASHED_CREDENTIAL_LEN) == 0) {\r
-      //\r
-      // The read token matches with the one in UsbTable.\r
-      //\r
-      UserId = (UINT8 *) &mUsbTable->UserInfo[Index].UserId;\r
-      CopyMem (Identifier, UserId, sizeof (EFI_USER_INFO_IDENTIFIER));\r
-      return EFI_SUCCESS;\r
-    } \r
-  }\r
-  \r
-  return EFI_NOT_FOUND;\r
+\r
+  FreePool (UserInfo); \r
+    \r
+  return EFI_NOT_READY;\r
 }\r
 \r
 \r
 }\r
 \r
 \r