test: add hasCrypto check to tls-legacy-deprecated
Currently test-tls-legacy-deprecated will fail if node was built using --without-ssl. This commit adds a check to verify that crypto support exists and if not skip this test.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test