diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | Makefile.in | 4 | ||||
-rw-r--r-- | mpaux.c | 46 | ||||
-rw-r--r-- | mpaux.h | 22 |
4 files changed, 7 insertions, 71 deletions
@@ -1,3 +1,7 @@ | |||
1 | 20050525 | ||
2 | - (djm) [mpaux.c mpaux.h Makefile.in] Remove old mpaux.[ch] code, it has not | ||
3 | been used for a while | ||
4 | |||
1 | 20050524 | 5 | 20050524 |
2 | - (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec] | 6 | - (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec] |
3 | [contrib/suse/openssh.spec] Update spec file versions to 4.1p1 | 7 | [contrib/suse/openssh.spec] Update spec file versions to 4.1p1 |
@@ -2496,4 +2500,4 @@ | |||
2496 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 2500 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
2497 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 2501 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
2498 | 2502 | ||
2499 | $Id: ChangeLog,v 1.3760 2005/05/26 01:34:36 djm Exp $ | 2503 | $Id: ChangeLog,v 1.3761 2005/05/26 01:35:37 djm Exp $ |
diff --git a/Makefile.in b/Makefile.in index bca425d36..3351d64d5 100644 --- a/Makefile.in +++ b/Makefile.in | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: Makefile.in,v 1.270 2005/02/25 23:12:38 dtucker Exp $ | 1 | # $Id: Makefile.in,v 1.271 2005/05/26 01:35:38 djm Exp $ |
2 | 2 | ||
3 | # uncomment if you run a non bourne compatable shell. Ie. csh | 3 | # uncomment if you run a non bourne compatable shell. Ie. csh |
4 | #SHELL = @SH@ | 4 | #SHELL = @SH@ |
@@ -66,7 +66,7 @@ LIBSSH_OBJS=acss.o authfd.o authfile.o bufaux.o buffer.o \ | |||
66 | canohost.o channels.o cipher.o cipher-acss.o cipher-aes.o \ | 66 | canohost.o channels.o cipher.o cipher-acss.o cipher-aes.o \ |
67 | cipher-bf1.o cipher-ctr.o cipher-3des1.o cleanup.o \ | 67 | cipher-bf1.o cipher-ctr.o cipher-3des1.o cleanup.o \ |
68 | compat.o compress.o crc32.o deattack.o fatal.o hostfile.o \ | 68 | compat.o compress.o crc32.o deattack.o fatal.o hostfile.o \ |
69 | log.o match.o moduli.o mpaux.o nchan.o packet.o \ | 69 | log.o match.o moduli.o nchan.o packet.o \ |
70 | readpass.o rsa.o tildexpand.o ttymodes.o xmalloc.o \ | 70 | readpass.o rsa.o tildexpand.o ttymodes.o xmalloc.o \ |
71 | atomicio.o key.o dispatch.o kex.o mac.o uidswap.o uuencode.o misc.o \ | 71 | atomicio.o key.o dispatch.o kex.o mac.o uidswap.o uuencode.o misc.o \ |
72 | monitor_fdpass.o rijndael.o ssh-dss.o ssh-rsa.o dh.o kexdh.o \ | 72 | monitor_fdpass.o rijndael.o ssh-dss.o ssh-rsa.o dh.o kexdh.o \ |
diff --git a/mpaux.c b/mpaux.c deleted file mode 100644 index 0c486275f..000000000 --- a/mpaux.c +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | /* | ||
2 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | ||
3 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | ||
4 | * All rights reserved | ||
5 | * This file contains various auxiliary functions related to multiple | ||
6 | * precision integers. | ||
7 | * | ||
8 | * As far as I am concerned, the code I have written for this software | ||
9 | * can be used freely for any purpose. Any derived versions of this | ||
10 | * software must be clearly marked as such, and if the derived work is | ||
11 | * incompatible with the protocol description in the RFC file, it must be | ||
12 | * called by a name other than "ssh" or "Secure Shell". | ||
13 | */ | ||
14 | |||
15 | #include "includes.h" | ||
16 | RCSID("$OpenBSD: mpaux.c,v 1.16 2001/02/08 19:30:52 itojun Exp $"); | ||
17 | |||
18 | #include <openssl/bn.h> | ||
19 | #include "getput.h" | ||
20 | #include "xmalloc.h" | ||
21 | |||
22 | #include <openssl/md5.h> | ||
23 | |||
24 | #include "mpaux.h" | ||
25 | |||
26 | void | ||
27 | compute_session_id(u_char session_id[16], | ||
28 | u_char cookie[8], | ||
29 | BIGNUM* host_key_n, | ||
30 | BIGNUM* session_key_n) | ||
31 | { | ||
32 | u_int host_key_bytes = BN_num_bytes(host_key_n); | ||
33 | u_int session_key_bytes = BN_num_bytes(session_key_n); | ||
34 | u_int bytes = host_key_bytes + session_key_bytes; | ||
35 | u_char *buf = xmalloc(bytes); | ||
36 | MD5_CTX md; | ||
37 | |||
38 | BN_bn2bin(host_key_n, buf); | ||
39 | BN_bn2bin(session_key_n, buf + host_key_bytes); | ||
40 | MD5_Init(&md); | ||
41 | MD5_Update(&md, buf, bytes); | ||
42 | MD5_Update(&md, cookie, 8); | ||
43 | MD5_Final(session_id, &md); | ||
44 | memset(buf, 0, bytes); | ||
45 | xfree(buf); | ||
46 | } | ||
diff --git a/mpaux.h b/mpaux.h deleted file mode 100644 index 2a312f5cb..000000000 --- a/mpaux.h +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | /* $OpenBSD: mpaux.h,v 1.12 2002/03/04 17:27:39 stevesk Exp $ */ | ||
2 | |||
3 | /* | ||
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | ||
5 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | ||
6 | * All rights reserved | ||
7 | * This file contains various auxiliary functions related to multiple | ||
8 | * precision integers. | ||
9 | * | ||
10 | * As far as I am concerned, the code I have written for this software | ||
11 | * can be used freely for any purpose. Any derived versions of this | ||
12 | * software must be clearly marked as such, and if the derived work is | ||
13 | * incompatible with the protocol description in the RFC file, it must be | ||
14 | * called by a name other than "ssh" or "Secure Shell". | ||
15 | */ | ||
16 | |||
17 | #ifndef MPAUX_H | ||
18 | #define MPAUX_H | ||
19 | |||
20 | void compute_session_id(u_char[16], u_char[8], BIGNUM *, BIGNUM *); | ||
21 | |||
22 | #endif /* MPAUX_H */ | ||