File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,9 @@ define_function(telfhash)
177
177
return_string (YR_UNDEFINED );
178
178
}
179
179
180
+ #if defined(HAVE_LIBCRYPTO ) || defined(HAVE_WINCRYPT_H ) || \
181
+ defined(HAVE_COMMONCRYPTO_COMMONCRYPTO_H )
182
+
180
183
define_function (import_md5 )
181
184
{
182
185
YR_OBJECT * obj = module ();
@@ -270,6 +273,8 @@ define_function(import_md5)
270
273
return_string (YR_UNDEFINED );
271
274
}
272
275
276
+ #endif // defined(HAVE_LIBCRYPTO) || defined(HAVE_WINCRYPT_H)
277
+
273
278
int get_elf_class_data (const uint8_t * buffer , size_t buffer_length )
274
279
{
275
280
elf_ident_t * elf_ident ;
@@ -972,7 +977,11 @@ begin_declarations
972
977
end_struct_array ("dynsym" )
973
978
974
979
declare_function ("telfhash" , "" , "s" , telfhash );
980
+
981
+ #if defined(HAVE_LIBCRYPTO ) || defined(HAVE_WINCRYPT_H ) || \
982
+ defined(HAVE_COMMONCRYPTO_COMMONCRYPTO_H )
975
983
declare_function ("import_md5" , "" , "s" , import_md5 );
984
+ #endif // defined(HAVE_LIBCRYPTO) || defined(HAVE_WINCRYPT_H)
976
985
977
986
end_declarations
978
987
You can’t perform that action at this time.
0 commit comments