patch-mac_c 1.1 KB

123456789101112131415161718192021222324
  1. diff -Nur openssh-6.2p1.orig/mac.c openssh-6.2p1/mac.c
  2. --- openssh-6.5p1.orig/mac.c 2014-01-10 00:37:05.000000000 +0100
  3. +++ openssh-6.5p1/mac.c 2014-02-11 15:26:16.000000000 +0100
  4. @@ -70,8 +70,10 @@ static const struct macalg macs[] = {
  5. #endif
  6. { "hmac-md5", SSH_EVP, EVP_md5, 0, 0, 0, 0 },
  7. { "hmac-md5-96", SSH_EVP, EVP_md5, 96, 0, 0, 0 },
  8. +#ifndef OPENSSL_NO_RIPEMD
  9. { "hmac-ripemd160", SSH_EVP, EVP_ripemd160, 0, 0, 0, 0 },
  10. { "hmac-ripemd160@openssh.com", SSH_EVP, EVP_ripemd160, 0, 0, 0, 0 },
  11. +#endif
  12. { "umac-64@openssh.com", SSH_UMAC, NULL, 0, 128, 64, 0 },
  13. { "umac-128@openssh.com", SSH_UMAC128, NULL, 0, 128, 128, 0 },
  14. @@ -84,7 +86,9 @@ static const struct macalg macs[] = {
  15. #endif
  16. { "hmac-md5-etm@openssh.com", SSH_EVP, EVP_md5, 0, 0, 0, 1 },
  17. { "hmac-md5-96-etm@openssh.com", SSH_EVP, EVP_md5, 96, 0, 0, 1 },
  18. +#ifndef OPENSSL_NO_RIPEMD
  19. { "hmac-ripemd160-etm@openssh.com", SSH_EVP, EVP_ripemd160, 0, 0, 0, 1 },
  20. +#endif
  21. { "umac-64-etm@openssh.com", SSH_UMAC, NULL, 0, 128, 64, 1 },
  22. { "umac-128-etm@openssh.com", SSH_UMAC128, NULL, 0, 128, 128, 1 },