diff options
author | Tim Rice <tim@multitalents.net> | 2011-08-16 17:29:01 -0700 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2011-08-16 17:29:01 -0700 |
commit | a1226828add427f4ff29462b3153b1549d3b46a8 (patch) | |
tree | b4b3b3638c6ffffe8f95dd8f37f517341d9b5175 /mac.c | |
parent | d1eb1dd5edf4960c1b4cbcda6cfc23462fe4f9fa (diff) |
- (tim) [mac.c myproposal.h] Wrap SHA256 and SHA512 in ifdefs for
OpenSSL 0.9.7. ok djm
Diffstat (limited to 'mac.c')
-rw-r--r-- | mac.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 }, |