]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/PosixLib/GetPass/GetPass.c
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / StdLib / PosixLib / GetPass / GetPass.c
diff --git a/StdLib/PosixLib/GetPass/GetPass.c b/StdLib/PosixLib/GetPass/GetPass.c
deleted file mode 100644 (file)
index 46511e3..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-/** @file\r
-  Implement the getpass function.\r
-\r
-  Copyright (c) 2011 - 2014, Intel Corporation <BR>\r
-  All rights reserved. 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
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-**/\r
-\r
-#include <Library/ShellLib.h>\r
-#include <Library/MemoryAllocationLib.h>\r
-#include <Library/UefiLib.h>\r
-#include <Library/PcdLib.h>\r
-\r
-static CHAR8   *ReturnStringAscii = NULL;\r
-\r
-char *getpass(const char *Prompt)\r
-{\r
-  BOOLEAN Ascii;\r
-  CHAR16  *ReturnString;\r
-\r
-  Ascii = FALSE;\r
-\r
-  Print(L"%a", Prompt);\r
-\r
-  ReturnString = ShellFileHandleReturnLine (gEfiShellParametersProtocol->StdIn, &Ascii);\r
-  if (ReturnString == NULL) {\r
-    return (NULL);\r
-  }\r
-\r
-  ReturnStringAscii = AllocateZeroPool((StrLen(ReturnString)+1)*sizeof(CHAR8));\r
-  if (ReturnStringAscii == NULL) {\r
-    return (NULL);\r
-  }\r
-\r
-  UnicodeStrToAsciiStr(ReturnString, ReturnStringAscii);\r
-\r
-  FreePool(ReturnString);\r
-\r
-  return (ReturnStringAscii);\r
-}\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-DestructMePlease (\r
-  IN EFI_HANDLE        ImageHandle,\r
-  IN EFI_SYSTEM_TABLE  *SystemTable\r
-  )\r
-{\r
-  SHELL_FREE_NON_NULL(ReturnStringAscii);\r
-\r
-  return EFI_SUCCESS;\r
-}\r