patch-src_racoon_algorithm_c 1.6 KB

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