mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-29 14:32:58 +02:00
spl: fix legacy physical keyslot compatibility
This commit is contained in:
parent
4d0f1b7924
commit
ceff2f3712
@ -51,7 +51,7 @@ namespace ams::spl::impl {
|
|||||||
|
|
||||||
Result AllocateAesKeySlot(s32 *out_keyslot);
|
Result AllocateAesKeySlot(s32 *out_keyslot);
|
||||||
Result DeallocateAesKeySlot(s32 keyslot);
|
Result DeallocateAesKeySlot(s32 keyslot);
|
||||||
Result TestAesKeySlot(s32 *out_index, s32 keyslot);
|
Result TestAesKeySlot(s32 *out_index, bool *out_virtual, s32 keyslot);
|
||||||
|
|
||||||
os::SystemEvent *GetAesKeySlotAvailableEvent();
|
os::SystemEvent *GetAesKeySlotAvailableEvent();
|
||||||
|
|
||||||
|
@ -729,9 +729,10 @@ namespace ams::spl::impl {
|
|||||||
return ResultSuccess();
|
return ResultSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
Result TestAesKeySlot(s32 *out_index, s32 keyslot) {
|
Result TestAesKeySlot(s32 *out_index, bool *out_virtual, s32 keyslot) {
|
||||||
if (g_is_physical_keyslot_allowed && IsPhysicalAesKeySlot(keyslot)) {
|
if (g_is_physical_keyslot_allowed && IsPhysicalAesKeySlot(keyslot)) {
|
||||||
*out_index = keyslot;
|
*out_index = keyslot;
|
||||||
|
*out_virtual = false;
|
||||||
return ResultSuccess();
|
return ResultSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -741,6 +742,7 @@ namespace ams::spl::impl {
|
|||||||
R_UNLESS(g_is_aes_keyslot_allocated[index], spl::ResultInvalidKeySlot());
|
R_UNLESS(g_is_aes_keyslot_allocated[index], spl::ResultInvalidKeySlot());
|
||||||
|
|
||||||
*out_index = index;
|
*out_index = index;
|
||||||
|
*out_virtual = true;
|
||||||
return ResultSuccess();
|
return ResultSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user