version 1.148, 2015/05/01 03:23:51 |
version 1.149, 2015/05/04 06:10:48 |
|
|
allowed = options.pubkey_authentication && |
allowed = options.pubkey_authentication && |
!auth2_userkey_already_used(authctxt, key) && |
!auth2_userkey_already_used(authctxt, key) && |
match_pattern_list(sshkey_ssh_name(key), |
match_pattern_list(sshkey_ssh_name(key), |
options.pubkey_key_types, |
options.pubkey_key_types, 0) == 1 && |
strlen(options.pubkey_key_types), 0) == 1 && |
|
user_key_allowed(authctxt->pw, key, |
user_key_allowed(authctxt->pw, key, |
pubkey_auth_attempt); |
pubkey_auth_attempt); |
pubkey_auth_info(authctxt, key, NULL); |
pubkey_auth_info(authctxt, key, NULL); |
|
|
case MM_HOSTKEY: |
case MM_HOSTKEY: |
allowed = options.hostbased_authentication && |
allowed = options.hostbased_authentication && |
match_pattern_list(sshkey_ssh_name(key), |
match_pattern_list(sshkey_ssh_name(key), |
options.hostbased_key_types, |
options.hostbased_key_types, 0) == 1 && |
strlen(options.hostbased_key_types), 0) == 1 && |
|
hostbased_key_allowed(authctxt->pw, |
hostbased_key_allowed(authctxt->pw, |
cuser, chost, key); |
cuser, chost, key); |
pubkey_auth_info(authctxt, key, |
pubkey_auth_info(authctxt, key, |