Implemented pre-authentication certificate handling for IKEv1
[strongswan.git] / src / libcharon / Makefile.am
1 ipseclib_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 encoding/payloads/hash_payload.c encoding/payloads/hash_payload.h \
42 kernel/kernel_handler.c kernel/kernel_handler.h \
43 network/receiver.c network/receiver.h network/sender.c network/sender.h \
44 network/packet.c network/packet.h network/socket.c network/socket.h \
45 network/socket_manager.c network/socket_manager.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 processing/jobs/initiate_xauth_job.c processing/jobs/initiate_xauth_job.h \
61 sa/authenticators/authenticator.c sa/authenticators/authenticator.h \
62 sa/authenticators/eap_authenticator.c sa/authenticators/eap_authenticator.h \
63 sa/authenticators/eap/eap_method.c sa/authenticators/eap/eap_method.h \
64 sa/authenticators/eap/eap_manager.c sa/authenticators/eap/eap_manager.h \
65 sa/authenticators/psk_authenticator.c sa/authenticators/psk_authenticator.h \
66 sa/authenticators/pubkey_authenticator.c sa/authenticators/pubkey_authenticator.h \
67 sa/authenticators/xauth_authenticator.c sa/authenticators/xauth_authenticator.h \
68 sa/authenticators/xauth/xauth_method.c sa/authenticators/xauth/xauth_method.h \
69 sa/authenticators/xauth/xauth_manager.c sa/authenticators/xauth/xauth_manager.h \
70 sa/child_sa.c sa/child_sa.h \
71 sa/ike_sa.c sa/ike_sa.h \
72 sa/ike_sa_id.c sa/ike_sa_id.h \
73 sa/ike_sa_manager.c sa/ike_sa_manager.h \
74 sa/task_manager.h sa/task_manager.c sa/task_manager_v2.c sa/task_manager_v2.h \
75 sa/task_manager_v1.c sa/task_manager_v1.h \
76 sa/keymat.h sa/keymat.c sa/keymat_v2.c sa/keymat_v2.h \
77 sa/keymat_v1.c sa/keymat_v1.h \
78 sa/shunt_manager.c sa/shunt_manager.h \
79 sa/trap_manager.c sa/trap_manager.h \
80 sa/tasks/child_create.c sa/tasks/child_create.h \
81 sa/tasks/child_delete.c sa/tasks/child_delete.h \
82 sa/tasks/child_rekey.c sa/tasks/child_rekey.h \
83 sa/tasks/ike_auth.c sa/tasks/ike_auth.h \
84 sa/tasks/ike_cert_pre.c sa/tasks/ike_cert_pre.h \
85 sa/tasks/ike_cert_post.c sa/tasks/ike_cert_post.h \
86 sa/tasks/ike_cert_pre_v1.c sa/tasks/ike_cert_pre_v1.h \
87 sa/tasks/ike_config.c sa/tasks/ike_config.h \
88 sa/tasks/ike_delete.c sa/tasks/ike_delete.h \
89 sa/tasks/ike_dpd.c sa/tasks/ike_dpd.h \
90 sa/tasks/ike_init.c sa/tasks/ike_init.h \
91 sa/tasks/ike_natd.c sa/tasks/ike_natd.h \
92 sa/tasks/ike_natd_v1.c sa/tasks/ike_natd_v1.h \
93 sa/tasks/ike_mobike.c sa/tasks/ike_mobike.h \
94 sa/tasks/ike_rekey.c sa/tasks/ike_rekey.h \
95 sa/tasks/ike_reauth.c sa/tasks/ike_reauth.h \
96 sa/tasks/ike_auth_lifetime.c sa/tasks/ike_auth_lifetime.h \
97 sa/tasks/ike_vendor.c sa/tasks/ike_vendor.h \
98 sa/tasks/ike_vendor_v1.c sa/tasks/ike_vendor_v1.h \
99 sa/tasks/main_mode.c sa/tasks/main_mode.h \
100 sa/tasks/quick_mode.c sa/tasks/quick_mode.h \
101 sa/tasks/xauth_request.c sa/tasks/xauth_request.h \
102 sa/tasks/task.c sa/tasks/task.h
103
104
105 daemon.lo :             $(top_builddir)/config.status
106
107 INCLUDES = \
108         -I${linux_headers} \
109         -I$(top_srcdir)/src/libstrongswan \
110         -I$(top_srcdir)/src/libhydra \
111         -I$(top_srcdir)/src/libcharon
112
113 AM_CFLAGS = \
114         -DIPSEC_DIR=\"${ipsecdir}\" \
115         -DIPSEC_PIDDIR=\"${piddir}\" \
116         -DPLUGINS=\""${libcharon_plugins}\""
117
118 libcharon_la_LIBADD = -lm $(PTHREADLIB) $(DLLIB) $(SOCKLIB)
119
120 EXTRA_DIST = Android.mk
121
122 # compile options
123 #################
124
125 if USE_ME
126   libcharon_la_SOURCES += encoding/payloads/endpoint_notify.c encoding/payloads/endpoint_notify.h \
127     processing/jobs/initiate_mediation_job.c processing/jobs/initiate_mediation_job.h \
128     processing/jobs/mediation_job.c processing/jobs/mediation_job.h \
129     sa/connect_manager.c sa/connect_manager.h \
130     sa/mediation_manager.c sa/mediation_manager.h \
131     sa/tasks/ike_me.c sa/tasks/ike_me.h
132 endif
133
134 if USE_LIBCAP
135   libcharon_la_LIBADD += -lcap
136 endif
137
138 # build optional plugins
139 ########################
140
141 if MONOLITHIC
142 SUBDIRS =
143 else
144 SUBDIRS = .
145 endif
146
147 if USE_LOAD_TESTER
148   SUBDIRS += plugins/load_tester
149 if MONOLITHIC
150   libcharon_la_LIBADD += plugins/load_tester/libstrongswan-load-tester.la
151 endif
152 endif
153
154 if USE_SOCKET_DEFAULT
155   SUBDIRS += plugins/socket_default
156 if MONOLITHIC
157   libcharon_la_LIBADD += plugins/socket_default/libstrongswan-socket-default.la
158 endif
159 endif
160
161 if USE_SOCKET_RAW
162   SUBDIRS += plugins/socket_raw
163 if MONOLITHIC
164   libcharon_la_LIBADD += plugins/socket_raw/libstrongswan-socket-raw.la
165 endif
166 endif
167
168 if USE_SOCKET_DYNAMIC
169   SUBDIRS += plugins/socket_dynamic
170 if MONOLITHIC
171   libcharon_la_LIBADD += plugins/socket_dynamic/libstrongswan-socket-dynamic.la
172 endif
173 endif
174
175 if USE_FARP
176   SUBDIRS += plugins/farp
177 if MONOLITHIC
178   libcharon_la_LIBADD += plugins/farp/libstrongswan-farp.la
179 endif
180 endif
181
182 if USE_STROKE
183   SUBDIRS += plugins/stroke
184 if MONOLITHIC
185   libcharon_la_LIBADD += plugins/stroke/libstrongswan-stroke.la
186 endif
187 endif
188
189 if USE_SMP
190   SUBDIRS += plugins/smp
191 if MONOLITHIC
192   libcharon_la_LIBADD += plugins/smp/libstrongswan-smp.la
193 endif
194 endif
195
196 if USE_SQL
197   SUBDIRS += plugins/sql
198 if MONOLITHIC
199   libcharon_la_LIBADD += plugins/sql/libstrongswan-sql.la
200 endif
201 endif
202
203 if USE_UPDOWN
204   SUBDIRS += plugins/updown
205 if MONOLITHIC
206   libcharon_la_LIBADD += plugins/updown/libstrongswan-updown.la
207 endif
208 endif
209
210 if USE_EAP_IDENTITY
211   SUBDIRS += plugins/eap_identity
212 if MONOLITHIC
213   libcharon_la_LIBADD += plugins/eap_identity/libstrongswan-eap-identity.la
214 endif
215 endif
216
217 if USE_EAP_SIM
218   SUBDIRS += plugins/eap_sim
219 if MONOLITHIC
220   libcharon_la_LIBADD += plugins/eap_sim/libstrongswan-eap-sim.la
221 endif
222 endif
223
224 if USE_EAP_SIM_FILE
225   SUBDIRS += plugins/eap_sim_file
226 if MONOLITHIC
227   libcharon_la_LIBADD += plugins/eap_sim_file/libstrongswan-eap-sim-file.la
228 endif
229 endif
230
231 if USE_EAP_SIM_PCSC
232   SUBDIRS += plugins/eap_sim_pcsc
233 if MONOLITHIC
234   libcharon_la_LIBADD += plugins/eap_sim_pcsc/libstrongswan-eap-sim-pcsc.la
235 endif
236 endif
237
238 if USE_EAP_SIMAKA_SQL
239   SUBDIRS += plugins/eap_simaka_sql
240 if MONOLITHIC
241   libcharon_la_LIBADD += plugins/eap_simaka_sql/libstrongswan-eap-simaka-sql.la
242 endif
243 endif
244
245 if USE_EAP_SIMAKA_PSEUDONYM
246   SUBDIRS += plugins/eap_simaka_pseudonym
247 if MONOLITHIC
248   libcharon_la_LIBADD += plugins/eap_simaka_pseudonym/libstrongswan-eap-simaka-pseudonym.la
249 endif
250 endif
251
252 if USE_EAP_SIMAKA_REAUTH
253   SUBDIRS += plugins/eap_simaka_reauth
254 if MONOLITHIC
255   libcharon_la_LIBADD += plugins/eap_simaka_reauth/libstrongswan-eap-simaka-reauth.la
256 endif
257 endif
258
259 if USE_EAP_AKA
260   SUBDIRS += plugins/eap_aka
261 if MONOLITHIC
262   libcharon_la_LIBADD += plugins/eap_aka/libstrongswan-eap-aka.la
263 endif
264 endif
265
266 if USE_EAP_AKA_3GPP2
267   SUBDIRS += plugins/eap_aka_3gpp2
268 if MONOLITHIC
269   libcharon_la_LIBADD += plugins/eap_aka_3gpp2/libstrongswan-eap-aka-3gpp2.la
270 endif
271 endif
272
273 if USE_SIMAKA
274 if MONOLITHIC
275   # otherwise this library is linked to both the eap_aka and the eap_sim plugin
276   libcharon_la_LIBADD += $(top_builddir)/src/libsimaka/libsimaka.la
277 endif
278 endif
279
280 if USE_EAP_MD5
281   SUBDIRS += plugins/eap_md5
282 if MONOLITHIC
283   libcharon_la_LIBADD += plugins/eap_md5/libstrongswan-eap-md5.la
284 endif
285 endif
286
287 if USE_EAP_GTC
288   SUBDIRS += plugins/eap_gtc
289 if MONOLITHIC
290   libcharon_la_LIBADD += plugins/eap_gtc/libstrongswan-eap-gtc.la
291 endif
292 endif
293
294 if USE_EAP_MSCHAPV2
295   SUBDIRS += plugins/eap_mschapv2
296 if MONOLITHIC
297   libcharon_la_LIBADD += plugins/eap_mschapv2/libstrongswan-eap-mschapv2.la
298 endif
299 endif
300
301 if USE_EAP_RADIUS
302   SUBDIRS += plugins/eap_radius
303 if MONOLITHIC
304   libcharon_la_LIBADD += plugins/eap_radius/libstrongswan-eap-radius.la
305 endif
306 endif
307
308 if USE_EAP_TLS
309   SUBDIRS += plugins/eap_tls
310 if MONOLITHIC
311   libcharon_la_LIBADD += plugins/eap_tls/libstrongswan-eap-tls.la
312 endif
313 endif
314
315 if USE_EAP_TTLS
316   SUBDIRS += plugins/eap_ttls
317 if MONOLITHIC
318   libcharon_la_LIBADD += plugins/eap_ttls/libstrongswan-eap-ttls.la
319 endif
320 endif
321
322 if USE_EAP_PEAP
323   SUBDIRS += plugins/eap_peap
324 if MONOLITHIC
325   libcharon_la_LIBADD += plugins/eap_peap/libstrongswan-eap-peap.la
326 endif
327 endif
328
329 if USE_EAP_TNC
330   SUBDIRS += plugins/eap_tnc
331 if MONOLITHIC
332   libcharon_la_LIBADD += plugins/eap_tnc/libstrongswan-eap-tnc.la
333 endif
334 endif
335
336 if USE_TLS
337 if MONOLITHIC
338   # otherwise this library is linked to eap_tls
339   libcharon_la_LIBADD += $(top_builddir)/src/libtls/libtls.la
340 endif
341 endif
342
343 if USE_TNC_IFMAP
344   SUBDIRS += plugins/tnc_ifmap
345 if MONOLITHIC
346   libcharon_la_LIBADD += plugins/tnc_ifmap/libstrongswan-tnc-ifmap.la
347 endif
348 endif
349
350 if USE_TNC_IMC
351   SUBDIRS += plugins/tnc_imc
352 if MONOLITHIC
353   libcharon_la_LIBADD += plugins/tnc_imc/libstrongswan-tnc-imc.la
354 endif
355 endif
356
357 if USE_TNC_IMV
358   SUBDIRS += plugins/tnc_imv
359 if MONOLITHIC
360   libcharon_la_LIBADD += plugins/tnc_imv/libstrongswan-tnc-imv.la
361 endif
362 endif
363
364 if USE_TNC_TNCCS
365   SUBDIRS += plugins/tnc_tnccs
366 if MONOLITHIC
367   libcharon_la_LIBADD += plugins/tnc_tnccs/libstrongswan-tnc-tnccs.la
368 endif
369 endif
370
371 if USE_TNCCS_11
372   SUBDIRS += plugins/tnccs_11
373 if MONOLITHIC
374   libcharon_la_LIBADD += plugins/tnccs_11/libstrongswan-tnccs-11.la
375 endif
376 endif
377
378 if USE_TNCCS_20
379   SUBDIRS += plugins/tnccs_20
380 if MONOLITHIC
381   libcharon_la_LIBADD += plugins/tnccs_20/libstrongswan-tnccs-20.la
382 endif
383 endif
384
385 if USE_TNCCS_DYNAMIC
386   SUBDIRS += plugins/tnccs_dynamic
387 if MONOLITHIC
388   libcharon_la_LIBADD += plugins/tnccs_dynamic/libstrongswan-tnccs-dynamic.la
389 endif
390 endif
391
392 if USE_LIBTNCCS
393 if MONOLITHIC
394   # otherwise this library is linked to the respective plugins
395   libcharon_la_LIBADD += $(top_builddir)/src/libtnccs/libtnccs.la
396 endif
397 endif
398
399 if USE_MEDSRV
400   SUBDIRS += plugins/medsrv
401 if MONOLITHIC
402   libcharon_la_LIBADD += plugins/medsrv/libstrongswan-medsrv.la
403 endif
404 endif
405
406 if USE_MEDCLI
407   SUBDIRS += plugins/medcli
408 if MONOLITHIC
409   libcharon_la_LIBADD += plugins/medcli/libstrongswan-medcli.la
410 endif
411 endif
412
413 if USE_NM
414   SUBDIRS += plugins/nm
415 if MONOLITHIC
416   libcharon_la_LIBADD += plugins/nm/libstrongswan-nm.la
417 endif
418 endif
419
420 if USE_DHCP
421   SUBDIRS += plugins/dhcp
422 if MONOLITHIC
423   libcharon_la_LIBADD += plugins/dhcp/libstrongswan-dhcp.la
424 endif
425 endif
426
427 if USE_ANDROID
428   SUBDIRS += plugins/android
429 if MONOLITHIC
430   libcharon_la_LIBADD += plugins/android/libstrongswan-android.la
431 endif
432 endif
433
434 if USE_MAEMO
435   SUBDIRS += plugins/maemo
436 if MONOLITHIC
437   libcharon_la_LIBADD += plugins/maemo/libstrongswan-maemo.la
438 endif
439 endif
440
441 if USE_HA
442   SUBDIRS += plugins/ha
443 if MONOLITHIC
444   libcharon_la_LIBADD += plugins/ha/libstrongswan-ha.la
445 endif
446 endif
447
448 if USE_WHITELIST
449   SUBDIRS += plugins/whitelist
450 if MONOLITHIC
451   libcharon_la_LIBADD += plugins/whitelist/libstrongswan-whitelist.la
452 endif
453 endif
454
455 if USE_CERTEXPIRE
456   SUBDIRS += plugins/certexpire
457 if MONOLITHIC
458   libcharon_la_LIBADD += plugins/certexpire/libstrongswan-certexpire.la
459 endif
460 endif
461
462 if USE_LED
463   SUBDIRS += plugins/led
464 if MONOLITHIC
465   libcharon_la_LIBADD += plugins/led/libstrongswan-led.la
466 endif
467 endif
468
469 if USE_DUPLICHECK
470   SUBDIRS += plugins/duplicheck
471 if MONOLITHIC
472   libcharon_la_LIBADD += plugins/duplicheck/libstrongswan-duplicheck.la
473 endif
474 endif
475
476 if USE_COUPLING
477   SUBDIRS += plugins/coupling
478 if MONOLITHIC
479   libcharon_la_LIBADD += plugins/coupling/libstrongswan-coupling.la
480 endif
481 endif
482
483 if USE_UCI
484   SUBDIRS += plugins/uci
485 if MONOLITHIC
486   libcharon_la_LIBADD += plugins/uci/libstrongswan-uci.la
487 endif
488 endif
489
490 if USE_ADDRBLOCK
491   SUBDIRS += plugins/addrblock
492 if MONOLITHIC
493   libcharon_la_LIBADD += plugins/uci/libstrongswan-addrblock.la
494 endif
495 endif
496
497 if USE_UNIT_TESTS
498   SUBDIRS += plugins/unit_tester
499 if MONOLITHIC
500   libcharon_la_LIBADD += plugins/unit_tester/libstrongswan-unit-tester.la
501 endif
502 endif
503
504 if USE_XAUTH_NULL
505   SUBDIRS += plugins/xauth_null
506 if MONOLITHIC
507   libcharon_la_LIBADD += plugins/xauth_null/libstrongswan-xauth-null.la
508 endif
509 endif