Make ssl_check_error static and define ssl_type always.