~ubuntu-branches/ubuntu/utopic/grub2/utopic

« back to all changes in this revision

Viewing changes to grub-core/disk/cryptodisk.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson, Colin Watson, Jon Severinsson
  • Date: 2014-03-31 16:30:37 UTC
  • mfrom: (17.3.93 sid)
  • Revision ID: package-import@ubuntu.com-20140331163037-b7h7nc1lf6st1z87
Tags: 2.02~beta2-8
[ Colin Watson ]
* Backport from upstream:
  - ieee1275: check for IBM pseries emulated machine.
  - Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig
    (closes: #735935).
  - btrfs: fix get_root key comparison failures due to endianness.
* Build-depend on automake (>= 1.10.1) to ensure that it meets configure's
  requirements (LP: #1299041).
* When installing an image for use with UEFI Secure Boot, generate a
  load.cfg even if there are no device abstractions in use (LP: #1298399).

[ Jon Severinsson ]
* Add Tanglu support, as in Debian except:
  - Enable splash screen by default (as Ubuntu)
  - Enable quiet and quick boot (as Ubuntu)
  - Enable the grub-common init script (as Ubuntu)
  - Enable dynamic gfxpayload (as Ubuntu)
  - Enable vt handover (as Ubuntu)
  - Use monochromatic theme by default (as Ubuntu)
  - Use Tanglu GRUB wallpaper by default.

Show diffs side-by-side

added added

removed removed

Lines of Context:
762
762
 
763
763
void
764
764
grub_util_cryptodisk_get_abstraction (grub_disk_t disk,
765
 
                                      void (*cb) (const char *val))
 
765
                                      void (*cb) (const char *val, void *data),
 
766
                                      void *data)
766
767
{
767
768
  grub_cryptodisk_t dev = (grub_cryptodisk_t) disk->data;
768
769
 
769
 
  cb ("cryptodisk");
770
 
  cb (dev->modname);
 
770
  cb ("cryptodisk", data);
 
771
  cb (dev->modname, data);
771
772
 
772
773
  if (dev->cipher)
773
 
    cb (dev->cipher->cipher->modname);
 
774
    cb (dev->cipher->cipher->modname, data);
774
775
  if (dev->secondary_cipher)
775
 
    cb (dev->secondary_cipher->cipher->modname);
 
776
    cb (dev->secondary_cipher->cipher->modname, data);
776
777
  if (dev->essiv_cipher)
777
 
    cb (dev->essiv_cipher->cipher->modname);
 
778
    cb (dev->essiv_cipher->cipher->modname, data);
778
779
  if (dev->hash)
779
 
    cb (dev->hash->modname);
 
780
    cb (dev->hash->modname, data);
780
781
  if (dev->essiv_hash)
781
 
    cb (dev->essiv_hash->modname);
 
782
    cb (dev->essiv_hash->modname, data);
782
783
  if (dev->iv_hash)
783
 
    cb (dev->iv_hash->modname);
 
784
    cb (dev->iv_hash->modname, data);
784
785
}
785
786
 
786
787
const char *