Fix a couple of silly compiler warnings
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 23 Mar 2001 09:20:43 +0000 (09:20 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 23 Mar 2001 09:20:43 +0000 (09:20 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@1022 cda61777-01e9-0310-a592-d414129be87e

ssh.h
sshrsa.c

diff --git a/ssh.h b/ssh.h
index b2803b9..cdb3780 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 1938623..9947cef 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) {