mozilla: improved valid()
Some fixmes in KRB4, md2