We study extensions of a Hermitian function f with a finite number of negat
ive squares given on a finite interval to the whole real axis. We associate
to f an (in general degenerated) inner product space and a symmetric relat
ion and use the theory of selfadjoint extensions in order to describe all e
xtensions of f.