ipsec-tools-0.6.7.101-string_legacy.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. diff -rup ipsec-tools-0.6.6.oorig/src/racoon/missing/crypto/rijndael/rijndael-api-fst.c ipsec-tools-0.6.6/src/racoon/missing/crypto/rijndael/rijndael-api-fst.c
  2. --- ipsec-tools-0.6.6.oorig/src/racoon/missing/crypto/rijndael/rijndael-api-fst.c 2004-01-12 23:31:45.000000000 +0100
  3. +++ ipsec-tools-0.6.6/src/racoon/missing/crypto/rijndael/rijndael-api-fst.c 2006-10-11 16:29:42.000000000 +0200
  4. @@ -30,8 +30,12 @@
  5. #include <crypto/rijndael/rijndael_local.h>
  6. #include <err.h>
  7. +#ifndef bcopy
  8. #define bcopy(a, b, c) memcpy(b, a, c)
  9. +#endif
  10. +#ifndef bzero
  11. #define bzero(a, b) memset(a, 0, b)
  12. +#endif
  13. #define panic(a) err(1, (a))
  14. int rijndael_makeKey(keyInstance *key, BYTE direction, int keyLen, char *keyMaterial) {
  15. diff -rup ipsec-tools-0.6.6.oorig/src/racoon/missing/crypto/sha2/sha2.c ipsec-tools-0.6.6/src/racoon/missing/crypto/sha2/sha2.c
  16. --- ipsec-tools-0.6.6.oorig/src/racoon/missing/crypto/sha2/sha2.c 2004-09-21 16:35:25.000000000 +0200
  17. +++ ipsec-tools-0.6.6/src/racoon/missing/crypto/sha2/sha2.c 2006-10-11 16:29:08.000000000 +0200
  18. @@ -50,8 +50,12 @@
  19. #include <err.h>
  20. #include <string.h>
  21. +#ifndef bcopy
  22. #define bcopy(a, b, c) memcpy((b), (a), (c))
  23. +#endif
  24. +#ifndef bzero
  25. #define bzero(a, b) memset((a), 0, (b))
  26. +#endif
  27. #define panic(a) err(1, (a))
  28. #if OPENSSL_VERSION_NUMBER >= 0x00907000L