The past tense of not have to is not had to.
The present participle of not have to is not having to.
The past participle of not have to is not had to.