1
mirror of https://github.com/hashcat/hashcat synced 2024-11-24 14:27:14 +01:00

For CYGWIN prefer to use "opencl.dll" (installed by drivers) instead of optional "cygOpenCL-1.dll"

This commit is contained in:
jsteube 2017-01-04 10:59:21 +01:00
parent 6d8e938549
commit 33aeae6090
2 changed files with 4 additions and 1 deletions

View File

@ -38,6 +38,7 @@
- Building: Added hashcat32.dll and hashcat64.dll makefile targets for building hashcat windows libraries
- Building: Added production flag in Makefile to disable all the GCC compiler options needed only for development
- Building: Removed access to readlink() on FreeBSD
- Building: For CYGWIN prefer to use "opencl.dll" (installed by drivers) instead of optional "cygOpenCL-1.dll"
- Events: Added new event EVENT_WEAK_HASH_ALL_CRACKED if all hashes have been cracked during weak hash check
- Hardware management: Switched matching ADL device with OpenCL device by using PCI bus, device and function
- Hardware management: Switched matching NvAPI device with OpenCL device by using PCI bus, device and function

View File

@ -377,7 +377,9 @@ int ocl_init (hashcat_ctx_t *hashcat_ctx)
#elif defined(__APPLE__)
ocl->lib = hc_dlopen ("/System/Library/Frameworks/OpenCL.framework/OpenCL", RTLD_NOW);
#elif defined (__CYGWIN__)
ocl->lib = hc_dlopen ("cygOpenCL-1.dll", RTLD_NOW);
ocl->lib = hc_dlopen ("opencl.dll", RTLD_NOW);
if (ocl->lib == NULL) ocl->lib = hc_dlopen ("cygOpenCL-1.dll", RTLD_NOW);
#else
ocl->lib = hc_dlopen ("libOpenCL.so", RTLD_NOW);