crypto: change segmentation faults to CHECKs
Fixes: https://github.com/nodejs/node/issues/14519
I intentionally did not fix this in cares_wrap.cc
as @addaleax already did that in https://github.com/nodejs/node/pull/14518 (assuming it gets merged).
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
crypto