@@ -1102,6 +1102,7 @@ int dc_efi_config_write(const wchar_t* root, ldr_config *conf)
1102
1102
1103
1103
// Other
1104
1104
1105
+ WriteConfigInteger (configFile , configContent , "UseHardwareCrypto" , (conf -> options & LDR_OP_HW_CRYPTO ) ? 1 : 0 );
1105
1106
1106
1107
WriteConfigInteger (configFile , configContent , "VerboseDebug" , (conf -> logon_type & LDR_LT_DEBUG ) ? 1 : 0 );
1107
1108
@@ -1275,21 +1276,24 @@ int dc_efi_config_read(const wchar_t* root, ldr_config *conf)
1275
1276
// Load Boot Disk MBR "cancel" EFI_DCS_USER_CANCELED
1276
1277
// "shutdown" EFI_DCS_SHUTDOWN_REQUESTED
1277
1278
ReadConfigString (configContent , "ActionFailed" , "exit" , buffer , sizeof (buffer ));
1278
- if (_strcmpi (buffer , "Reboot" ))
1279
+ if (_strcmpi (buffer , "Reboot" ) == 0 )
1279
1280
conf -> error_type |= LDR_ET_REBOOT ;
1280
- else if (_strcmpi (buffer , "Cancel" ))
1281
+ else if (_strcmpi (buffer , "Cancel" ) == 0 )
1281
1282
//conf->error_type |= LDR_ET_BOOT_ACTIVE;
1282
1283
conf -> error_type |= LDR_ET_MBR_BOOT ;
1283
- //else if(strcmpi (buffer, "Exit"))
1284
+ //else if(_strcmpi (buffer, "Exit") == 0 )
1284
1285
// conf->error_type |= LDR_ET_RETRY;
1285
1286
1286
1287
// Authentication Tries - new
1287
1288
if (ReadConfigInteger (configContent , "AuthorizeRetry" , 100 )) {
1288
- conf -> options |= LDR_ET_RETRY ;
1289
+ conf -> error_type |= LDR_ET_RETRY ;
1289
1290
}
1290
1291
1291
1292
// Other
1292
1293
1294
+ if (ReadConfigInteger (configContent , "UseHardwareCrypto" , 1 )) {
1295
+ conf -> options |= LDR_OP_HW_CRYPTO ;
1296
+ }
1293
1297
1294
1298
if (ReadConfigInteger (configContent , "VerboseDebug" , 0 )) {
1295
1299
conf -> logon_type |= LDR_LT_DEBUG ;
0 commit comments