summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--mac.c2
-rw-r--r--myproposal.h14
3 files changed, 16 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 2fc1f12a1..cc29abce4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
120110817
2 - (tim) [mac.c myproposal.h] Wrap SHA256 and SHA512 in ifdefs for
3 OpenSSL 0.9.7. ok djm
4
120110812 520110812
2 - (dtucker) [openbsd-compat/port-linux.c] Bug 1924: Improve selinux context 6 - (dtucker) [openbsd-compat/port-linux.c] Bug 1924: Improve selinux context
3 change error by reporting old and new context names Patch from 7 change error by reporting old and new context names Patch from
diff --git a/mac.c b/mac.c
index 4965f38c8..eef50f48d 100644
--- a/mac.c
+++ b/mac.c
@@ -57,10 +57,12 @@ struct {
57} macs[] = { 57} macs[] = {
58 { "hmac-sha1", SSH_EVP, EVP_sha1, 0, -1, -1 }, 58 { "hmac-sha1", SSH_EVP, EVP_sha1, 0, -1, -1 },
59 { "hmac-sha1-96", SSH_EVP, EVP_sha1, 96, -1, -1 }, 59 { "hmac-sha1-96", SSH_EVP, EVP_sha1, 96, -1, -1 },
60#ifdef HAVE_EVP_SHA256
60 { "hmac-sha2-256", SSH_EVP, EVP_sha256, 0, -1, -1 }, 61 { "hmac-sha2-256", SSH_EVP, EVP_sha256, 0, -1, -1 },
61 { "hmac-sha2-256-96", SSH_EVP, EVP_sha256, 96, -1, -1 }, 62 { "hmac-sha2-256-96", SSH_EVP, EVP_sha256, 96, -1, -1 },
62 { "hmac-sha2-512", SSH_EVP, EVP_sha512, 0, -1, -1 }, 63 { "hmac-sha2-512", SSH_EVP, EVP_sha512, 0, -1, -1 },
63 { "hmac-sha2-512-96", SSH_EVP, EVP_sha512, 96, -1, -1 }, 64 { "hmac-sha2-512-96", SSH_EVP, EVP_sha512, 96, -1, -1 },
65#endif
64 { "hmac-md5", SSH_EVP, EVP_md5, 0, -1, -1 }, 66 { "hmac-md5", SSH_EVP, EVP_md5, 0, -1, -1 },
65 { "hmac-md5-96", SSH_EVP, EVP_md5, 96, -1, -1 }, 67 { "hmac-md5-96", SSH_EVP, EVP_md5, 96, -1, -1 },
66 { "hmac-ripemd160", SSH_EVP, EVP_ripemd160, 0, -1, -1 }, 68 { "hmac-ripemd160", SSH_EVP, EVP_ripemd160, 0, -1, -1 },
diff --git a/myproposal.h b/myproposal.h
index aeb5201dc..0bc1c778c 100644
--- a/myproposal.h
+++ b/myproposal.h
@@ -75,14 +75,20 @@
75 "arcfour256,arcfour128," \ 75 "arcfour256,arcfour128," \
76 "aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc," \ 76 "aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc," \
77 "aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se" 77 "aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se"
78#ifdef HAVE_EVP_SHA256
79#define SHA2_HMAC_MODES \
80 "hmac-sha2-256," \
81 "hmac-sha2-256-96," \
82 "hmac-sha2-512," \
83 "hmac-sha2-512-96,"
84#else
85# define SHA2_HMAC_MODES
86#endif
78#define KEX_DEFAULT_MAC \ 87#define KEX_DEFAULT_MAC \
79 "hmac-md5," \ 88 "hmac-md5," \
80 "hmac-sha1," \ 89 "hmac-sha1," \
81 "umac-64@openssh.com," \ 90 "umac-64@openssh.com," \
82 "hmac-sha2-256," \ 91 SHA2_HMAC_MODES \
83 "hmac-sha2-256-96," \
84 "hmac-sha2-512," \
85 "hmac-sha2-512-96," \
86 "hmac-ripemd160," \ 92 "hmac-ripemd160," \
87 "hmac-ripemd160@openssh.com," \ 93 "hmac-ripemd160@openssh.com," \
88 "hmac-sha1-96," \ 94 "hmac-sha1-96," \