From b87fc6b140772ba3017de311c7063c259424264c Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 15 Aug 2016 17:11:31 +0200 Subject: First public release. Used by VeraCrypt 1.18. --- DcsCfg/DcsCfgSetup.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 DcsCfg/DcsCfgSetup.c (limited to 'DcsCfg/DcsCfgSetup.c') diff --git a/DcsCfg/DcsCfgSetup.c b/DcsCfg/DcsCfgSetup.c new file mode 100644 index 0000000..d773fb7 --- /dev/null +++ b/DcsCfg/DcsCfgSetup.c @@ -0,0 +1,39 @@ +/** @file +DCS configuration tool. Interactive setup. + +Copyright (c) 2016. Disk Cryptography Services for EFI (DCS), Alex Kolotnikov, Alex Kolotnikov +Copyright (c) 2016. VeraCrypt, Mounir IDRASSI + +This program and the accompanying materials +are licensed and made available under the terms and conditions +of the GNU Lesser General Public License, version 3.0 (LGPL-3.0). + +The full text of the license may be found at +https://opensource.org/licenses/LGPL-3.0 +**/ + +#include +#include +#include + +#include +#include + +#include "DcsCfg.h" + +////////////////////////////////////////////////////////////////////////// +// Interactive setup +////////////////////////////////////////////////////////////////////////// + +EFI_STATUS +DcsInteractiveSetup() { + EFI_STATUS res = EFI_SUCCESS; + CHAR8 cmd[128]; + InitBio(); + InitFS(); + InitGraph(); + gST->ConOut->EnableCursor(gST->ConOut, TRUE); + ERR_PRINT(L"\n\rInteractive setup is not implemented! Press enter to continue\n\r"); + AskAsciiString("\rDCS>", cmd, sizeof(cmd), 1); + return res; +} -- cgit v1.2.3