diff options
author | Guo Mang <mang.guo@intel.com> | 2017-08-02 09:54:47 +0800 |
---|---|---|
committer | Guo Mang <mang.guo@intel.com> | 2017-09-05 19:45:08 +0800 |
commit | 6c128c65b5ec0e5b8b5a0ccb165f3afd29e485f8 (patch) | |
tree | 444372d92a0ae8991fe4d15eb3937df43690dfda /StdLib/PosixLib/GetPass/GetPass.c | |
parent | b207c6434d7a5a4502975d322312e07017e8a8cb (diff) | |
download | edk2-platforms-6c128c65b5ec0e5b8b5a0ccb165f3afd29e485f8.tar.xz |
Remove core packages since we can get them from edk2 repository
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Guo Mang <mang.guo@intel.com>
Diffstat (limited to 'StdLib/PosixLib/GetPass/GetPass.c')
-rw-r--r-- | StdLib/PosixLib/GetPass/GetPass.c | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/StdLib/PosixLib/GetPass/GetPass.c b/StdLib/PosixLib/GetPass/GetPass.c deleted file mode 100644 index 46511e39a2..0000000000 --- a/StdLib/PosixLib/GetPass/GetPass.c +++ /dev/null @@ -1,57 +0,0 @@ -/** @file
- Implement the getpass function.
-
- Copyright (c) 2011 - 2014, Intel Corporation <BR>
- All rights reserved. This program and the accompanying materials
- are licensed and made available under the terms and conditions of the BSD License
- which accompanies this distribution. The full text of the license may be found at
- http://opensource.org/licenses/bsd-license.php
-
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-**/
-
-#include <Library/ShellLib.h>
-#include <Library/MemoryAllocationLib.h>
-#include <Library/UefiLib.h>
-#include <Library/PcdLib.h>
-
-static CHAR8 *ReturnStringAscii = NULL;
-
-char *getpass(const char *Prompt)
-{
- BOOLEAN Ascii;
- CHAR16 *ReturnString;
-
- Ascii = FALSE;
-
- Print(L"%a", Prompt);
-
- ReturnString = ShellFileHandleReturnLine (gEfiShellParametersProtocol->StdIn, &Ascii);
- if (ReturnString == NULL) {
- return (NULL);
- }
-
- ReturnStringAscii = AllocateZeroPool((StrLen(ReturnString)+1)*sizeof(CHAR8));
- if (ReturnStringAscii == NULL) {
- return (NULL);
- }
-
- UnicodeStrToAsciiStr(ReturnString, ReturnStringAscii);
-
- FreePool(ReturnString);
-
- return (ReturnStringAscii);
-}
-
-EFI_STATUS
-EFIAPI
-DestructMePlease (
- IN EFI_HANDLE ImageHandle,
- IN EFI_SYSTEM_TABLE *SystemTable
- )
-{
- SHELL_FREE_NON_NULL(ReturnStringAscii);
-
- return EFI_SUCCESS;
-}
|