Share more code between pam_duo and login_duo