mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-29 14:22:38 +02:00
Sept: improve edge case cleanup a little.
This commit is contained in:
parent
1a63078c32
commit
771039e6a7
@ -63,6 +63,11 @@ static void exfiltrate_keys_and_reboot_if_needed(void) {
|
|||||||
se_save_context(KEYSLOT_SWITCH_SRKGENKEY, KEYSLOT_SWITCH_RNGKEY, enc_se_state);
|
se_save_context(KEYSLOT_SWITCH_SRKGENKEY, KEYSLOT_SWITCH_RNGKEY, enc_se_state);
|
||||||
se_set_in_context_save_mode(false);
|
se_set_in_context_save_mode(false);
|
||||||
|
|
||||||
|
/* Clear all keyslots. */
|
||||||
|
for (size_t k = 0; k < 0x10; k++) {
|
||||||
|
clear_aes_keyslot(k);
|
||||||
|
}
|
||||||
|
|
||||||
set_has_rebooted(true);
|
set_has_rebooted(true);
|
||||||
reboot_to_self();
|
reboot_to_self();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user