patch-mac_c 1.0 KB

123456789101112131415161718192021222324
  1. diff -Nur openssh-6.2p1.orig/mac.c openssh-6.2p1/mac.c
  2. --- openssh-6.2p1.orig/mac.c 2012-12-12 01:00:37.000000000 +0100
  3. +++ openssh-6.2p1/mac.c 2013-08-20 08:56:49.123256567 +0200
  4. @@ -68,8 +68,10 @@ struct {
  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. @@ -82,7 +84,9 @@ struct {
  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 },