Last change
on this file since 4869 was
4869,
checked in by charles, 15 years ago
|
part 1 of the bencode exploit fix:
- better error checking for int & string parsing
- add automated unit tests
|
File size:
2.4 KB
|
Line | |
---|
1 | AM_CPPFLAGS = -I. -I$(top_srcdir) -I$(top_srcdir)/third-party/ -D__TRANSMISSION__ $(LIBEVENT_CPPFLAGS) |
---|
2 | AM_CFLAGS = $(OPENSSL_CFLAGS) $(PTHREAD_CFLAGS) |
---|
3 | |
---|
4 | noinst_LIBRARIES = libtransmission.a |
---|
5 | |
---|
6 | libtransmission_a_SOURCES = \ |
---|
7 | bencode.c \ |
---|
8 | clients.c \ |
---|
9 | completion.c \ |
---|
10 | crypto.c \ |
---|
11 | fastresume.c \ |
---|
12 | fdlimit.c \ |
---|
13 | handshake.c \ |
---|
14 | inout.c \ |
---|
15 | ipcparse.c \ |
---|
16 | list.c \ |
---|
17 | makemeta.c \ |
---|
18 | metainfo.c \ |
---|
19 | natpmp.c \ |
---|
20 | net.c \ |
---|
21 | peer-io.c \ |
---|
22 | peer-mgr.c \ |
---|
23 | peer-msgs.c \ |
---|
24 | platform.c \ |
---|
25 | ptrarray.c \ |
---|
26 | publish.c \ |
---|
27 | ratecontrol.c \ |
---|
28 | shared.c \ |
---|
29 | stats.c \ |
---|
30 | torrent.c \ |
---|
31 | torrent-ctor.c \ |
---|
32 | tracker.c \ |
---|
33 | transmission.c \ |
---|
34 | trevent.c \ |
---|
35 | upnp.c \ |
---|
36 | utils.c |
---|
37 | |
---|
38 | noinst_HEADERS = \ |
---|
39 | bencode.h \ |
---|
40 | bsdtree.h \ |
---|
41 | clients.h \ |
---|
42 | crypto.h \ |
---|
43 | completion.h \ |
---|
44 | fastresume.h \ |
---|
45 | fdlimit.h \ |
---|
46 | handshake.h \ |
---|
47 | inout.h \ |
---|
48 | internal.h \ |
---|
49 | ipcparse.h \ |
---|
50 | list.h \ |
---|
51 | makemeta.h \ |
---|
52 | metainfo.h \ |
---|
53 | natpmp.h \ |
---|
54 | net.h \ |
---|
55 | peer-io.h \ |
---|
56 | peer-mgr.h \ |
---|
57 | peer-mgr-private.h \ |
---|
58 | peer-msgs.h \ |
---|
59 | platform.h \ |
---|
60 | ptrarray.h \ |
---|
61 | publish.h \ |
---|
62 | ratecontrol.h \ |
---|
63 | shared.h \ |
---|
64 | stats.h \ |
---|
65 | torrent.h \ |
---|
66 | tracker.h \ |
---|
67 | transmission.h \ |
---|
68 | trcompat.h \ |
---|
69 | trevent.h \ |
---|
70 | upnp.h \ |
---|
71 | utils.h |
---|
72 | |
---|
73 | |
---|
74 | |
---|
75 | noinst_PROGRAMS = \ |
---|
76 | bencode-test \ |
---|
77 | test-fastset \ |
---|
78 | test-peer-id |
---|
79 | |
---|
80 | TESTS = $(noinst_PROGRAMS) |
---|
81 | |
---|
82 | TEST_LDADD = \ |
---|
83 | ./libtransmission.a \ |
---|
84 | $(top_builddir)/third-party/miniupnp/libminiupnp.a \ |
---|
85 | $(top_builddir)/third-party/libnatpmp/libnatpmp.a \ |
---|
86 | $(top_builddir)/third-party/libevent/libevent.la \ |
---|
87 | $(OPENSSL_LIBS) $(PTHREAD_LIBS) -lm |
---|
88 | |
---|
89 | bencode_test_SOURCES = bencode-test.c |
---|
90 | bencode_test_LDADD = $(TEST_LDADD) |
---|
91 | test_fastset_SOURCES = test-fastset.c |
---|
92 | test_fastset_LDADD = $(TEST_LDADD) |
---|
93 | test_peer_id_SOURCES = test-peer-id.c |
---|
94 | test_peer_id_LDADD = $(TEST_LDADD) |
---|
95 | |
---|
96 | |
---|
97 | |
---|
98 | EXTRA_libtransmission_a_SOURCES = \ |
---|
99 | version.h |
---|
100 | |
---|
101 | BUILT_SOURCES = \ |
---|
102 | version.h |
---|
103 | |
---|
104 | version.h: |
---|
105 | echo '#define PEERID_PREFIX "'@PEERID_PREFIX@'"' > version.h |
---|
106 | echo '#define USERAGENT_PREFIX "'@USERAGENT_PREFIX@'"' >> version.h |
---|
107 | echo '#define SVN_REVISION "'`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'"' >> version.h |
---|
108 | echo '#define SHORT_VERSION_STRING "'@USERAGENT_PREFIX@'"' >> version.h |
---|
109 | echo '#define LONG_VERSION_STRING "'@USERAGENT_PREFIX@' ('`svn info | grep "Revision" | awk -F': ' '{print $$2}'`')"' >> version.h |
---|
Note: See
TracBrowser
for help on using the repository browser.