implemented the RFC 5792 PA-TNC protocol and an example IMC/IMV pair
[strongswan.git] / src / libcharon / Makefile.am
1 lib_LTLIBRARIES = libcharon.la
2
3 libcharon_la_SOURCES = \
4 bus/bus.c bus/bus.h \
5 bus/listeners/listener.h \
6 bus/listeners/file_logger.c bus/listeners/file_logger.h \
7 bus/listeners/sys_logger.c bus/listeners/sys_logger.h \
8 config/backend_manager.c config/backend_manager.h config/backend.h \
9 config/child_cfg.c config/child_cfg.h \
10 config/ike_cfg.c config/ike_cfg.h \
11 config/peer_cfg.c config/peer_cfg.h \
12 config/proposal.c config/proposal.h \
13 control/controller.c control/controller.h \
14 daemon.c daemon.h \
15 encoding/generator.c encoding/generator.h \
16 encoding/message.c encoding/message.h \
17 encoding/parser.c encoding/parser.h \
18 encoding/payloads/auth_payload.c encoding/payloads/auth_payload.h \
19 encoding/payloads/cert_payload.c encoding/payloads/cert_payload.h \
20 encoding/payloads/certreq_payload.c encoding/payloads/certreq_payload.h \
21 encoding/payloads/configuration_attribute.c encoding/payloads/configuration_attribute.h \
22 encoding/payloads/cp_payload.c encoding/payloads/cp_payload.h \
23 encoding/payloads/delete_payload.c encoding/payloads/delete_payload.h \
24 encoding/payloads/eap_payload.c encoding/payloads/eap_payload.h \
25 encoding/payloads/encodings.c encoding/payloads/encodings.h \
26 encoding/payloads/encryption_payload.c encoding/payloads/encryption_payload.h \
27 encoding/payloads/id_payload.c encoding/payloads/id_payload.h \
28 encoding/payloads/ike_header.c encoding/payloads/ike_header.h \
29 encoding/payloads/ke_payload.c  encoding/payloads/ke_payload.h \
30 encoding/payloads/nonce_payload.c encoding/payloads/nonce_payload.h \
31 encoding/payloads/notify_payload.c encoding/payloads/notify_payload.h \
32 encoding/payloads/payload.c encoding/payloads/payload.h \
33 encoding/payloads/proposal_substructure.c encoding/payloads/proposal_substructure.h \
34 encoding/payloads/sa_payload.c encoding/payloads/sa_payload.h \
35 encoding/payloads/traffic_selector_substructure.c encoding/payloads/traffic_selector_substructure.h \
36 encoding/payloads/transform_attribute.c encoding/payloads/transform_attribute.h \
37 encoding/payloads/transform_substructure.c encoding/payloads/transform_substructure.h \
38 encoding/payloads/ts_payload.c encoding/payloads/ts_payload.h \
39 encoding/payloads/unknown_payload.c encoding/payloads/unknown_payload.h \
40 encoding/payloads/vendor_id_payload.c encoding/payloads/vendor_id_payload.h \
41 kernel/kernel_handler.c kernel/kernel_handler.h \
42 network/packet.c network/packet.h \
43 network/receiver.c network/receiver.h \
44 network/sender.c network/sender.h \
45 network/socket_manager.c network/socket_manager.h network/socket.h \
46 processing/jobs/acquire_job.c processing/jobs/acquire_job.h \
47 processing/jobs/delete_child_sa_job.c processing/jobs/delete_child_sa_job.h \
48 processing/jobs/delete_ike_sa_job.c processing/jobs/delete_ike_sa_job.h \
49 processing/jobs/migrate_job.c processing/jobs/migrate_job.h \
50 processing/jobs/process_message_job.c processing/jobs/process_message_job.h \
51 processing/jobs/rekey_child_sa_job.c processing/jobs/rekey_child_sa_job.h \
52 processing/jobs/rekey_ike_sa_job.c processing/jobs/rekey_ike_sa_job.h \
53 processing/jobs/retransmit_job.c processing/jobs/retransmit_job.h \
54 processing/jobs/send_dpd_job.c processing/jobs/send_dpd_job.h \
55 processing/jobs/send_keepalive_job.c processing/jobs/send_keepalive_job.h \
56 processing/jobs/start_action_job.c processing/jobs/start_action_job.h \
57 processing/jobs/roam_job.c processing/jobs/roam_job.h \
58 processing/jobs/update_sa_job.c processing/jobs/update_sa_job.h \
59 processing/jobs/inactivity_job.c processing/jobs/inactivity_job.h \
60 sa/authenticators/authenticator.c sa/authenticators/authenticator.h \
61 sa/authenticators/eap_authenticator.c sa/authenticators/eap_authenticator.h \
62 sa/authenticators/eap/eap_method.c sa/authenticators/eap/eap_method.h \
63 sa/authenticators/eap/eap_manager.c sa/authenticators/eap/eap_manager.h \
64 sa/authenticators/eap/sim_manager.c sa/authenticators/eap/sim_manager.h \
65 sa/authenticators/eap/sim_card.h sa/authenticators/eap/sim_provider.h \
66 sa/authenticators/eap/sim_hooks.h \
67 sa/authenticators/psk_authenticator.c sa/authenticators/psk_authenticator.h \
68 sa/authenticators/pubkey_authenticator.c sa/authenticators/pubkey_authenticator.h \
69 sa/child_sa.c sa/child_sa.h \
70 sa/ike_sa.c sa/ike_sa.h \
71 sa/ike_sa_id.c sa/ike_sa_id.h \
72 sa/ike_sa_manager.c sa/ike_sa_manager.h \
73 sa/task_manager.c sa/task_manager.h \
74 sa/keymat.c sa/keymat.h \
75 sa/trap_manager.c sa/trap_manager.h \
76 sa/tasks/child_create.c sa/tasks/child_create.h \
77 sa/tasks/child_delete.c sa/tasks/child_delete.h \
78 sa/tasks/child_rekey.c sa/tasks/child_rekey.h \
79 sa/tasks/ike_auth.c sa/tasks/ike_auth.h \
80 sa/tasks/ike_cert_pre.c sa/tasks/ike_cert_pre.h \
81 sa/tasks/ike_cert_post.c sa/tasks/ike_cert_post.h \
82 sa/tasks/ike_config.c sa/tasks/ike_config.h \
83 sa/tasks/ike_delete.c sa/tasks/ike_delete.h \
84 sa/tasks/ike_dpd.c sa/tasks/ike_dpd.h \
85 sa/tasks/ike_init.c sa/tasks/ike_init.h \
86 sa/tasks/ike_natd.c sa/tasks/ike_natd.h \
87 sa/tasks/ike_mobike.c sa/tasks/ike_mobike.h \
88 sa/tasks/ike_rekey.c sa/tasks/ike_rekey.h \
89 sa/tasks/ike_reauth.c sa/tasks/ike_reauth.h \
90 sa/tasks/ike_auth_lifetime.c sa/tasks/ike_auth_lifetime.h \
91 sa/tasks/ike_vendor.c sa/tasks/ike_vendor.h \
92 sa/tasks/task.c sa/tasks/task.h \
93 tnc/tncif.h tnc/tncif.c tnc/tncifimc.h tnc/tncifimv.h tnc/tncifimv.c \
94 tnc/imc/imc.h tnc/imc/imc_manager.h \
95 tnc/imv/imv.h tnc/imv/imv_manager.h \
96 tnc/imv/imv_recommendations.c tnc/imv/imv_recommendations.h \
97 tnc/pen/pen.h tnc/pen/pen.c \
98 tnc/tnccs/tnccs.c tnc/tnccs/tnccs.h \
99 tnc/tnccs/tnccs_manager.c tnc/tnccs/tnccs_manager.h
100
101 daemon.lo :             $(top_builddir)/config.status
102
103 INCLUDES = \
104         -I${linux_headers} \
105         -I$(top_srcdir)/src/libstrongswan \
106         -I$(top_srcdir)/src/libhydra \
107         -I$(top_srcdir)/src/libcharon
108
109 AM_CFLAGS = \
110         -DIPSEC_DIR=\"${ipsecdir}\" \
111         -DIPSEC_PIDDIR=\"${piddir}\" \
112         -DPLUGINS=\""${libcharon_plugins}\""
113
114 libcharon_la_LIBADD = -lm $(PTHREADLIB) $(DLLIB) $(SOCKLIB)
115
116 EXTRA_DIST = Android.mk
117
118 # compile options
119 #################
120
121 if USE_ME
122   libcharon_la_SOURCES += encoding/payloads/endpoint_notify.c encoding/payloads/endpoint_notify.h \
123     processing/jobs/initiate_mediation_job.c processing/jobs/initiate_mediation_job.h \
124     processing/jobs/mediation_job.c processing/jobs/mediation_job.h \
125     sa/connect_manager.c sa/connect_manager.h \
126     sa/mediation_manager.c sa/mediation_manager.h \
127     sa/tasks/ike_me.c sa/tasks/ike_me.h
128 endif
129
130 if USE_LIBCAP
131   libcharon_la_LIBADD += -lcap
132 endif
133
134 # build optional plugins
135 ########################
136
137 if MONOLITHIC
138 SUBDIRS =
139 else
140 SUBDIRS = .
141 endif
142
143 if USE_LOAD_TESTER
144   SUBDIRS += plugins/load_tester
145 if MONOLITHIC
146   libcharon_la_LIBADD += plugins/load_tester/libstrongswan-load-tester.la
147 endif
148 endif
149
150 if USE_SOCKET_DEFAULT
151   SUBDIRS += plugins/socket_default
152 if MONOLITHIC
153   libcharon_la_LIBADD += plugins/socket_default/libstrongswan-socket-default.la
154 endif
155 endif
156
157 if USE_SOCKET_RAW
158   SUBDIRS += plugins/socket_raw
159 if MONOLITHIC
160   libcharon_la_LIBADD += plugins/socket_raw/libstrongswan-socket-raw.la
161 endif
162 endif
163
164 if USE_SOCKET_DYNAMIC
165   SUBDIRS += plugins/socket_dynamic
166 if MONOLITHIC
167   libcharon_la_LIBADD += plugins/socket_dynamic/libstrongswan-socket-dynamic.la
168 endif
169 endif
170
171 if USE_FARP
172   SUBDIRS += plugins/farp
173 if MONOLITHIC
174   libcharon_la_LIBADD += plugins/farp/libstrongswan-farp.la
175 endif
176 endif
177
178 if USE_STROKE
179   SUBDIRS += plugins/stroke
180 if MONOLITHIC
181   libcharon_la_LIBADD += plugins/stroke/libstrongswan-stroke.la
182 endif
183 endif
184
185 if USE_SMP
186   SUBDIRS += plugins/smp
187 if MONOLITHIC
188   libcharon_la_LIBADD += plugins/smp/libstrongswan-smp.la
189 endif
190 endif
191
192 if USE_SQL
193   SUBDIRS += plugins/sql
194 if MONOLITHIC
195   libcharon_la_LIBADD += plugins/sql/libstrongswan-sql.la
196 endif
197 endif
198
199 if USE_UPDOWN
200   SUBDIRS += plugins/updown
201 if MONOLITHIC
202   libcharon_la_LIBADD += plugins/updown/libstrongswan-updown.la
203 endif
204 endif
205
206 if USE_EAP_IDENTITY
207   SUBDIRS += plugins/eap_identity
208 if MONOLITHIC
209   libcharon_la_LIBADD += plugins/eap_identity/libstrongswan-eap-identity.la
210 endif
211 endif
212
213 if USE_EAP_SIM
214   SUBDIRS += plugins/eap_sim
215 if MONOLITHIC
216   libcharon_la_LIBADD += plugins/eap_sim/libstrongswan-eap-sim.la
217 endif
218 endif
219
220 if USE_EAP_SIM_FILE
221   SUBDIRS += plugins/eap_sim_file
222 if MONOLITHIC
223   libcharon_la_LIBADD += plugins/eap_sim_file/libstrongswan-eap-sim-file.la
224 endif
225 endif
226
227 if USE_EAP_SIM_PCSC
228   SUBDIRS += plugins/eap_sim_pcsc
229 if MONOLITHIC
230   libcharon_la_LIBADD += plugins/eap_sim_pcsc/libstrongswan-eap-sim-pcsc.la
231 endif
232 endif
233
234 if USE_EAP_SIMAKA_SQL
235   SUBDIRS += plugins/eap_simaka_sql
236 if MONOLITHIC
237   libcharon_la_LIBADD += plugins/eap_simaka_sql/libstrongswan-eap-simaka-sql.la
238 endif
239 endif
240
241 if USE_EAP_SIMAKA_PSEUDONYM
242   SUBDIRS += plugins/eap_simaka_pseudonym
243 if MONOLITHIC
244   libcharon_la_LIBADD += plugins/eap_simaka_pseudonym/libstrongswan-eap-simaka-pseudonym.la
245 endif
246 endif
247
248 if USE_EAP_SIMAKA_REAUTH
249   SUBDIRS += plugins/eap_simaka_reauth
250 if MONOLITHIC
251   libcharon_la_LIBADD += plugins/eap_simaka_reauth/libstrongswan-eap-simaka-reauth.la
252 endif
253 endif
254
255 if USE_EAP_AKA
256   SUBDIRS += plugins/eap_aka
257 if MONOLITHIC
258   libcharon_la_LIBADD += plugins/eap_aka/libstrongswan-eap-aka.la
259 endif
260 endif
261
262 if USE_EAP_AKA_3GPP2
263   SUBDIRS += plugins/eap_aka_3gpp2
264 if MONOLITHIC
265   libcharon_la_LIBADD += plugins/eap_aka_3gpp2/libstrongswan-eap-aka-3gpp2.la
266 endif
267 endif
268
269 if USE_SIMAKA
270 if MONOLITHIC
271   # otherwise this library is linked to both the eap_aka and the eap_sim plugin
272   libcharon_la_LIBADD += $(top_builddir)/src/libsimaka/libsimaka.la
273 endif
274 endif
275
276 if USE_EAP_MD5
277   SUBDIRS += plugins/eap_md5
278 if MONOLITHIC
279   libcharon_la_LIBADD += plugins/eap_md5/libstrongswan-eap-md5.la
280 endif
281 endif
282
283 if USE_EAP_GTC
284   SUBDIRS += plugins/eap_gtc
285 if MONOLITHIC
286   libcharon_la_LIBADD += plugins/eap_gtc/libstrongswan-eap-gtc.la
287 endif
288 endif
289
290 if USE_EAP_MSCHAPV2
291   SUBDIRS += plugins/eap_mschapv2
292 if MONOLITHIC
293   libcharon_la_LIBADD += plugins/eap_mschapv2/libstrongswan-eap-mschapv2.la
294 endif
295 endif
296
297 if USE_EAP_RADIUS
298   SUBDIRS += plugins/eap_radius
299 if MONOLITHIC
300   libcharon_la_LIBADD += plugins/eap_radius/libstrongswan-eap-radius.la
301 endif
302 endif
303
304 if USE_EAP_TLS
305   SUBDIRS += plugins/eap_tls
306 if MONOLITHIC
307   libcharon_la_LIBADD += plugins/eap_tls/libstrongswan-eap-tls.la
308 endif
309 endif
310
311 if USE_EAP_TTLS
312   SUBDIRS += plugins/eap_ttls
313 if MONOLITHIC
314   libcharon_la_LIBADD += plugins/eap_ttls/libstrongswan-eap-ttls.la
315 endif
316 endif
317
318 if USE_EAP_PEAP
319   SUBDIRS += plugins/eap_peap
320 if MONOLITHIC
321   libcharon_la_LIBADD += plugins/eap_peap/libstrongswan-eap-peap.la
322 endif
323 endif
324
325 if USE_EAP_TNC
326   SUBDIRS += plugins/eap_tnc
327 if MONOLITHIC
328   libcharon_la_LIBADD += plugins/eap_tnc/libstrongswan-eap-tnc.la
329 endif
330 endif
331
332 if USE_TLS
333 if MONOLITHIC
334   # otherwise this library is linked to eap_tls
335   libcharon_la_LIBADD += $(top_builddir)/src/libtls/libtls.la
336 endif
337 endif
338
339 if USE_TNC_IMC
340   SUBDIRS += plugins/tnc_imc
341 if MONOLITHIC
342   libcharon_la_LIBADD += plugins/tnc_imc/libstrongswan-tnc-imc.la
343 endif
344 endif
345
346 if USE_TNC_IMV
347   SUBDIRS += plugins/tnc_imv
348 if MONOLITHIC
349   libcharon_la_LIBADD += plugins/tnc_imv/libstrongswan-tnc-imv.la
350 endif
351 endif
352
353 if USE_TNCCS_11
354   SUBDIRS += plugins/tnccs_11
355 if MONOLITHIC
356   libcharon_la_LIBADD += plugins/tnccs_11/libstrongswan-tnccs-11.la
357 endif
358 endif
359
360 if USE_TNCCS_20
361   SUBDIRS += plugins/tnccs_20
362 if MONOLITHIC
363   libcharon_la_LIBADD += plugins/tnccs_20/libstrongswan-tnccs-20.la
364 endif
365 endif
366
367 if USE_TNCCS_DYNAMIC
368   SUBDIRS += plugins/tnccs_dynamic
369 if MONOLITHIC
370   libcharon_la_LIBADD += plugins/tnccs_dynamic/libstrongswan-tnccs-dynamic.la
371 endif
372 endif
373
374 if USE_IMC_TEST
375   SUBDIRS += plugins/imc_test
376 endif
377
378 if USE_IMV_TEST
379   SUBDIRS += plugins/imv_test
380 endif
381
382 if USE_MEDSRV
383   SUBDIRS += plugins/medsrv
384 if MONOLITHIC
385   libcharon_la_LIBADD += plugins/medsrv/libstrongswan-medsrv.la
386 endif
387 endif
388
389 if USE_MEDCLI
390   SUBDIRS += plugins/medcli
391 if MONOLITHIC
392   libcharon_la_LIBADD += plugins/medcli/libstrongswan-medcli.la
393 endif
394 endif
395
396 if USE_NM
397   SUBDIRS += plugins/nm
398 if MONOLITHIC
399   libcharon_la_LIBADD += plugins/nm/libstrongswan-nm.la
400 endif
401 endif
402
403 if USE_DHCP
404   SUBDIRS += plugins/dhcp
405 if MONOLITHIC
406   libcharon_la_LIBADD += plugins/dhcp/libstrongswan-dhcp.la
407 endif
408 endif
409
410 if USE_ANDROID
411   SUBDIRS += plugins/android
412 if MONOLITHIC
413   libcharon_la_LIBADD += plugins/android/libstrongswan-android.la
414 endif
415 endif
416
417 if USE_MAEMO
418   SUBDIRS += plugins/maemo
419 if MONOLITHIC
420   libcharon_la_LIBADD += plugins/maemo/libstrongswan-maemo.la
421 endif
422 endif
423
424 if USE_HA
425   SUBDIRS += plugins/ha
426 if MONOLITHIC
427   libcharon_la_LIBADD += plugins/ha/libstrongswan-ha.la
428 endif
429 endif
430
431 if USE_WHITELIST
432   SUBDIRS += plugins/whitelist
433 if MONOLITHIC
434   libcharon_la_LIBADD += plugins/whitelist/libstrongswan-whitelist.la
435 endif
436 endif
437
438 if USE_LED
439   SUBDIRS += plugins/led
440 if MONOLITHIC
441   libcharon_la_LIBADD += plugins/led/libstrongswan-led.la
442 endif
443 endif
444
445 if USE_DUPLICHECK
446   SUBDIRS += plugins/duplicheck
447 if MONOLITHIC
448   libcharon_la_LIBADD += plugins/duplicheck/libstrongswan-duplicheck.la
449 endif
450 endif
451
452 if USE_COUPLING
453   SUBDIRS += plugins/coupling
454 if MONOLITHIC
455   libcharon_la_LIBADD += plugins/coupling/libstrongswan-coupling.la
456 endif
457 endif
458
459 if USE_UCI
460   SUBDIRS += plugins/uci
461 if MONOLITHIC
462   libcharon_la_LIBADD += plugins/uci/libstrongswan-uci.la
463 endif
464 endif
465
466 if USE_ADDRBLOCK
467   SUBDIRS += plugins/addrblock
468 if MONOLITHIC
469   libcharon_la_LIBADD += plugins/uci/libstrongswan-addrblock.la
470 endif
471 endif
472
473 if USE_UNIT_TESTS
474   SUBDIRS += plugins/unit_tester
475 if MONOLITHIC
476   libcharon_la_LIBADD += plugins/unit_tester/libstrongswan-unit-tester.la
477 endif
478 endif
479