~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Wez Furlong's patch to add xterm mouse reporting and proper mouse
[sgt/putty]
/
sshblowf.c
diff --git
a/sshblowf.c
b/sshblowf.c
index
1d92d30
..
f3c49b8
100644
(file)
--- a/
sshblowf.c
+++ b/
sshblowf.c
@@
-507,18
+507,14
@@
static void blowfish_ssh2_decrypt_blk(unsigned char *blk, int len)
blowfish_msb_decrypt_cbc(blk, len, &dctx);
}
blowfish_msb_decrypt_cbc(blk, len, &dctx);
}
-struct ssh_cipher ssh_blowfish_ssh1 = {
+
const
struct ssh_cipher ssh_blowfish_ssh1 = {
blowfish_sesskey,
blowfish_sesskey,
- blowfish_csiv, blowfish_cskey,
- blowfish_sciv, blowfish_sckey,
blowfish_ssh1_encrypt_blk,
blowfish_ssh1_decrypt_blk,
blowfish_ssh1_encrypt_blk,
blowfish_ssh1_decrypt_blk,
- "blowfish-cbc",
- 8, 256
+ 8
};
};
-struct ssh_cipher ssh_blowfish_ssh2 = {
- blowfish_sesskey,
+static const struct ssh2_cipher ssh_blowfish_ssh2 = {
blowfish_csiv, blowfish_cskey,
blowfish_sciv, blowfish_sckey,
blowfish_ssh2_encrypt_blk,
blowfish_csiv, blowfish_cskey,
blowfish_sciv, blowfish_sckey,
blowfish_ssh2_encrypt_blk,
@@
-526,3
+522,12
@@
struct ssh_cipher ssh_blowfish_ssh2 = {
"blowfish-cbc",
8, 128
};
"blowfish-cbc",
8, 128
};
+
+static const struct ssh2_cipher *const blowfish_list[] = {
+ &ssh_blowfish_ssh2
+};
+
+const struct ssh2_ciphers ssh2_blowfish = {
+ sizeof(blowfish_list) / sizeof(*blowfish_list),
+ blowfish_list
+};