Browse Subversion Repository
Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/auth.c
Parent Directory
| Revision Log
| Patch
| 943 |
|
|
| 944 |
int AUTH_set_supported_auth_types(PTInstVar pvar, int types) |
int AUTH_set_supported_auth_types(PTInstVar pvar, int types) |
| 945 |
{ |
{ |
| 946 |
char buf[1024]; |
logprintf(LOG_LEVEL_VERBOSE, "Server reports supported authentication method mask = %d", types); |
|
|
|
|
_snprintf_s(buf, sizeof(buf), _TRUNCATE, |
|
|
"Server reports supported authentication method mask = %d", |
|
|
types); |
|
|
buf[sizeof(buf) - 1] = 0; |
|
|
notify_verbose_message(pvar, buf, LOG_LEVEL_VERBOSE); |
|
| 947 |
|
|
| 948 |
if (SSHv1(pvar)) { |
if (SSHv1(pvar)) { |
| 949 |
types &= (1 << SSH_AUTH_PASSWORD) | (1 << SSH_AUTH_RSA) |
types &= (1 << SSH_AUTH_PASSWORD) | (1 << SSH_AUTH_RSA) |
| 967 |
return 0; |
return 0; |
| 968 |
} else { |
} else { |
| 969 |
if (pvar->auth_state.auth_dialog != NULL) { |
if (pvar->auth_state.auth_dialog != NULL) { |
| 970 |
update_server_supported_types(pvar, |
update_server_supported_types(pvar, pvar->auth_state.auth_dialog); |
|
pvar->auth_state.auth_dialog); |
|
| 971 |
} |
} |
| 972 |
|
|
| 973 |
return 1; |
return 1; |
|
|
Legend:
| Removed from v.6801 |
|
| changed lines |
| |
Added in v.6809 |
|
|
| |