Not having been formally declared: an undeclared war.
Not having formally declared oneself: an undeclared candidate.