patch-sshcrypto_c 853 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. $Id$
  2. --- dsniff-2.4.orig/sshcrypto.c 2001-03-15 09:33:04.000000000 +0100
  3. +++ dsniff-2.4/sshcrypto.c 2009-05-09 23:13:59.000000000 +0200
  4. @@ -14,6 +14,10 @@
  5. #include <sys/types.h>
  6. #include <openssl/ssl.h>
  7. +#ifndef OPENSSL_NO_BF
  8. +#include <openssl/blowfish.h>
  9. +#endif
  10. +#include <openssl/des.h>
  11. #include <err.h>
  12. #include <stdio.h>
  13. @@ -21,10 +25,12 @@
  14. #include "sshcrypto.h"
  15. +#ifndef OPENSSL_NO_BF
  16. struct blowfish_state {
  17. struct bf_key_st key;
  18. u_char iv[8];
  19. };
  20. +#endif
  21. struct des3_state {
  22. des_key_schedule k1, k2, k3;
  23. @@ -106,6 +112,7 @@ swap_bytes(const u_char *src, u_char *ds
  24. }
  25. }
  26. +#ifndef OPENSSL_NO_BF
  27. void *
  28. blowfish_init(u_char *sesskey, int len)
  29. {
  30. @@ -143,6 +150,7 @@ blowfish_decrypt(u_char *src, u_char *ds
  31. BF_DECRYPT);
  32. swap_bytes(dst, dst, len);
  33. }
  34. +#endif
  35. /* XXX - SSH1's weirdo 3DES... */
  36. void *