diff options
| author | Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> | 2017-08-03 17:00:42 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2017-08-18 12:45:02 -0400 |
| commit | 5202f80c32bdcab0469785e953bf9fa8dd4eaaa1 (patch) | |
| tree | c74bbbdfcf8d9fd0cf3662bc4a19de2d76ac95e8 /Cryptlib/OpenSSL/crypto/mem_dbg.c | |
| parent | 81b28b7e95cbb2d9cf936430eb0ca11465cad6d8 (diff) | |
| download | efi-boot-shim-5202f80c32bdcab0469785e953bf9fa8dd4eaaa1.tar.gz efi-boot-shim-5202f80c32bdcab0469785e953bf9fa8dd4eaaa1.zip | |
Rework looping in enter_mok_menu(), to allow multiple MOK changes
Rather than looping once through the possible actions (MokNew, MokDel, etc.),
revise the logic so that instead of rebooting immediately we get back to the
main menu setting a flag to replace "Continue booting" with a proper reboot.
Getting back to the menu means we can go make other changes before rebooting.
For instance, you might want to enable validation, but beforehand you also
need to enroll a MOK. You can already do so from userland; except the requests
were cleared as soon as one of them was processed.
This involves some extra cleanup of the states to avoid running the same
request more than once, removing the option from the menu once it's done, and
changing prompting functions to return an EFI_STATUS so we can better track
whether the process has succeeded.
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
Diffstat (limited to 'Cryptlib/OpenSSL/crypto/mem_dbg.c')
0 files changed, 0 insertions, 0 deletions
