projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Preliminary support for RSA user authentication in SSH2! Most of the
[u/mdw/putty]
/
sshsha.c
diff --git
a/sshsha.c
b/sshsha.c
index
48cabb5
..
2a07cc3
100644
(file)
--- a/
sshsha.c
+++ b/
sshsha.c
@@
-237,7
+237,7
@@
static int sha1_verify(unsigned char *blk, int len, unsigned long seq) {
return !memcmp(correct, blk+len, 20);
}
return !memcmp(correct, blk+len, 20);
}
-struct ssh_mac ssh_sha1 = {
+
const
struct ssh_mac ssh_sha1 = {
sha1_cskey, sha1_sckey,
sha1_generate,
sha1_verify,
sha1_cskey, sha1_sckey,
sha1_generate,
sha1_verify,
@@
-245,7
+245,7
@@
struct ssh_mac ssh_sha1 = {
20
};
20
};
-struct ssh_mac ssh_sha1_buggy = {
+
const
struct ssh_mac ssh_sha1_buggy = {
sha1_cskey_buggy, sha1_sckey_buggy,
sha1_generate,
sha1_verify,
sha1_cskey_buggy, sha1_sckey_buggy,
sha1_generate,
sha1_verify,