]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProvider.c
1) Update code to use PcdFixedUsbCredentialProviderTokenFileName and PcdMaxVaria...
[mirror_edk2.git] / SecurityPkg / UserIdentification / UsbCredentialProviderDxe / UsbCredentialProvider.c
index f851bb2e2d444811d995bafd26711b12360b2618..f623f48304d1e0ae250a5c8ce5ef48243df44fb8 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Usb Credential Provider driver implemenetation.\r
     \r
-Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2014, 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
@@ -478,7 +478,7 @@ GetToken (
 \r
   BufSize = 0;\r
   Buffer  = NULL;\r
-  TokenFile = FixedPcdGetPtr (PcdFixedUsbCredentialProviderTokenFileName);\r
+  TokenFile = PcdGetPtr (PcdFixedUsbCredentialProviderTokenFileName);\r
   Status = GetFileData (TokenFile, (VOID *)&Buffer, &BufSize);\r
   if (EFI_ERROR (Status)) {\r
     DEBUG ((DEBUG_ERROR, "Read file %s from USB error! Status=(%r)\n", TokenFile, Status));\r
@@ -1376,6 +1376,11 @@ UsbProviderInit (
 {\r
   EFI_STATUS  Status;\r
 \r
+  //\r
+  // It is NOT robust enough to be included in production.\r
+  //\r
+  #error "This implementation is just a sample, please comment this line if you really want to use this driver."\r
+\r
   //\r
   // Init credential table.\r
   //\r