patch-myproposal_h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- openssh-5.2p1.orig/myproposal.h 2009-01-28 06:33:31.000000000 +0100
  3. +++ openssh-5.2p1/myproposal.h 2009-05-01 14:00:47.000000000 +0200
  4. @@ -42,15 +42,35 @@
  5. #define KEX_DEFAULT_PK_ALG "ssh-rsa,ssh-dss"
  6. +
  7. +#ifndef OPENSSL_NO_AES192
  8. +#define KEX_ENCRYPT_AES192 ",aes192-ctr,aes192-cbc"
  9. +#else
  10. +#define KEX_ENCRYPT_AES192
  11. +#endif
  12. +#ifndef OPENSSL_NO_BF
  13. +#define KEX_ENCRYPT_BF ",blowfish-cbc"
  14. +#else
  15. +#define KEX_ENCRYPT_BF
  16. +#endif
  17. +#ifndef OPENSSL_NO_CAST
  18. +#define KEX_ENCRYPT_CAST ",cast128-cbc"
  19. +#define KEX_MAC_CAST ",hmac-ripemd160,hmac-ripemd160@openssh.com"
  20. +#else
  21. +#define KEX_ENCRYPT_CAST
  22. +#define KEX_MAC_CAST
  23. +#endif
  24. +
  25. #define KEX_DEFAULT_ENCRYPT \
  26. - "aes128-ctr,aes192-ctr,aes256-ctr," \
  27. + "aes128-ctr,aes256-ctr," \
  28. "arcfour256,arcfour128," \
  29. - "aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc," \
  30. - "aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se"
  31. + "aes128-cbc,3des-cbc," \
  32. + "aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se" \
  33. + KEX_ENCRYPT_AES192 KEX_ENCRYPT_BF KEX_ENCRYPT_CAST
  34. #define KEX_DEFAULT_MAC \
  35. - "hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160," \
  36. - "hmac-ripemd160@openssh.com," \
  37. - "hmac-sha1-96,hmac-md5-96"
  38. + "hmac-md5,hmac-sha1,umac-64@openssh.com," \
  39. + "hmac-sha1-96,hmac-md5-96" \
  40. + KEX_MAC_CAST
  41. #define KEX_DEFAULT_COMP "none,zlib@openssh.com,zlib"
  42. #define KEX_DEFAULT_LANG ""