1
0

patch-src_racoon_algorithm_c 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --- ipsec-tools-0.8.0.orig/src/racoon/algorithm.c 2006-10-06 14:02:27.000000000 +0200
  2. +++ ipsec-tools-0.8.0/src/racoon/algorithm.c 2011-03-31 13:22:28.381818558 +0200
  3. @@ -111,9 +111,11 @@ static struct enc_algorithm oakley_encde
  4. eay_idea_encrypt, eay_idea_decrypt,
  5. eay_idea_weakkey, eay_idea_keylen, },
  6. #endif
  7. +#ifndef OPENSSL_NO_BF
  8. { "blowfish", algtype_blowfish, OAKLEY_ATTR_ENC_ALG_BLOWFISH, 8,
  9. eay_bf_encrypt, eay_bf_decrypt,
  10. eay_bf_weakkey, eay_bf_keylen, },
  11. +#endif
  12. #ifdef HAVE_OPENSSL_RC5_H
  13. { "rc5", algtype_rc5, OAKLEY_ATTR_ENC_ALG_RC5, 8,
  14. eay_rc5_encrypt, eay_rc5_decrypt,
  15. @@ -122,9 +124,11 @@ static struct enc_algorithm oakley_encde
  16. { "3des", algtype_3des, OAKLEY_ATTR_ENC_ALG_3DES, 8,
  17. eay_3des_encrypt, eay_3des_decrypt,
  18. eay_3des_weakkey, eay_3des_keylen, },
  19. +#ifndef OPENSSL_NO_CAST
  20. { "cast", algtype_cast128, OAKLEY_ATTR_ENC_ALG_CAST, 8,
  21. eay_cast_encrypt, eay_cast_decrypt,
  22. eay_cast_weakkey, eay_cast_keylen, },
  23. +#endif
  24. { "aes", algtype_aes, OAKLEY_ATTR_ENC_ALG_AES, 16,
  25. eay_aes_encrypt, eay_aes_decrypt,
  26. eay_aes_weakkey, eay_aes_keylen, },
  27. @@ -150,12 +154,16 @@ static struct enc_algorithm ipsec_encdef
  28. NULL, NULL,
  29. NULL, eay_rc5_keylen, },
  30. #endif
  31. +#ifndef OPENSSL_NO_CAST
  32. { "cast", algtype_cast128, IPSECDOI_ESP_CAST, 8,
  33. NULL, NULL,
  34. NULL, eay_cast_keylen, },
  35. +#endif
  36. +#ifndef OPENSSL_NO_CAST
  37. { "blowfish", algtype_blowfish, IPSECDOI_ESP_BLOWFISH, 8,
  38. NULL, NULL,
  39. NULL, eay_bf_keylen, },
  40. +#endif
  41. { "des-iv32", algtype_des_iv32, IPSECDOI_ESP_DES_IV32, 8,
  42. NULL, NULL,
  43. NULL, eay_des_keylen, },