From e1e87cd738c99be2ad998b529850af3be6aa7b25 Mon Sep 17 00:00:00 2001 From: jacob Date: Tue, 19 Apr 2005 13:27:21 +0000 Subject: [PATCH] Remove "none" from the MACs we offer to support in SSH-2. (It was at the end, after the REQUIRED "hmac-sha1".) This has been present since SSH-2 support was introduced (r569). git-svn-id: svn://svn.tartarus.org/sgt/putty@5643 cda61777-01e9-0310-a592-d414129be87e --- ssh.c | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/ssh.c b/ssh.c index 4c9bf80a..a9ecaa3d 100644 --- a/ssh.c +++ b/ssh.c @@ -357,34 +357,11 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen, const static struct ssh_signkey *hostkey_algs[] = { &ssh_rsa, &ssh_dss }; -static void *nullmac_make_context(void) -{ - return NULL; -} -static void nullmac_free_context(void *handle) -{ -} -static void nullmac_key(void *handle, unsigned char *key) -{ -} -static void nullmac_generate(void *handle, unsigned char *blk, int len, - unsigned long seq) -{ -} -static int nullmac_verify(void *handle, unsigned char *blk, int len, - unsigned long seq) -{ - return 1; -} -const static struct ssh_mac ssh_mac_none = { - nullmac_make_context, nullmac_free_context, nullmac_key, - nullmac_generate, nullmac_verify, "none", 0 -}; const static struct ssh_mac *macs[] = { - &ssh_sha1, &ssh_md5, &ssh_mac_none + &ssh_sha1, &ssh_md5 }; const static struct ssh_mac *buggymacs[] = { - &ssh_sha1_buggy, &ssh_md5, &ssh_mac_none + &ssh_sha1_buggy, &ssh_md5 }; static void *ssh_comp_none_init(void) -- 2.11.0