]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix a couple of silly compiler warnings
authorSimon Tatham <anakin@pobox.com>
Fri, 23 Mar 2001 09:20:43 +0000 (09:20 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 23 Mar 2001 09:20:43 +0000 (09:20 +0000)
[originally from svn r1022]

ssh.h
sshrsa.c

diff --git a/ssh.h b/ssh.h
index b2803b987eabb328b6427f2b7150224ffd96e347..cdb37800f683c1d9e2ac1e39130367812557b60c 100644 (file)
--- a/ssh.h
+++ b/ssh.h
@@ -51,6 +51,7 @@ void rsasanitise(struct RSAKey *key);
 int rsastr_len(struct RSAKey *key);
 void rsastr_fmt(char *str, struct RSAKey *key);
 void rsa_fingerprint(char *str, int len, struct RSAKey *key);
+int rsa_verify(struct RSAKey *key);
 void freersakey(struct RSAKey *key);
 
 typedef unsigned int word32;
index 19386239d902328e4fb8d7d735c3f6c687e13354..9947ceff7a26074276dfa9414c587139f70f01ab 100644 (file)
--- a/sshrsa.c
+++ b/sshrsa.c
@@ -180,6 +180,8 @@ int rsa_verify(struct RSAKey *key) {
     sfree(ed);
     if (cmp != 0)
        return 0;
+
+    return 1;
 }
 
 void freersakey(struct RSAKey *key) {