patch-cipher_c 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. diff -Nur openssh-6.2p1.orig/cipher.c openssh-6.2p1/cipher.c
  2. --- openssh-6.5p1.orig/cipher.c 2014-01-25 23:37:26.000000000 +0100
  3. +++ openssh-6.5p1/cipher.c 2014-02-11 15:26:16.000000000 +0100
  4. @@ -75,23 +75,33 @@ static const struct Cipher ciphers[] = {
  5. { "none", SSH_CIPHER_NONE, 8, 0, 0, 0, 0, 0, EVP_enc_null },
  6. { "des", SSH_CIPHER_DES, 8, 8, 0, 0, 0, 1, EVP_des_cbc },
  7. { "3des", SSH_CIPHER_3DES, 8, 16, 0, 0, 0, 1, evp_ssh1_3des },
  8. +#ifndef OPENSSL_NO_BF
  9. { "blowfish", SSH_CIPHER_BLOWFISH, 8, 32, 0, 0, 0, 1, evp_ssh1_bf },
  10. +#endif
  11. { "3des-cbc", SSH_CIPHER_SSH2, 8, 24, 0, 0, 0, 1, EVP_des_ede3_cbc },
  12. +#ifndef OPENSSL_NO_BF
  13. { "blowfish-cbc",
  14. SSH_CIPHER_SSH2, 8, 16, 0, 0, 0, 1, EVP_bf_cbc },
  15. +#endif
  16. +#ifndef OPENSSL_NO_CAST
  17. { "cast128-cbc",
  18. SSH_CIPHER_SSH2, 8, 16, 0, 0, 0, 1, EVP_cast5_cbc },
  19. +#endif
  20. { "arcfour", SSH_CIPHER_SSH2, 8, 16, 0, 0, 0, 0, EVP_rc4 },
  21. { "arcfour128", SSH_CIPHER_SSH2, 8, 16, 0, 0, 1536, 0, EVP_rc4 },
  22. { "arcfour256", SSH_CIPHER_SSH2, 8, 32, 0, 0, 1536, 0, EVP_rc4 },
  23. { "aes128-cbc", SSH_CIPHER_SSH2, 16, 16, 0, 0, 0, 1, EVP_aes_128_cbc },
  24. +#ifndef OPENSSL_NO_AES192
  25. { "aes192-cbc", SSH_CIPHER_SSH2, 16, 24, 0, 0, 0, 1, EVP_aes_192_cbc },
  26. +#endif
  27. { "aes256-cbc", SSH_CIPHER_SSH2, 16, 32, 0, 0, 0, 1, EVP_aes_256_cbc },
  28. { "rijndael-cbc@lysator.liu.se",
  29. SSH_CIPHER_SSH2, 16, 32, 0, 0, 0, 1, EVP_aes_256_cbc },
  30. { "aes128-ctr", SSH_CIPHER_SSH2, 16, 16, 0, 0, 0, 0, EVP_aes_128_ctr },
  31. +#ifndef OPENSSL_NO_AES192
  32. { "aes192-ctr", SSH_CIPHER_SSH2, 16, 24, 0, 0, 0, 0, EVP_aes_192_ctr },
  33. +#endif
  34. { "aes256-ctr", SSH_CIPHER_SSH2, 16, 32, 0, 0, 0, 0, EVP_aes_256_ctr },
  35. #ifdef OPENSSL_HAVE_EVPGCM
  36. { "aes128-gcm@openssh.com",