patch-src_racoon_crypto_openssl_c 901 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --- ipsec-tools-0.8.2.orig/src/racoon/crypto_openssl.c 2012-12-24 15:50:39.000000000 +0100
  2. +++ ipsec-tools-0.8.2/src/racoon/crypto_openssl.c 2015-03-19 17:44:43.000000000 +0100
  3. @@ -63,8 +63,12 @@
  4. #ifdef HAVE_OPENSSL_ENGINE_H
  5. #include <openssl/engine.h>
  6. #endif
  7. +#ifndef OPENSSL_NO_BF
  8. #include <openssl/blowfish.h>
  9. +#endif
  10. +#ifndef OPENSSL_NO_CAST
  11. #include <openssl/cast.h>
  12. +#endif
  13. #include <openssl/err.h>
  14. #ifdef HAVE_OPENSSL_RC5_H
  15. #include <openssl/rc5.h>
  16. @@ -1292,6 +1296,7 @@ eay_idea_keylen(len)
  17. }
  18. #endif
  19. +#ifndef OPENSSL_NO_BF
  20. /*
  21. * BLOWFISH-CBC
  22. */
  23. @@ -1326,6 +1331,7 @@ eay_bf_keylen(len)
  24. return -1;
  25. return len;
  26. }
  27. +#endif
  28. #ifdef HAVE_OPENSSL_RC5_H
  29. /*
  30. @@ -1437,6 +1443,7 @@ eay_3des_keylen(len)
  31. return 192;
  32. }
  33. +#ifndef OPENSSL_NO_CAST
  34. /*
  35. * CAST-CBC
  36. */
  37. @@ -1471,6 +1478,7 @@ eay_cast_keylen(len)
  38. return -1;
  39. return len;
  40. }
  41. +#endif
  42. /*
  43. * AES(RIJNDAEL)-CBC