tls: extract setOptions function to reduce duplication
Since we have deprecate setOptions
function, we can just extract it and reuse it in the setSecureContext
function, reduce duplication.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines