mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-18 19:41:01 -05:00
Rename SSH-1 cipher constants to start "SSH1_".
They're called things like SSH_CIPHER_3DES in the SSH-1 spec, but I don't normally let that stop me adding the disambiguating '1' in the names I give constants inside this code base. These ones are long overdue for some disambiguation.
This commit is contained in:
@ -147,9 +147,9 @@ static void ssh1_login_server_process_queue(PacketProtocolLayer *ppl)
|
||||
|
||||
s->local_protoflags = SSH1_PROTOFLAGS_SUPPORTED;
|
||||
/* FIXME: ability to configure this to a subset */
|
||||
s->supported_ciphers_mask = ((1U << SSH_CIPHER_3DES) |
|
||||
(1U << SSH_CIPHER_BLOWFISH) |
|
||||
(1U << SSH_CIPHER_DES));
|
||||
s->supported_ciphers_mask = ((1U << SSH1_CIPHER_3DES) |
|
||||
(1U << SSH1_CIPHER_BLOWFISH) |
|
||||
(1U << SSH1_CIPHER_DES));
|
||||
s->supported_auths_mask = 0;
|
||||
s->ap_methods = auth_methods(s->authpolicy);
|
||||
if (s->ap_methods & AUTHMETHOD_PASSWORD)
|
||||
@ -244,8 +244,8 @@ static void ssh1_login_server_process_queue(PacketProtocolLayer *ppl)
|
||||
|
||||
{
|
||||
const ssh_cipheralg *cipher =
|
||||
(s->cipher_type == SSH_CIPHER_BLOWFISH ? &ssh_blowfish_ssh1 :
|
||||
s->cipher_type == SSH_CIPHER_DES ? &ssh_des : &ssh_3des_ssh1);
|
||||
(s->cipher_type == SSH1_CIPHER_BLOWFISH ? &ssh_blowfish_ssh1 :
|
||||
s->cipher_type == SSH1_CIPHER_DES ? &ssh_des : &ssh_3des_ssh1);
|
||||
ssh1_bpp_new_cipher(s->ppl.bpp, cipher, s->session_key);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user