mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 22:21:29 +00:00
Don't run smbauth tests requiring OpenSSL if it's not present
This commit is contained in:
@@ -965,6 +965,8 @@ if not unittest.testing() then
|
|||||||
end
|
end
|
||||||
|
|
||||||
test_suite = unittest.TestSuite:new()
|
test_suite = unittest.TestSuite:new()
|
||||||
|
-- OpenSSL-dependent crypto tests.
|
||||||
|
if have_ssl then
|
||||||
test_suite:add_test(unittest.equal(
|
test_suite:add_test(unittest.equal(
|
||||||
stdnse.tohex(select(-1, lm_create_hash("passphrase"))),
|
stdnse.tohex(select(-1, lm_create_hash("passphrase"))),
|
||||||
"855c3697d9979e78ac404c4ba2c66533"
|
"855c3697d9979e78ac404c4ba2c66533"
|
||||||
@@ -989,5 +991,6 @@ test_suite:add_test(unittest.equal(
|
|||||||
),
|
),
|
||||||
"ntlm_create_hash"
|
"ntlm_create_hash"
|
||||||
)
|
)
|
||||||
|
end
|
||||||
|
|
||||||
return _ENV;
|
return _ENV;
|
||||||
|
|||||||
Reference in New Issue
Block a user