bug #1921: ssh and x509 login never expires

Patch by Jean-Philippe Garcia Ballester