summaryrefslogtreecommitdiff
path: root/ssh-rsa.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-08-20 18:39:14 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-08-20 18:39:14 +0000
commit0e50d846b31da4c96959b8a386ccfb938bf4387f (patch)
treed6b00fd5c98f13404d24bff2e8ab950553949887 /ssh-rsa.c
parentdc7adf2670bcbb83bf4e95f4f9d6c544efe182cb (diff)
- markus@cvs.openbsd.org 2002/08/02 21:23:41
[ssh-rsa.c] diff is u_int (2x); ok deraadt/provos
Diffstat (limited to 'ssh-rsa.c')
-rw-r--r--ssh-rsa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ssh-rsa.c b/ssh-rsa.c
index d6729b04..8271af42 100644
--- a/ssh-rsa.c
+++ b/ssh-rsa.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh-rsa.c,v 1.23 2002/07/04 10:41:47 markus Exp $");
+RCSID("$OpenBSD: ssh-rsa.c,v 1.24 2002/08/02 21:23:41 markus Exp $");
#include <openssl/evp.h>
#include <openssl/err.h>
@@ -76,7 +76,7 @@ ssh_rsa_sign(Key *key, u_char **sigp, u_int *lenp,
return -1;
}
if (len < slen) {
- int diff = slen - len;
+ u_int diff = slen - len;
debug("slen %u > len %u", slen, len);
memmove(sig + diff, sig, len);
memset(sig, 0, diff);
@@ -149,7 +149,7 @@ ssh_rsa_verify(Key *key, u_char *signature, u_int signaturelen,
xfree(sigblob);
return -1;
} else if (len < modlen) {
- int diff = modlen - len;
+ u_int diff = modlen - len;
debug("ssh_rsa_verify: add padding: modlen %u > len %u",
modlen, len);
sigblob = xrealloc(sigblob, modlen);