[v10.x] src: more automatic memory management in node_crypto.cc
Prefer custom smart pointers fitted to the OpenSSL data structures
over more manual memory management and lots of goto
s.
Had only 3 minor merge conflicts (foo
→ foo.get()
in API calls).
Original PR-URL: https://github.com/nodejs/node/pull/20238
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines