Fixed #if ENABLE_SSL for ssl_check_error