a251b71915
* Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c, grub-core/disk/luks.c, grub-core/disk/geli.c, grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c, grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c, grub-core/lib/arg.c. (libgrubmods.a): Remove gcrypts cflags and cppflags. Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c, grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c, grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c. (grub-bin2h): Add libgcry.a. (grub-mkimage): Likewise. (grub-mkrelpath): Likewise. (grub-script-check): Likewise. (grub-editenv): Likewise. (grub-mkpasswd-pbkdf2): Likewise. (grub-pe2elf): Likewise. (grub-fstest): Likewise. (grub-mkfont): Likewise. (grub-mkdevicemap): Likewise. (grub-probe): Likewise. (grub-ofpath): Likewise. (grub-mklayout): Likewise. (example_unit_test): Likewise. (grub-menulst2cfg): Likewise. * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def. * grub-core/Makefile.core.def (cryptodisk): New module. (luks): Likewise. (geli): Likewise. * grub-core/disk/AFSplitter.c: New file. * grub-core/disk/cryptodisk.c: Likewise. * grub-core/disk/geli.c: Likewise. * grub-core/disk/luks.c: Likewise. * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on grub_util_is_lvm. (grub_util_get_dm_abstraction): New function. (grub_util_follow_gpart_up): Likewise. (grub_util_get_geom_abstraction): Likewise. (grub_util_get_dev_abstraction): Use new functions. (grub_util_pull_device): Pull GELI and LUKS. (grub_util_get_grub_dev): Handle LUKS and GELI. * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function. (grub_util_biosdisk_open): Use grub_util_get_fd_sectors. (follow_geom_up): Removed. (grub_util_fd_seek): New function. (open_device): Use grub_util_fd_seek. (nread): Rename to .. (grub_util_fd_read): ... this. All users updated. * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype. (grub_crypto_cbc_decrypt): Likewise. (grub_crypto_hmac_write): Likewise. (grub_crypto_hmac_buffer): Likewise. (grub_password_get): Extend to util. * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]: New member modname. (gcry_md_spec) [GRUB_UTIL]: Likewise. * include/grub/cryptodisk.h: New file. * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK. * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add LUKS and GELI. (grub_util_follow_gpart_up): New proto. * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise. (grub_util_fd_read): Likewise. (grub_cryptodisk_cheat_mount): Likewise. (grub_util_cryptodisk_print_uuid): Likewise. (grub_util_get_fd_sectors): Likewise. * util/grub-fstest.c (mount_crypt): New var. (fstest): Mount crypto if requested. (options): New option -C. (argp_parser): Parse -C. (main): Init and fini gcry. * util/grub-install.in: Support cryptodisk install. * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK. * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support cryptodisk. (prepare_grub_to_access_device): Likewise. * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get. * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe. (probe_cryptodisk_uuid): New function. (probe_abstraction): Likewise. (probe): Use new functions. * util/import_gcry.py: Create Makefile.utilgcry.def. Add modname member. Also-By: Michael Gorven <michael@gorven.za.net> Also-By: Clemens Fruhwirth <clemens@endorphin.org>
163 lines
2.5 KiB
Text
163 lines
2.5 KiB
Text
00_header
|
|
10_*
|
|
20_linux_xen
|
|
30_os-prober
|
|
40_custom
|
|
41_custom
|
|
*.1
|
|
*.8
|
|
aclocal.m4
|
|
ascii.bitmaps
|
|
ascii.h
|
|
autom4te.cache
|
|
build_env.mk
|
|
.bzrignore
|
|
config.cache
|
|
config.guess
|
|
config.h
|
|
config-util.h
|
|
config-util.h.in
|
|
config.log
|
|
config.status
|
|
config.sub
|
|
configure
|
|
DISTLIST
|
|
docs/*.info
|
|
docs/stamp-vti
|
|
docs/version.texi
|
|
*.elf
|
|
example_grub_script_test
|
|
example_scripted_test
|
|
example_unit_test
|
|
*.exec
|
|
genkernsyms.sh
|
|
gensymlist.sh
|
|
gentrigtables
|
|
grub-bin2h
|
|
grub_cmd_echo
|
|
grub_cmd_regexp
|
|
grub-editenv
|
|
grub-emu
|
|
grub_emu_init.c
|
|
grub_emu_init.h
|
|
grub-fstest
|
|
grub_fstest_init.c
|
|
grub_fstest_init.h
|
|
grub-install
|
|
grub-kbdcomp
|
|
grub-macho2img
|
|
grub-menulst2cfg
|
|
grub-mk*
|
|
grub-pe2elf
|
|
grub-probe
|
|
grub_probe_init.c
|
|
grub_probe_init.h
|
|
grub-reboot
|
|
grub_script_blanklines
|
|
grub_script_blockarg
|
|
grub_script_break
|
|
grub-script-check
|
|
grub_script_check_init.c
|
|
grub_script_check_init.h
|
|
grub_script_comments
|
|
grub_script_continue
|
|
grub_script_dollar
|
|
grub_script_echo1
|
|
grub_script_echo_keywords
|
|
grub_script_expansion
|
|
grub_script_final_semicolon
|
|
grub_script_for1
|
|
grub_script_functions
|
|
grub_script_if
|
|
grub_script_not
|
|
grub_script_return
|
|
grub_script_setparams
|
|
grub_script_shift
|
|
grub_script_vars1
|
|
grub_script_while1
|
|
grub_script.tab.c
|
|
grub_script.tab.h
|
|
grub_script.yy.c
|
|
grub_script.yy.h
|
|
grub-set-default
|
|
grub-setup
|
|
grub_setup_init.c
|
|
grub_setup_init.h
|
|
grub-shell
|
|
grub-shell-tester
|
|
*.img
|
|
*.image
|
|
include/grub/cpu
|
|
include/grub/machine
|
|
install-sh
|
|
lib/libgcrypt-grub
|
|
libgrub_a_init.c
|
|
*.lst
|
|
*.marker
|
|
Makefile
|
|
*.mod
|
|
mod-*.c
|
|
missing
|
|
partmap_test
|
|
*.pf2
|
|
*.pp
|
|
po/*.mo
|
|
po/grub.pot
|
|
stamp-h
|
|
stamp-h1
|
|
stamp-h.in
|
|
symlist.c
|
|
symlist.h
|
|
trigtables.c
|
|
update-grub_lib
|
|
unidata.c
|
|
Makefile.in
|
|
GPATH
|
|
GRTAGS
|
|
GSYMS
|
|
GTAGS
|
|
Makefile.tpl
|
|
compile
|
|
depcomp
|
|
mdate-sh
|
|
texinfo.tex
|
|
grub-core/lib/libgcrypt-grub
|
|
**/.deps
|
|
**/.deps-util
|
|
**/.deps-core
|
|
**/.dirstamp
|
|
Makefile.util.am
|
|
contrib
|
|
grub-core/Makefile.core.am
|
|
grub-core/Makefile.gcry.def
|
|
grub-core/contrib
|
|
grub-core/genmod.sh
|
|
grub-core/gensyminfo.sh
|
|
grub-core/modinfo.sh
|
|
grub-core/*.module
|
|
grub-core/*.pp
|
|
util/bash-completion.d/grub
|
|
grub-core/gnulib/alloca.h
|
|
grub-core/gnulib/arg-nonnull.h
|
|
grub-core/gnulib/c++defs.h
|
|
grub-core/gnulib/charset.alias
|
|
grub-core/gnulib/configmake.h
|
|
grub-core/gnulib/getopt.h
|
|
grub-core/gnulib/langinfo.h
|
|
grub-core/gnulib/ref-add.sed
|
|
grub-core/gnulib/ref-del.sed
|
|
grub-core/gnulib/stdio.h
|
|
grub-core/gnulib/stdlib.h
|
|
grub-core/gnulib/string.h
|
|
grub-core/gnulib/strings.h
|
|
grub-core/gnulib/sys
|
|
grub-core/gnulib/unistd.h
|
|
grub-core/gnulib/warn-on-use.h
|
|
grub-core/gnulib/wchar.h
|
|
grub-core/gnulib/wctype.h
|
|
grub-core/rs_decoder.S
|
|
widthspec.bin
|
|
widthspec.h
|
|
docs/stamp-1
|
|
docs/version-dev.texi
|
|
Makefile.utilgcry.def
|