summaryrefslogtreecommitdiff
path: root/deattack.c
diff options
context:
space:
mode:
authormouring <mouring>2001-06-25 05:01:22 +0000
committermouring <mouring>2001-06-25 05:01:22 +0000
commit3bbcac48521290a3865f9f51268fade1f9576e5c (patch)
tree3b390b49cd24c6c5ad25fdb6a474c143168e0320 /deattack.c
parente5525de31539093a96f10635209d530b7a61653c (diff)
downloadopenssh-3bbcac48521290a3865f9f51268fade1f9576e5c.tar.gz
- itojun@cvs.openbsd.org 2001/06/23 15:12:20
[auth1.c auth2.c auth2-chall.c authfd.c authfile.c auth-rhosts.c canohost.c channels.c cipher.c clientloop.c deattack.c dh.c hostfile.c kex.c kexdh.c kexgex.c key.c nchan.c packet.c radix.c readpass.c scp.c servconf.c serverloop.c session.c sftp.c sftp-client.c sftp-glob.c sftp-int.c sftp-server.c ssh-add.c ssh-agent.c ssh.c sshconnect1.c sshconnect2.c sshconnect.c sshd.c ssh-keygen.c ssh-keyscan.c] more strict prototypes. raise warning level in Makefile.inc. markus ok'ed TODO; cleanup headers
Diffstat (limited to 'deattack.c')
-rw-r--r--deattack.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/deattack.c b/deattack.c
index 36023e0d..1a89be4b 100644
--- a/deattack.c
+++ b/deattack.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: deattack.c,v 1.13 2001/03/01 02:45:10 deraadt Exp $ */
+/* $OpenBSD: deattack.c,v 1.14 2001/06/23 15:12:18 itojun Exp $ */
/*
* Cryptographic attack detector for ssh - source code
@@ -46,8 +46,7 @@
#define CMP(a, b) (memcmp(a, b, SSH_BLOCKSIZE))
-
-void
+static void
crc_update(u_int32_t *a, u_int32_t b)
{
b ^= *a;
@@ -55,7 +54,7 @@ crc_update(u_int32_t *a, u_int32_t b)
}
/* detect if a block is used in a particular pattern */
-int
+static int
check_crc(u_char *S, u_char *buf, u_int32_t len,
u_char *IV)
{