1
0

patch-cipher_c 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. --- openssh-5.4p1.orig/cipher.c 2009-01-28 06:38:41.000000000 +0100
  2. +++ openssh-5.4p1/cipher.c 2010-03-17 16:24:25.000000000 +0100
  3. @@ -69,21 +69,30 @@ struct Cipher {
  4. { "none", SSH_CIPHER_NONE, 8, 0, 0, 0, EVP_enc_null },
  5. { "des", SSH_CIPHER_DES, 8, 8, 0, 1, EVP_des_cbc },
  6. { "3des", SSH_CIPHER_3DES, 8, 16, 0, 1, evp_ssh1_3des },
  7. +#ifndef OPENSSL_NO_BF
  8. { "blowfish", SSH_CIPHER_BLOWFISH, 8, 32, 0, 1, evp_ssh1_bf },
  9. -
  10. +#endif
  11. { "3des-cbc", SSH_CIPHER_SSH2, 8, 24, 0, 1, EVP_des_ede3_cbc },
  12. +#ifndef OPENSSL_NO_BF
  13. { "blowfish-cbc", SSH_CIPHER_SSH2, 8, 16, 0, 1, EVP_bf_cbc },
  14. +#endif
  15. +#ifndef OPENSSL_NO_CAST
  16. { "cast128-cbc", SSH_CIPHER_SSH2, 8, 16, 0, 1, EVP_cast5_cbc },
  17. +#endif
  18. { "arcfour", SSH_CIPHER_SSH2, 8, 16, 0, 0, EVP_rc4 },
  19. { "arcfour128", SSH_CIPHER_SSH2, 8, 16, 1536, 0, EVP_rc4 },
  20. { "arcfour256", SSH_CIPHER_SSH2, 8, 32, 1536, 0, EVP_rc4 },
  21. { "aes128-cbc", SSH_CIPHER_SSH2, 16, 16, 0, 1, EVP_aes_128_cbc },
  22. +#ifndef OPENSSL_NO_AES192
  23. { "aes192-cbc", SSH_CIPHER_SSH2, 16, 24, 0, 1, EVP_aes_192_cbc },
  24. +#endif
  25. { "aes256-cbc", SSH_CIPHER_SSH2, 16, 32, 0, 1, EVP_aes_256_cbc },
  26. { "rijndael-cbc@lysator.liu.se",
  27. SSH_CIPHER_SSH2, 16, 32, 0, 1, EVP_aes_256_cbc },
  28. { "aes128-ctr", SSH_CIPHER_SSH2, 16, 16, 0, 0, evp_aes_128_ctr },
  29. +#ifndef OPENSSL_NO_AES192
  30. { "aes192-ctr", SSH_CIPHER_SSH2, 16, 24, 0, 0, evp_aes_128_ctr },
  31. +#endif
  32. { "aes256-ctr", SSH_CIPHER_SSH2, 16, 32, 0, 0, evp_aes_128_ctr },
  33. #ifdef USE_CIPHER_ACSS
  34. { "acss@openssh.org", SSH_CIPHER_SSH2, 16, 5, 0, 0, EVP_acss },