Add NULL checks to top-level SSL functions

On normal use these should never be useful, but if the application has issues,
it's best for us to return an error than to crash.
1 file changed