Compile module as .dll example

pull/1833/head
jsteube 5 years ago
parent 4028bae578
commit ce0e19f185

1
.gitignore vendored

@ -16,6 +16,7 @@ hashcat.dll
*.dSYM
kernels/**
lib/*.a
modules/*.dll
modules/*.so
obj/*.o
include/CL

@ -549,6 +549,18 @@ modules/module_%.so: modules/module_%.c
modules: $(MODULES_LIB)
MODULES_LIB_WIN64 := $(patsubst %.c, %.dll, $(MODULES_SRC))
modules/module_%.dll: modules/module_%.c
$(CC_WIN_64) $(CFLAGS_CROSS_WIN64) $< -o $@ -shared -fPIC $(MODULE_DEPEND)
modules_win64: $(MODULES_LIB_WIN64)
##
## cross compiled hashcat
##

@ -757,6 +757,10 @@ float get_entropy (const u8 *buf, const int len)
return entropy;
}
#if defined (_WIN)
#else
int select_read_timeout (int sockfd, const int sec)
{
struct timeval tv;
@ -787,6 +791,8 @@ int select_write_timeout (int sockfd, const int sec)
return select (sockfd + 1, NULL, &fds, NULL, &tv);
}
#endif
#if defined (_WIN)
int select_read_timeout_console (const int sec)

Loading…
Cancel
Save