Commit graph

142 commits

Author SHA1 Message Date
Vladimir 'phcoder' Serbinenko
e16c2c65b9 React glacefully to in-middle out-of-memory. Fix few bugs. 2010-04-12 10:32:45 +02:00
Vladimir 'phcoder' Serbinenko
298ffd54b0 merge mainline into newreloc 2010-04-11 22:44:31 +02:00
Vladimir 'phcoder' Serbinenko
be124579b1 * lib/posix_wrap/locale.h: Add missing file.
Reported by: Seth Goldberg.
2010-04-10 02:08:01 +02:00
Vladimir 'phcoder' Serbinenko
88ba41253e Fix x86_64-efi compilation. 2010-04-03 22:55:57 +02:00
Vladimir 'phcoder' Serbinenko
cf10cead83 merge regexp into lclean 2010-04-03 20:07:53 +02:00
Vladimir 'phcoder' Serbinenko
651a6c17fe Add missing files 2010-04-03 20:07:09 +02:00
Vladimir 'phcoder' Serbinenko
1c7a1bab8c Definitively remove allocation from region start if no free header is present at the begining (at most 15 bytes loss) 2010-04-03 19:41:36 +02:00
Vladimir 'phcoder' Serbinenko
f0847685dd Merge mainline into newreloc 2010-04-03 17:47:59 +02:00
Vladimir 'phcoder' Serbinenko
3a5768645c First version of allocation from firmware 2010-04-03 11:53:29 +02:00
Vladimir 'phcoder' Serbinenko
accbdc88a5 Use scanline for relocator to allow multiple memory sources 2010-04-02 18:43:52 +02:00
Vladimir 'phcoder' Serbinenko
8b0800f66f merge mainline into newreloc 2010-04-01 22:17:26 +02:00
Vladimir 'phcoder' Serbinenko
66bf23d2e7 Use posix wrappers in lexer 2010-03-28 22:20:32 +02:00
Vladimir 'phcoder' Serbinenko
a64b15feed resynced with gnulib. Cleaned up wrapping layer 2010-03-28 21:43:42 +02:00
Vladimir 'phcoder' Serbinenko
0790690196 merge mainline into grub-file 2010-03-26 17:06:36 +01:00
Vladimir 'phcoder' Serbinenko
07096a4f27 Use alias->path 2010-02-14 20:05:09 +01:00
Vladimir 'phcoder' Serbinenko
8886d76d24 Rename get_time_args to set_time_args 2010-02-14 20:04:26 +01:00
Vladimir 'phcoder' Serbinenko
2d2a9cd5b6 GRUB_FILE implementation 2010-02-09 15:32:42 +01:00
Vladimir 'phcoder' Serbinenko
f84dc56090 Initial implementation of ofwclock 2010-02-07 22:56:25 +01:00
Vladimir 'phcoder' Serbinenko
d1de6ed1dc First compiling newreloc for ppc (not yet tested) 2010-02-06 00:33:20 +01:00
Vladimir 'phcoder' Serbinenko
473fc1a062 Make mips/relocator_asm.S more readable 2010-02-05 21:02:24 +01:00
Vladimir 'phcoder' Serbinenko
ddf23b9d81 relocator unloading support 2010-01-23 14:30:06 +01:00
Vladimir 'phcoder' Serbinenko
7d8c9ec63d newreloc on yeeloong 2010-01-23 13:30:24 +01:00
Vladimir 'phcoder' Serbinenko
3c83bc50db merge bootcheck and mainline into newreloc 2010-01-20 11:48:36 +01:00
Vladimir 'phcoder' Serbinenko
2d49abe9e7 merge mainline into asprintf 2010-01-20 07:36:17 +01:00
Vladimir 'phcoder' Serbinenko
3de254033c Fix x86_64-efi compilation 2010-01-18 12:01:13 +01:00
Vladimir 'phcoder' Serbinenko
72ebf8b87c Sort chunks 2010-01-17 12:42:28 +01:00
Vladimir 'phcoder' Serbinenko
def6307401 Be paranoid in relocator allocations 2010-01-15 11:34:22 +01:00
Vladimir 'phcoder' Serbinenko
9205ac07e3 Fix off-by-one error 2010-01-14 22:06:26 +01:00
Vladimir 'phcoder' Serbinenko
4a04699258 Fix a mistake with size calculation 2010-01-14 19:14:04 +01:00
Vladimir 'phcoder' Serbinenko
6d8ebf76c4 support relocator64 from x86_64 mode 2010-01-13 23:17:12 +01:00
Vladimir 'phcoder' Serbinenko
8b889c332a Fix bug when whole region is free 2010-01-13 17:25:49 +01:00
Vladimir 'phcoder' Serbinenko
37480ee490 Added needed casts 2010-01-13 13:41:15 +01:00
Vladimir 'phcoder' Serbinenko
73f6ce4ab2 x86_64 support for relocator 2010-01-12 23:30:52 +01:00
Vladimir 'phcoder' Serbinenko
cdab631686 Relocator16 support 2010-01-12 22:15:50 +01:00
Vladimir 'phcoder' Serbinenko
49a716be3b Possibility to prefer higher or lower chunks in relocator 2010-01-12 22:14:26 +01:00
Vladimir 'phcoder' Serbinenko
14933205d1 Relocator64 support 2010-01-12 17:48:51 +01:00
Vladimir 'phcoder' Serbinenko
1d24828f20 Fix out of memory hang. Add sanity checks 2010-01-12 17:47:14 +01:00
Vladimir 'phcoder' Serbinenko
8468cbeccd Fix typo in relocator32.S 2010-01-12 17:46:17 +01:00
Vladimir 'phcoder' Serbinenko
d45dca5ab3 Fix few bugs in relocators 2010-01-11 22:54:20 +01:00
Vladimir 'phcoder' Serbinenko
55b40bc68a Ported linux to relocator framework 2010-01-11 14:59:01 +01:00
Vladimir 'phcoder' Serbinenko
669a1c01fb Fix various mistakes 2010-01-11 13:43:31 +01:00
Vladimir 'phcoder' Serbinenko
796d2fa20e Remove uselees instruction 2010-01-11 13:42:45 +01:00
Vladimir 'phcoder' Serbinenko
b56495543a Fix variable name collision 2010-01-11 13:40:59 +01:00
Vladimir 'phcoder' Serbinenko
7e267737b6 Add align to .S files 2010-01-10 18:59:31 +01:00
Vladimir 'phcoder' Serbinenko
14e43c6e02 First working newreloc 2010-01-10 15:06:17 +01:00
Vladimir 'phcoder' Serbinenko
85a2cf749f merge mainline into mips 2010-01-10 13:34:48 +01:00
Vladimir 'phcoder' Serbinenko
6b60576149 merge mainline into newreloc 2010-01-10 01:56:47 +01:00
Vladimir 'phcoder' Serbinenko
95c7fc3f55 First compileable newreloc 2010-01-10 00:30:33 +01:00
Robert Millan
c1d2f1d81b Merge from trunk 2010-01-07 00:58:54 +00:00
Vladimir 'phcoder' Serbinenko
607a3701db 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
Merge crypto branch.

	* Makefile.in (pkglib_DATA):  Add crypto.lst.
	(crypto.lst): New target.
	* commands/hashsum.c: New file.
	* commands/password.c (check_password): Use grub_crypto_memcmp.
	* commands/password_pbkdf2.c: New file.
	* commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
	* conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
	normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
	(grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
	-I$(srcdir)/lib/libgcrypt_wrap.
	* conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
	(pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
	password_pbkdf2.mod.
	(crypto_mod_SOURCES): New variable.
	(crypto_mod_CFLAGS): Likewise.
	(crypto_mod_LDFLAGS): Likewise.
	(hashsum_mod_SOURCES): New variable.
	(hashsum_mod_CFLAGS): Likewise.
	(hashsum_mod_LDFLAGS): Likewise.
	(pbkdf2_mod_SOURCES): New variable.
	(pbkdf2_mod_CFLAGS): Likewise.
	(pbkdf2_mod_LDFLAGS): Likewise.
	(password_pbkdf2_mod_SOURCES): New variable.
	(password_pbkdf2_mod_CFLAGS): Likewise.
	(password_pbkdf2_mod_LDFLAGS): Likewise.
	(bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
	(grub_mkpasswd_pbkdf2_SOURCES): New variable.
	(grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
	Include conf/gcry.rmk.
	* include/grub/auth.h: Rewritten.
	* include/grub/crypto.h: New file.
	* include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
	* include/grub/normal.h (read_crypto_list): New prototype.
	* lib/crypto.c: New file.
	* lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
	* lib/pbkdf2.c: Likewise.
	* normal/auth.c (grub_auth_strcmp): Removed.
	(grub_iswordseparator): Likewise.
	(grub_auth_strword): Likewise.
	(is_authenticated): Use grub_strword.
	(grub_auth_check_authentication): Use grub_strcmp, grub_password_get
	and grub_strword. Pass entered password to authentication callback.
	* normal/crypto.c: New file.
	* normal/main.c: Call read_crypto_list.
	* util/grub-mkpasswd-pbkdf2.c: New file.
	* util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
2010-01-07 01:13:01 +01:00