diff options
author | Damien Miller <djm@mindrot.org> | 2005-06-19 07:36:10 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2005-06-19 07:36:10 +1000 |
commit | 06221f152770ec493ff4e8ec5ff18b39e1258f72 (patch) | |
tree | af10bc45e18d53ec4bbe98729d8669af79ec75f4 | |
parent | 6abf57ccbf13a043a2a2b7c8a662fc3e50d71d20 (diff) |
- djm@cvs.openbsd.org 2005/06/17 02:44:33
[auth1.c] make this -Wsign-compare clean; ok avsm@ markus@
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | auth1.c | 7 |
2 files changed, 7 insertions, 4 deletions
@@ -4,6 +4,8 @@ | |||
4 | [auth1.c] split protocol 1 auth methods into separate functions, makes | 4 | [auth1.c] split protocol 1 auth methods into separate functions, makes |
5 | authloop much more readable; fixes and ok markus@ (portable ok & | 5 | authloop much more readable; fixes and ok markus@ (portable ok & |
6 | polish dtucker@) | 6 | polish dtucker@) |
7 | - djm@cvs.openbsd.org 2005/06/17 02:44:33 | ||
8 | [auth1.c] make this -Wsign-compare clean; ok avsm@ markus@ | ||
7 | 9 | ||
8 | 20050617 | 10 | 20050617 |
9 | - (djm) OpenBSD CVS Sync | 11 | - (djm) OpenBSD CVS Sync |
@@ -2745,4 +2747,4 @@ | |||
2745 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 2747 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
2746 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 2748 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
2747 | 2749 | ||
2748 | $Id: ChangeLog,v 1.3825 2005/06/18 21:31:37 djm Exp $ | 2750 | $Id: ChangeLog,v 1.3826 2005/06/18 21:36:10 djm Exp $ |
@@ -10,7 +10,7 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include "includes.h" | 12 | #include "includes.h" |
13 | RCSID("$OpenBSD: auth1.c,v 1.60 2005/05/20 12:57:01 djm Exp $"); | 13 | RCSID("$OpenBSD: auth1.c,v 1.61 2005/06/17 02:44:32 djm Exp $"); |
14 | 14 | ||
15 | #include "xmalloc.h" | 15 | #include "xmalloc.h" |
16 | #include "rsa.h" | 16 | #include "rsa.h" |
@@ -140,7 +140,7 @@ auth1_process_rsa(Authctxt *authctxt, char *info, size_t infolen) | |||
140 | static int | 140 | static int |
141 | auth1_process_rhosts_rsa(Authctxt *authctxt, char *info, size_t infolen) | 141 | auth1_process_rhosts_rsa(Authctxt *authctxt, char *info, size_t infolen) |
142 | { | 142 | { |
143 | int authenticated = 0; | 143 | int keybits, authenticated = 0; |
144 | u_int bits; | 144 | u_int bits; |
145 | Key *client_host_key; | 145 | Key *client_host_key; |
146 | u_int ulen; | 146 | u_int ulen; |
@@ -158,7 +158,8 @@ auth1_process_rhosts_rsa(Authctxt *authctxt, char *info, size_t infolen) | |||
158 | packet_get_bignum(client_host_key->rsa->e); | 158 | packet_get_bignum(client_host_key->rsa->e); |
159 | packet_get_bignum(client_host_key->rsa->n); | 159 | packet_get_bignum(client_host_key->rsa->n); |
160 | 160 | ||
161 | if (bits != BN_num_bits(client_host_key->rsa->n)) { | 161 | keybits = BN_num_bits(client_host_key->rsa->n); |
162 | if (keybits < 0 || bits != (u_int)keybits) { | ||
162 | verbose("Warning: keysize mismatch for client_host_key: " | 163 | verbose("Warning: keysize mismatch for client_host_key: " |
163 | "actual %d, announced %d", | 164 | "actual %d, announced %d", |
164 | BN_num_bits(client_host_key->rsa->n), bits); | 165 | BN_num_bits(client_host_key->rsa->n), bits); |