This repository has been archived by the owner on Aug 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
/
dissent.pro
309 lines (293 loc) · 12.4 KB
/
dissent.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
TEMPLATE = lib
TARGET = dissent
DEPENDPATH +=
CONFIG += qt debug
QT = core network
greaterThan(QT_MAJOR_VERSION, 4):QT += concurrent
# Dissent Wire protocol version
DEFINES += "VERSION=3"
# COMMENT THE BELOW TO MAKE DISSENT RUN WITH A SECURE SHUFFLE, THEN
# qmake *.pro, make clean, make...
DEFINES += FAST_NEFF_SHUFFLE
# UNCOMMENT THE FOLLOWING TO MAKE DISSENT NICE FOR DEMOS
# DEFINES += DEMO_SESSION
# UNCOMMENT THE FOLLOWING TO ENABLE BLOG DROP BLAME FOR CSBULK
# DEFINES += CS_BLOG_DROP
QMAKE_CXXFLAGS += -Werror -std=c++11
QMAKE_CFLAGS += -Werror
# External Libraries
# CryptoPP
DEFINES += CRYPTOPP
LIBS += -lcryptopp
# QHttpServer
INCLUDEPATH += ext/qhttpserver/src
HEADERS += ext/qhttpserver/src/qhttpconnection.h \
ext/qhttpserver/src/qhttprequest.h \
ext/qhttpserver/src/qhttpresponse.h \
ext/qhttpserver/src/qhttpserver.h
SOURCES += ext/qhttpserver/src/qhttpconnection.cpp \
ext/qhttpserver/src/qhttprequest.cpp \
ext/qhttpserver/src/qhttpresponse.cpp \
ext/qhttpserver/src/qhttpserver.cpp
# Joyent HTTP Parser in QHttpServer
INCLUDEPATH += ext/qhttpserver/http-parser
HEADERS += ext/qhttpserver/http-parser/http_parser.h
SOURCES += ext/qhttpserver/http-parser/http_parser.c
# Qt-JSON
INCLUDEPATH += ext/qt-json
HEADERS += ext/qt-json/json.h
SOURCES += ext/qt-json/json.cpp
# Qxt Command-line parsing
INCLUDEPATH += ext/qxt
HEADERS += ext/qxt/qxtcommandoptions.h \
ext/qxt/qxtglobal.h
SOURCES += ext/qxt/qxtcommandoptions.cpp
# Dissent
INCLUDEPATH += src
HEADERS += src/Dissent.hpp \
src/Anonymity/BaseDCNetRound.hpp \
src/Anonymity/CSDCNetRound.hpp \
src/Anonymity/Log.hpp \
src/Anonymity/NeffKeyShuffleRound.hpp \
src/Anonymity/NeffShuffleRound.hpp \
src/Anonymity/NullRound.hpp \
src/Anonymity/Round.hpp \
src/Anonymity/RoundFactory.hpp \
src/Anonymity/RoundStateMachine.hpp \
src/Applications/CommandLine.hpp \
src/Applications/ConsoleSink.hpp \
src/Applications/FileSink.hpp \
src/Applications/Node.hpp \
src/Applications/Settings.hpp \
src/ClientServer/ClientConnectionAcquirer.hpp \
src/ClientServer/Overlay.hpp \
src/ClientServer/ServerConnectionAcquirer.hpp \
src/Connections/Connection.hpp \
src/Connections/ConnectionAcquirer.hpp \
src/Connections/ConnectionManager.hpp \
src/Connections/ConnectionTable.hpp \
src/Connections/ForwardingSender.hpp \
src/Connections/Id.hpp \
src/Connections/IForwarder.hpp \
src/Connections/IOverlaySender.hpp \
src/Crypto/AsymmetricKey.hpp \
src/Crypto/DsaPrivateKey.hpp \
src/Crypto/DsaPublicKey.hpp \
src/Crypto/NeffShuffle.hpp \
src/Crypto/RsaPrivateKey.hpp \
src/Crypto/RsaPublicKey.hpp \
src/Crypto/CryptoRandom.hpp \
src/Crypto/DiffieHellman.hpp \
src/Crypto/Hash.hpp \
src/Crypto/Integer.hpp \
src/Crypto/KeyShare.hpp \
src/Crypto/LRSPrivateKey.hpp \
src/Crypto/LRSPublicKey.hpp \
src/Crypto/LRSSignature.hpp \
src/Crypto/OnionEncryptor.hpp \
src/Crypto/ThreadedOnionEncryptor.hpp \
src/Crypto/Serialization.hpp \
src/Crypto/Utils.hpp \
src/Crypto/AbstractGroup/CppECGroup.hpp \
src/Crypto/AbstractGroup/CppECElementData.hpp \
src/Crypto/AbstractGroup/ElementData.hpp \
src/Crypto/AbstractGroup/IntegerGroup.hpp \
src/Crypto/AbstractGroup/Element.hpp \
src/Crypto/AbstractGroup/AbstractGroup.hpp \
src/Crypto/AbstractGroup/ECParams.hpp \
src/Crypto/AbstractGroup/IntegerElementData.hpp \
src/Crypto/BlogDrop/PublicKey.hpp \
src/Crypto/BlogDrop/Parameters.hpp \
src/Crypto/BlogDrop/BlogDropUtils.hpp \
src/Crypto/BlogDrop/BlogDropServer.hpp \
src/Crypto/BlogDrop/HashingGenServerCiphertext.hpp \
src/Crypto/BlogDrop/BlogDropClient.hpp \
src/Crypto/BlogDrop/HashingGenClientCiphertext.hpp \
src/Crypto/BlogDrop/PublicKeySet.hpp \
src/Crypto/BlogDrop/ChangingGenServerCiphertext.hpp \
src/Crypto/BlogDrop/ElGamalServerCiphertext.hpp \
src/Crypto/BlogDrop/ServerCiphertext.hpp \
src/Crypto/BlogDrop/BlogDropAuthor.hpp \
src/Crypto/BlogDrop/ClientCiphertext.hpp \
src/Crypto/BlogDrop/Plaintext.hpp \
src/Crypto/BlogDrop/CiphertextFactory.hpp \
src/Crypto/BlogDrop/PrivateKey.hpp \
src/Crypto/BlogDrop/ElGamalClientCiphertext.hpp \
src/Crypto/BlogDrop/ChangingGenClientCiphertext.hpp \
src/Identity/PublicIdentity.hpp \
src/Identity/PrivateIdentity.hpp \
src/Identity/Roster.hpp \
src/Messaging/BufferSink.hpp \
src/Messaging/DummySink.hpp \
src/Messaging/Filter.hpp \
src/Messaging/FilterObject.hpp \
src/Messaging/GetDataCallback.hpp \
src/Messaging/ISender.hpp \
src/Messaging/ISink.hpp \
src/Messaging/ISinkObject.hpp \
src/Messaging/Message.hpp \
src/Messaging/Request.hpp \
src/Messaging/RequestResponder.hpp \
src/Messaging/RequestHandler.hpp \
src/Messaging/Response.hpp \
src/Messaging/ResponseHandler.hpp \
src/Messaging/RpcHandler.hpp \
src/Messaging/SignalSink.hpp \
src/Messaging/SinkMultiplexer.hpp \
src/Messaging/State.hpp \
src/Messaging/StateData.hpp \
src/Messaging/StateMachine.hpp \
src/Messaging/Source.hpp \
src/Messaging/SourceObject.hpp \
src/Session/ClientRegister.hpp \
src/Session/ClientSession.hpp \
src/Session/ClientStates.hpp \
src/Session/SerializeList.hpp \
src/Session/ServerAgree.hpp \
src/Session/ServerEnlist.hpp \
src/Session/ServerEnlisted.hpp \
src/Session/ServerInit.hpp \
src/Session/ServerList.hpp \
src/Session/ServerQueued.hpp \
src/Session/ServerSession.hpp \
src/Session/ServerStart.hpp \
src/Session/ServerStates.hpp \
src/Session/ServerStop.hpp \
src/Session/ServerVerifyList.hpp \
src/Session/Session.hpp \
src/Session/SessionData.hpp \
src/Session/SessionMessage.hpp \
src/Session/SessionSharedState.hpp \
src/Session/SessionState.hpp \
src/Transports/Address.hpp \
src/Transports/AddressFactory.hpp \
src/Transports/BufferAddress.hpp \
src/Transports/BufferEdge.hpp \
src/Transports/BufferEdgeListener.hpp \
src/Transports/Edge.hpp \
src/Transports/EdgeFactory.hpp \
src/Transports/EdgeListener.hpp \
src/Transports/EdgeListenerFactory.hpp \
src/Transports/TcpAddress.hpp \
src/Transports/TcpEdge.hpp \
src/Transports/TcpEdgeListener.hpp \
src/Utils/Logging.hpp \
src/Utils/Random.hpp \
src/Utils/QRunTimeError.hpp \
src/Utils/Serialization.hpp \
src/Utils/SignalCounter.hpp \
src/Utils/Sleeper.hpp \
src/Utils/StartStop.hpp \
src/Utils/StartStopSlots.hpp \
src/Utils/Time.hpp \
src/Utils/Timer.hpp \
src/Utils/TimerCallback.hpp \
src/Utils/TimerEvent.hpp \
src/Utils/Triggerable.hpp \
src/Utils/Triple.hpp \
src/Utils/Utils.hpp \
src/Web/EchoService.hpp \
src/Web/GetDirectoryService.hpp \
src/Web/GetFileService.hpp \
src/Web/GetMessagesService.hpp \
src/Web/SendMessageService.hpp \
src/Web/SessionService.hpp \
src/Web/MessageWebService.hpp \
src/Web/WebServer.hpp \
src/Web/WebService.hpp
SOURCES += src/Anonymity/BaseDCNetRound.cpp \
src/Anonymity/CSDCNetRound.cpp \
src/Anonymity/Log.cpp \
src/Anonymity/NullRound.cpp \
src/Anonymity/NeffShuffleRound.cpp \
src/Anonymity/Round.cpp \
src/Anonymity/RoundFactory.cpp \
src/Applications/CommandLine.cpp \
src/Applications/ConsoleSink.cpp \
src/Applications/FileSink.cpp \
src/Applications/Settings.cpp \
src/ClientServer/ClientConnectionAcquirer.cpp \
src/ClientServer/Overlay.cpp \
src/ClientServer/ServerConnectionAcquirer.cpp \
src/Connections/Connection.cpp \
src/Connections/ConnectionManager.cpp \
src/Connections/ConnectionTable.cpp \
src/Connections/Id.cpp \
src/Crypto/AsymmetricKey.cpp \
src/Crypto/DsaPrivateKey.cpp \
src/Crypto/DsaPublicKey.cpp \
src/Crypto/NeffShuffle.cpp \
src/Crypto/DiffieHellman.cpp \
src/Crypto/KeyShare.cpp \
src/Crypto/LRSPrivateKey.cpp \
src/Crypto/LRSPublicKey.cpp \
src/Crypto/OnionEncryptor.cpp \
src/Crypto/RsaPrivateKey.cpp \
src/Crypto/ThreadedOnionEncryptor.cpp \
src/Crypto/AbstractGroup/IntegerGroup.cpp \
src/Crypto/AbstractGroup/AbstractGroup.cpp \
src/Crypto/AbstractGroup/CppECGroup.cpp \
src/Crypto/AbstractGroup/ECParams.cpp \
src/Crypto/BlogDrop/CiphertextFactory.cpp \
src/Crypto/BlogDrop/BlogDropServer.cpp \
src/Crypto/BlogDrop/PublicKeySet.cpp \
src/Crypto/BlogDrop/ChangingGenServerCiphertext.cpp \
src/Crypto/BlogDrop/HashingGenClientCiphertext.cpp \
src/Crypto/BlogDrop/ChangingGenClientCiphertext.cpp \
src/Crypto/BlogDrop/ElGamalServerCiphertext.cpp \
src/Crypto/BlogDrop/Parameters.cpp \
src/Crypto/BlogDrop/ClientCiphertext.cpp \
src/Crypto/BlogDrop/BlogDropUtils.cpp \
src/Crypto/BlogDrop/ServerCiphertext.cpp \
src/Crypto/BlogDrop/BlogDropClient.cpp \
src/Crypto/BlogDrop/Plaintext.cpp \
src/Crypto/BlogDrop/ElGamalClientCiphertext.cpp \
src/Crypto/BlogDrop/HashingGenServerCiphertext.cpp \
src/Crypto/BlogDrop/PublicKey.cpp \
src/Crypto/BlogDrop/BlogDropAuthor.cpp \
src/Crypto/BlogDrop/PrivateKey.cpp \
src/Identity/Roster.cpp \
src/Messaging/RpcHandler.cpp \
src/Messaging/SignalSink.cpp \
src/Session/ClientSession.cpp \
src/Session/ServerSession.cpp \
src/Session/Session.cpp \
src/Session/SessionSharedState.cpp \
src/Transports/Address.cpp \
src/Transports/AddressFactory.cpp \
src/Transports/BufferAddress.cpp \
src/Transports/BufferEdge.cpp \
src/Transports/BufferEdgeListener.cpp \
src/Transports/Edge.cpp \
src/Transports/EdgeFactory.cpp \
src/Transports/EdgeListener.cpp \
src/Transports/EdgeListenerFactory.cpp \
src/Transports/TcpAddress.cpp \
src/Transports/TcpEdge.cpp \
src/Transports/TcpEdgeListener.cpp \
src/Utils/Logging.cpp \
src/Utils/Random.cpp \
src/Utils/Sleeper.cpp \
src/Utils/StartStop.cpp \
src/Utils/Time.cpp \
src/Utils/Timer.cpp \
src/Utils/TimerEvent.cpp \
src/Utils/Utils.cpp \
src/Web/GetDirectoryService.cpp \
src/Web/GetFileService.cpp \
src/Web/GetMessagesService.cpp \
src/Web/SendMessageService.cpp \
src/Web/SessionService.cpp \
src/Web/WebServer.cpp \
src/Web/WebService.cpp
HEADERS += src/Crypto/CryptoPP/DsaPublicKeyImpl.hpp \
src/Crypto/CryptoPP/Helper.hpp \
src/Crypto/CryptoPP/RsaPublicKeyImpl.hpp \
SOURCES += src/Crypto/CryptoPP/CryptoRandomImpl.cpp \
src/Crypto/CryptoPP/DiffieHellmanImpl.cpp \
src/Crypto/CryptoPP/DsaPrivateKeyImpl.cpp \
src/Crypto/CryptoPP/DsaPublicKeyImpl.cpp \
src/Crypto/CryptoPP/HashImpl.cpp \
src/Crypto/CryptoPP/IntegerImpl.cpp \
src/Crypto/CryptoPP/RsaPrivateKeyImpl.cpp \
src/Crypto/CryptoPP/RsaPublicKeyImpl.cpp