1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-30 01:21:10 +00:00

OpenCL runtime environment is no longer required with --keyspace option

This commit is contained in:
Gabriele 'matrix' Gristina 2016-01-25 15:44:04 +01:00
parent 58359f3b7e
commit 1124687270

View File

@ -12485,6 +12485,8 @@ int main (int argc, char **argv)
cl_uint platform_devices_cnt;
if (keyspace == 0) // matrix
{
hc_clGetPlatformIDs (CL_PLATFORMS_MAX, platforms, &platforms_cnt);
if (platforms_cnt == 0)
@ -12493,6 +12495,7 @@ int main (int argc, char **argv)
return (-1);
}
}
/**
* OpenCL platforms: For each platform check if we need to unset features that we can not use, eg: temp_retain
@ -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");