search for: get_key

Displaying 20 results from an estimated 76 matches for "get_key".

2019 Nov 29
0
[common PATCH 2/2] options: allow a UUID as identifier for --key
...s/decrypt.c index 3511d9f..683cf5e 100644 --- a/options/decrypt.c +++ b/options/decrypt.c @@ -86,7 +86,13 @@ inspect_do_decrypt (guestfs_h *g, struct key_store *ks) char mapname[32]; make_mapname (partitions[i], mapname, sizeof mapname); - CLEANUP_FREE_STRING_LIST char **keys = get_keys (ks, partitions[i]); +#ifdef GUESTFS_HAVE_LUKS_UUID + CLEANUP_FREE char *uuid = guestfs_luks_uuid (g, partitions[i]); +#else + const char *uuid = NULL; +#endif + + CLEANUP_FREE_STRING_LIST char **keys = get_keys (ks, partitions[i], uuid); assert (guestfs_int_count_strings (ke...
2019 Nov 26
0
[PATCH common v2 2/3] options: Allow multiple --key parameters.
...for (i = 0; partitions[i] != NULL; ++i) { CLEANUP_FREE char *type = guestfs_vfs_type (g, partitions[i]); if (type && STREQ (type, "crypto_LUKS")) { char mapname[32]; make_mapname (partitions[i], mapname, sizeof mapname); - CLEANUP_FREE char *key = get_key (ks, partitions[i]); - /* XXX Should we call guestfs_luks_open_ro if readonly flag - * is set? This might break 'mount_ro'. - */ - if (guestfs_luks_open (g, partitions[i], key, mapname) == -1) - exit (EXIT_FAILURE); - + CLEANUP_FREE_STRING_LIST char **keys...
2019 Nov 26
6
[PATCH options v2 0/3] options: Allow multiple and default --key parameters.
v1: https://www.redhat.com/archives/libguestfs/2019-November/msg00036.html
2013 Oct 31
0
Upgrade to Lua 5.2.2, add filesystem module and get_key binding
Ferenc Wagner <wferi at niif.hu> writes: > Geert Stappers <stappers at stappers.nl> writes: > >> Op 2013-10-15 om 20:03 schreef Ferenc W?gner: >> >>> lua: import Lua 5.2.2 >> >> Posted as [patch01/21] >> Which was too big for the mailinglist. >> So some other way is needed to share that information ... > > Hmm, yes. The
2019 Nov 27
1
Re: [PATCH common v2 2/3] options: Allow multiple --key parameters.
...a > single device. For example: > > tool --key /dev/sda1:key:trykey1 --key /dev/sda1:key:trykey2 > > would try "trykey1" and "trykey2" against /dev/sda1. > --- Mostly LGTM, just one note/question below. > + CLEANUP_FREE_STRING_LIST char **keys = get_keys (ks, partitions[i]); > + > + if (guestfs_int_count_strings (keys) == 0) > + error (EXIT_FAILURE, 0, > + _("no key was provided to open LUKS encrypted %s, " > + "try using --key on the command line"), > +...
2019 Nov 12
0
[PATCH 2/2] options: Allow multiple --key parameters and default keys.
...for (i = 0; partitions[i] != NULL; ++i) { CLEANUP_FREE char *type = guestfs_vfs_type (g, partitions[i]); if (type && STREQ (type, "crypto_LUKS")) { char mapname[32]; make_mapname (partitions[i], mapname, sizeof mapname); - CLEANUP_FREE char *key = get_key (ks, partitions[i]); - /* XXX Should we call guestfs_luks_open_ro if readonly flag - * is set? This might break 'mount_ro'. - */ - if (guestfs_luks_open (g, partitions[i], key, mapname) == -1) - exit (EXIT_FAILURE); - + CLEANUP_FREE_STRING_LIST char **keys...
2019 Nov 29
8
[PATCH 0/1] Allow UUIDs for --key identifiers.
This combined patch series enables to decrypt LUKS devices on inspection by allowing the UUID of the LUKS device with the --key syntax. I opted for reusing the option instead of adding another one, as I think that device names and UUIDs are different enough that can be properly distinguished. A test for this (patch #4) can be applied only when the patches for common are applied, and the
2010 Oct 02
4
[PATCH 0/4] some fixes on elflink branch
...nder (4): elflink: Cleanup some warnings elflink: Fix the wrong malloc size in enter_cmdline elflink: Do clear screen even if we have no pDraw_Menu method elflink: Add Ctrl-p + Ctrl-n key binds core/elflink/cli.c | 10 +++++----- core/elflink/execute.c | 3 +++ core/elflink/get_key.c | 2 ++ core/elflink/getadv.c | 2 +- core/elflink/load_env32.c | 11 ++++++----- core/elflink/readconfig.c | 1 - 6 files changed, 17 insertions(+), 12 deletions(-)
2013 Oct 16
3
Upgrade to Lua 5.2.2, add filesystem module and get_key binding
Geert Stappers <stappers at stappers.nl> writes: > Op 2013-10-15 om 20:03 schreef Ferenc W?gner: > >> lua: import Lua 5.2.2 > > Posted as [patch01/21] > Which was too big for the mailinglist. > So some other way is needed to share that information ... Hmm, yes. The series is available at https://github.com/wferi/syslinux as well (lua52 branch, based on upstream
2008 Dec 09
1
COM32: console_ansi_raw() and later segfaults
For the read-only shell that I'm working on, I'm running into a slight snag. I'm trying to build a paging command (emulating the function of more). It seems get_key() is probably the best function to use for obtaining just a single key sequence. On my first run, I tried to call console_ansi_raw(), then get_key() then console_ansi_std() to change it back to a more normal mode. When I then attempt to use fgets() (in Linux, not syslinux/com32), it segfaults. I...
2014 Jan 05
2
Syslinux: Pending patches
Searching threads back to 2013-07-01 (date of last message on thread), I've come up with the folloowing: -Needs review for inclusion: 12/26 Init cache once 11/27 efi PE header set 11/21 FSUUID for ext2 filesystem 10/15 Upgrade to Lua 5.2.2, add filesystem module and get_key binding (21) 09/23 com32: hdt: fix memory leak 10/3/12-12/16 4k sector support 10/18 MultiFS from MultiDisk 10/07 Lua get_key & example (is this in the 5.2.2 upgrade?) -More Review/work required before inclusion (based on threads) 09/30 [PATCH v2] core: Check size of ldlinux.sys at building ti...
2019 Nov 12
4
[PATCH 1/2] options: Fixes and enhancements to --key parsing.
The first patch fixes a rather serious bug, the second patch allows multiple --key parameters and default parameters. There is a third patch to libguestfs which adds a test, coming up. I did not yet review and fix the documentation. I think we need to centralize it in one place because at the moment the same documentation for --key is copy/pasted all over the tools. Rich.
2012 Nov 02
10
[PATCH 0/9] elflink fixes
...sting Syslinux 5.00-pre9. Unless anyone has any concerns these will make it into Syslinux 5.00-pre10. Matt Fleming (9): pxe: Don't call open_config() from the pxe core ldlinux: Print a warning if no config file is found ldlinux: Fix logic if no DEFAULT or UI directive is found ldlinux: get_key() requires raw access to user input com32: Include .init_array section in .ctors in linker script CLI: Fix command history traversal win: Fix installing to a directory win: Print error message if we fail to install to --directory CLI: Add Ctrl + V support for printing the Syslinux version...
2011 Feb 17
5
[PATCH 0/4] Reduce core size
...include/sys/times.h | 8 +- com32/lib/sys/times.c | 42 ---- core/elflink/abort_new.c | 10 + core/elflink/cli.c | 410 ------------------------------------ core/elflink/cli.h | 23 -- core/elflink/execute.c | 4 +- core/elflink/get_key.c | 175 ---------------- core/elflink/getkey.h | 80 ------- core/elflink/load_env32.c | 50 +----- elf_gen_dep.sh | 22 ++- 16 files changed, 584 insertions(+), 786 deletions(-) create mode 100644 com32/elflink/modules/cli.c create mode 100644 co...
2013 Oct 15
0
Upgrade to Lua 5.2.2, add filesystem module and get_key binding
...support freopen() > sys/module.h: remove the #ifdef DYNAMIC_MODULE condition > sys/module.h: fix some typos in function documentations > lua: enable dynamic module loading > lua: add the LuaFileSystem library > lua: reactivate the syslinux extension module > lua: bind get_key() in the syslinux module > lua: also reactivate the cpu, dhcp, dmi, pci and vesa extension > modules > lua: make the dmi module standalone > > com32/include/dev.h | 1 + > com32/include/stdlib.h | 7 +- > com32/include/sys/modu...
2006 May 25
1
pxelinux/mboot confused about e820 memory maps on HP Proliant BIOS's
...00 -0700 @@ -72,7 +72,7 @@ { console_ansi_raw(); - printf("CLK_TCK = %d\n", (int)CLK_TCK); + printf("CLOCKS_PER_SEC = %d\n", (int)CLOCKS_PER_SEC); printf("Press keys, end with Ctrl-C...\n"); for (;;) { --- baseline-syslinux/./syslinux-3.11/com32/libutil/get_key.c 2006-05-25 14:03:31.000000000 -0700 +++ fixed-syslinux/./syslinux-3.11/com32/libutil/get_key.c 2006-05-25 14:03:01.000000000 -0700 @@ -116,7 +116,7 @@ }; #define NCODES ((int)(sizeof keycodes/sizeof(struct keycode))) -#define KEY_TIMEOUT ((CLK_TCK+9)/10) +#define KEY_TIMEOUT ((CLOCKS_PER_SEC+...
2014 Sep 06
2
keystrokes
...a common user, "nothing special" doesn't seem exactly the > > same as "<enter>". > > > > I had already seen [Ctrl+J] being the same as [Enter] in "cli.c", but > > I couldn't find the meaning (or intention of) [Ctrl+M]. > > get_key() returns 13 (ASCII CR, \r) for Enter, just like for Ctrl-M. > Ctrl-J is LF (\n). Either or both is used to terminate lines under > different operating systems, so it makes sense to handle them the same. > > > [Ctrl+M] _seems_ to be behaving as [Enter], but since it is not in >...
2012 May 04
3
[GIT PULL] elflink fixes
...with his config files under ISOLINUX and PXELINUX - basically TIMEOUT and TOTALTIMEOUT were broken. The patches I've pushed to the elflink branch fix this and also fix parsing of the ALLOWOPTIONS config directive. The following changes since commit d5e02fb16a11bfdbce1e90a39e6cb5f2ad925389: get_key: Valid key values are positive (2012-04-17 11:25:53 -0700) are available in the git repository at: git://git.zytor.com/users/mfleming/syslinux.git elflink Matt Fleming (3): ldlinux: Don't drop args if we auto-lookup cmd extension elflink: Fix TIMEOUT and TOTALTIMEOUT handling...
2013 Oct 23
0
syslinux lua support
...SA > mode. However, I need to have raw access to the stdin if I am to > design a menu drawing system in lua using ANSI control sequences > because I need input control over arrow keys and such. I don't get how you'd use both modes together. Anyway, I added a simple binding to the get_key() function in a patch series posted here last week (subject: Upgrade to Lua 5.2.2, add filesystem module and get_key binding). Start at https://gist.github.com/wferi/6989458 if interested. It works without changing the console mode. > Third, I need to get access to the cell dimensions. I have...
2014 Sep 06
0
keystrokes
...er>. > > Well, for a common user, "nothing special" doesn't seem exactly the > same as "<enter>". > > I had already seen [Ctrl+J] being the same as [Enter] in "cli.c", but > I couldn't find the meaning (or intention of) [Ctrl+M]. get_key() returns 13 (ASCII CR, \r) for Enter, just like for Ctrl-M. Ctrl-J is LF (\n). Either or both is used to terminate lines under different operating systems, so it makes sense to handle them the same. > [Ctrl+M] _seems_ to be behaving as [Enter], but since it is not in > "cli.c",...