mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-29 00:51:23 +00:00
OpenCL runtime environment is no longer required with --keyspace option
This commit is contained in:
parent
58359f3b7e
commit
1124687270
@ -12485,13 +12485,16 @@ int main (int argc, char **argv)
|
||||
|
||||
cl_uint platform_devices_cnt;
|
||||
|
||||
hc_clGetPlatformIDs (CL_PLATFORMS_MAX, platforms, &platforms_cnt);
|
||||
|
||||
if (platforms_cnt == 0)
|
||||
if (keyspace == 0) // matrix
|
||||
{
|
||||
log_error ("ERROR: No OpenCL compatible platform found");
|
||||
hc_clGetPlatformIDs (CL_PLATFORMS_MAX, platforms, &platforms_cnt);
|
||||
|
||||
return (-1);
|
||||
if (platforms_cnt == 0)
|
||||
{
|
||||
log_error ("ERROR: No OpenCL compatible platform found");
|
||||
|
||||
return (-1);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@ -12858,7 +12861,7 @@ int main (int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
if (devices_active == 0)
|
||||
if (keyspace == 0 && devices_active == 0)
|
||||
{
|
||||
log_error ("ERROR: No devices found/left");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user