Blame SOURCES/pycrypto-2.6.1-unbundle-libtomcrypt.patch

832e2c
--- setup.py
832e2c
+++ setup.py
832e2c
@@ -390,10 +390,12 @@ kw = {'name':"pycrypto",
832e2c
                       include_dirs=['src/'],
832e2c
                       sources=["src/CAST.c"]),
832e2c
             Extension("Crypto.Cipher._DES",
832e2c
-                      include_dirs=['src/', 'src/libtom/'],
832e2c
+                      include_dirs=['src/'],
832e2c
+                      libraries=['tomcrypt'],
832e2c
                       sources=["src/DES.c"]),
832e2c
             Extension("Crypto.Cipher._DES3",
832e2c
-                      include_dirs=['src/', 'src/libtom/'],
832e2c
+                      include_dirs=['src/'],
832e2c
+                      libraries=['tomcrypt'],
832e2c
                       sources=["src/DES3.c"]),
832e2c
 
832e2c
             # Stream ciphers
832e2c
--- src/DES.c
832e2c
+++ src/DES.c
832e2c
@@ -28,8 +28,8 @@
832e2c
  * assert-like LTC_ARGCHK macro fails. */
832e2c
 #define ARGTYPE 4
832e2c
 
832e2c
-/* Include the actial DES implementation */
832e2c
-#include "libtom/tomcrypt_des.c"
832e2c
+/* Access the actual DES implementation */
832e2c
+#include "tomcrypt.h"
832e2c
 
832e2c
 #undef DES  /* this is needed because tomcrypt_custom.h defines DES to an empty string */
832e2c