As far as I know, in my state, a previous employer is only allowed to say weather or not I worked there and for how long. Nothing else should be discussed, legally. IANAL
I've only changed jobs twice in my career but I included my salary requirements in a cover letter and did not disclose my previous salary.