Browse Subversion Repository
Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/auth.c
Parent Directory
| Revision Log
| Patch
| 166 |
BOOL TIS_enabled = controlID == IDC_SSHUSETIS; |
BOOL TIS_enabled = controlID == IDC_SSHUSETIS; |
| 167 |
BOOL PAGEANT_enabled = controlID == IDC_SSHUSEPAGEANT; |
BOOL PAGEANT_enabled = controlID == IDC_SSHUSEPAGEANT; |
| 168 |
int i; |
int i; |
| 169 |
|
static const int password_item_ids[] = { |
| 170 |
|
IDC_SSHPASSWORDCAPTION, |
| 171 |
|
IDC_SSHPASSWORD, |
| 172 |
|
IDC_SSHPASSWORD_OPTION, |
| 173 |
|
}; |
| 174 |
|
static const int rsa_item_ids[] = { |
| 175 |
|
IDC_RSAFILENAMELABEL, |
| 176 |
|
IDC_RSAFILENAME, |
| 177 |
|
IDC_CHOOSERSAFILE, |
| 178 |
|
}; |
| 179 |
|
static const int rhosts_item_ids[] = { |
| 180 |
|
IDC_LOCALUSERNAMELABEL, |
| 181 |
|
IDC_LOCALUSERNAME, |
| 182 |
|
IDC_HOSTRSAFILENAMELABEL, |
| 183 |
|
IDC_HOSTRSAFILENAME, |
| 184 |
|
IDC_CHOOSEHOSTRSAFILE, |
| 185 |
|
}; |
| 186 |
|
|
| 187 |
CheckRadioButton(dlg, IDC_SSHUSEPASSWORD, MAX_AUTH_CONTROL, controlID); |
CheckRadioButton(dlg, IDC_SSHUSEPASSWORD, MAX_AUTH_CONTROL, controlID); |
| 188 |
|
|
| 189 |
EnableWindow(GetDlgItem(dlg, IDC_SSHPASSWORDCAPTION), (!TIS_enabled && !PAGEANT_enabled)); |
for (i = 0; i < _countof(password_item_ids); i++) { |
| 190 |
EnableWindow(GetDlgItem(dlg, IDC_SSHPASSWORD), (!TIS_enabled && !PAGEANT_enabled)); |
EnableWindow(GetDlgItem(dlg, password_item_ids[i]), (!TIS_enabled && !PAGEANT_enabled)); |
| 191 |
EnableWindow(GetDlgItem(dlg, IDC_SSHPASSWORD_OPTION), (!TIS_enabled && !PAGEANT_enabled)); |
} |
| 192 |
|
|
| 193 |
for (i = IDC_CHOOSERSAFILE; i <= IDC_RSAFILENAME; i++) { |
for (i = 0; i < _countof(rsa_item_ids); i++) { |
| 194 |
EnableWindow(GetDlgItem(dlg, i), RSA_enabled); |
EnableWindow(GetDlgItem(dlg, rsa_item_ids[i]), RSA_enabled); |
| 195 |
} |
} |
| 196 |
|
|
| 197 |
for (i = IDC_LOCALUSERNAMELABEL; i <= IDC_HOSTRSAFILENAME; i++) { |
for (i = 0; i < _countof(rhosts_item_ids); i++) { |
| 198 |
EnableWindow(GetDlgItem(dlg, i), rhosts_enabled); |
EnableWindow(GetDlgItem(dlg, rhosts_item_ids[i]), rhosts_enabled); |
| 199 |
} |
} |
| 200 |
} |
} |
| 201 |
|
|
|
|
Legend:
| Removed from v.8437 |
|
| changed lines |
| |
Added in v.8864 |
|
|
| |