annotate extensions/radius_gw/CMakeLists.txt @ 393:f63adc1b3e99

Renamed accounting sub extension
author Sebastien Decugis <sdecugis@nict.go.jp>
date Fri, 29 May 2009 17:39:38 +0900
parents 9907abba8681
children b1eb38915f04
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
348
7907e7cc0aef Some stub files for the gateway extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
1 # The rt_default extension
7907e7cc0aef Some stub files for the gateway extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
2 PROJECT("RADIUS/Diameter extensible gateway extension for waaad" C)
7907e7cc0aef Some stub files for the gateway extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
3
356
555dc5a58aef Added server code for radius extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 355
diff changeset
4
555dc5a58aef Added server code for radius extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 355
diff changeset
5 ########### Utility library #############
555dc5a58aef Added server code for radius extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 355
diff changeset
6 # utilities libray for both the main extension and the sub extensions
365
0146c60af026 Moved to the hostap implementation of RADIUS processing (copied radius.* and md5.* files)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 363
diff changeset
7 # See rg_common.h for detail
0146c60af026 Moved to the hostap implementation of RADIUS processing (copied radius.* and md5.* files)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 363
diff changeset
8
0146c60af026 Moved to the hostap implementation of RADIUS processing (copied radius.* and md5.* files)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 363
diff changeset
9 INCLUDE (TestBigEndian)
0146c60af026 Moved to the hostap implementation of RADIUS processing (copied radius.* and md5.* files)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 363
diff changeset
10 TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
0146c60af026 Moved to the hostap implementation of RADIUS processing (copied radius.* and md5.* files)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 363
diff changeset
11 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/rg_host.h.in ${CMAKE_CURRENT_BINARY_DIR}/rg_host.h)
0146c60af026 Moved to the hostap implementation of RADIUS processing (copied radius.* and md5.* files)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 363
diff changeset
12 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
0146c60af026 Moved to the hostap implementation of RADIUS processing (copied radius.* and md5.* files)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 363
diff changeset
13
356
555dc5a58aef Added server code for radius extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 355
diff changeset
14 SET(RG_COMMON_SRC
555dc5a58aef Added server code for radius extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 355
diff changeset
15 rg_utils.c
365
0146c60af026 Moved to the hostap implementation of RADIUS processing (copied radius.* and md5.* files)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 363
diff changeset
16 radius.c
0146c60af026 Moved to the hostap implementation of RADIUS processing (copied radius.* and md5.* files)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 363
diff changeset
17 md5.c
356
555dc5a58aef Added server code for radius extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 355
diff changeset
18 )
365
0146c60af026 Moved to the hostap implementation of RADIUS processing (copied radius.* and md5.* files)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 363
diff changeset
19 SET( RG_COMMON_HEADER
0146c60af026 Moved to the hostap implementation of RADIUS processing (copied radius.* and md5.* files)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 363
diff changeset
20 rg_common.h
0146c60af026 Moved to the hostap implementation of RADIUS processing (copied radius.* and md5.* files)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 363
diff changeset
21 rg_host.h
0146c60af026 Moved to the hostap implementation of RADIUS processing (copied radius.* and md5.* files)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 363
diff changeset
22 rg_api.h
0146c60af026 Moved to the hostap implementation of RADIUS processing (copied radius.* and md5.* files)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 363
diff changeset
23 radius.h
0146c60af026 Moved to the hostap implementation of RADIUS processing (copied radius.* and md5.* files)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 363
diff changeset
24 md5.h
0146c60af026 Moved to the hostap implementation of RADIUS processing (copied radius.* and md5.* files)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 363
diff changeset
25 )
0146c60af026 Moved to the hostap implementation of RADIUS processing (copied radius.* and md5.* files)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 363
diff changeset
26 ADD_DEFINITIONS(-DRG_COMMON_VERBO=2)
0146c60af026 Moved to the hostap implementation of RADIUS processing (copied radius.* and md5.* files)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 363
diff changeset
27 ADD_LIBRARY(rg_common ${RG_COMMON_SRC})
356
555dc5a58aef Added server code for radius extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 355
diff changeset
28
555dc5a58aef Added server code for radius extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 355
diff changeset
29 ########### Main radius_gw extension #############
360
2206c7f2945a Added md5 code to check authenticator
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 356
diff changeset
30
348
7907e7cc0aef Some stub files for the gateway extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
31 # Parser files
7907e7cc0aef Some stub files for the gateway extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
32 BISON_FILE(radius_gw.y)
7907e7cc0aef Some stub files for the gateway extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
33 FLEX_FILE(radius_gw.l)
7907e7cc0aef Some stub files for the gateway extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
34 SET_SOURCE_FILES_PROPERTIES(lex.radius_gw.c radius_gw.tab.c PROPERTIES COMPILE_FLAGS "-I ${CMAKE_CURRENT_SOURCE_DIR}")
7907e7cc0aef Some stub files for the gateway extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
35
7907e7cc0aef Some stub files for the gateway extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
36 # List of source files
7907e7cc0aef Some stub files for the gateway extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
37 SET( RGW_DEFAULT_SRC
7907e7cc0aef Some stub files for the gateway extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
38 radius_gw.c
7907e7cc0aef Some stub files for the gateway extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
39 lex.radius_gw.c
7907e7cc0aef Some stub files for the gateway extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
40 radius_gw.tab.c
7907e7cc0aef Some stub files for the gateway extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
41 radius_gw.tab.h
353
6ca21598562a Unified TRACE_DEBUG handling between daemon and extensions + some progress on radius gateway
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 352
diff changeset
42 rgw_clients.c
6ca21598562a Unified TRACE_DEBUG handling between daemon and extensions + some progress on radius gateway
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 352
diff changeset
43 rgw_extensions.c
365
0146c60af026 Moved to the hostap implementation of RADIUS processing (copied radius.* and md5.* files)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 363
diff changeset
44 rgw_msg.c
356
555dc5a58aef Added server code for radius extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 355
diff changeset
45 rgw_servers.c
555dc5a58aef Added server code for radius extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 355
diff changeset
46 rgw_work.c
348
7907e7cc0aef Some stub files for the gateway extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
47 )
7907e7cc0aef Some stub files for the gateway extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
48
7907e7cc0aef Some stub files for the gateway extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
49
7907e7cc0aef Some stub files for the gateway extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
50 # Compile these files as a module
365
0146c60af026 Moved to the hostap implementation of RADIUS processing (copied radius.* and md5.* files)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 363
diff changeset
51 ADD_LIBRARY(radius_gw MODULE ${RGW_DEFAULT_SRC} ${RG_COMMON_HEADER})
356
555dc5a58aef Added server code for radius extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 355
diff changeset
52 TARGET_LINK_LIBRARIES(radius_gw rg_common)
348
7907e7cc0aef Some stub files for the gateway extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
53
356
555dc5a58aef Added server code for radius extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 355
diff changeset
54
555dc5a58aef Added server code for radius extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 355
diff changeset
55 ########### Sub extensions #############
348
7907e7cc0aef Some stub files for the gateway extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
56 # Example of support extension:
372
0bc3e03125db Created parser for sub_echo_drop subextension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 365
diff changeset
57 # OPTION(BUILD_RADIUS_GW_SAMPLE "Build sample sub-extension? (for debug only)" OFF)
0bc3e03125db Created parser for sub_echo_drop subextension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 365
diff changeset
58 # IF (BUILD_RADIUS_GW_SAMPLE)
0bc3e03125db Created parser for sub_echo_drop subextension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 365
diff changeset
59 # ADD_LIBRARY(sub_sample MODULE ${RG_COMMON_HEADER} sub_sample.c)
0bc3e03125db Created parser for sub_echo_drop subextension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 365
diff changeset
60 # TARGET_LINK_LIBRARIES(sub_sample rg_common)
0bc3e03125db Created parser for sub_echo_drop subextension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 365
diff changeset
61 # ENDIF (BUILD_RADIUS_GW_SAMPLE)
385
03b512313cc1 Added code to handle sessions
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 375
diff changeset
62
03b512313cc1 Added code to handle sessions
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 375
diff changeset
63 OPTION(BUILD_SUB_DEBUG "Build debug sub-extension? (display status of RADIUS and Diameter messages)" ON)
03b512313cc1 Added code to handle sessions
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 375
diff changeset
64 IF (BUILD_SUB_DEBUG)
03b512313cc1 Added code to handle sessions
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 375
diff changeset
65 ADD_LIBRARY(sub_debug MODULE ${RG_COMMON_HEADER} sub_debug.c)
03b512313cc1 Added code to handle sessions
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 375
diff changeset
66 TARGET_LINK_LIBRARIES(sub_debug rg_common)
03b512313cc1 Added code to handle sessions
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 375
diff changeset
67 ENDIF (BUILD_SUB_DEBUG)
355
b811859f9963 Added extensions management in radius_gw
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 353
diff changeset
68
372
0bc3e03125db Created parser for sub_echo_drop subextension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 365
diff changeset
69 OPTION(BUILD_SUB_ECHO_DROP "Build 'echo/drop' sub-extension? (echo or drop specific RADIUS attributes, no Diameter translation)" ON)
0bc3e03125db Created parser for sub_echo_drop subextension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 365
diff changeset
70 IF (BUILD_SUB_ECHO_DROP)
374
883330e610e1 Progress on the echo_drop sub extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 372
diff changeset
71 ADD_DEFINITIONS(-DSUB_ECHO_DROP_VERBO=2)
372
0bc3e03125db Created parser for sub_echo_drop subextension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 365
diff changeset
72 BISON_FILE(sub_echo_drop.y)
0bc3e03125db Created parser for sub_echo_drop subextension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 365
diff changeset
73 FLEX_FILE(sub_echo_drop.l)
0bc3e03125db Created parser for sub_echo_drop subextension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 365
diff changeset
74 SET_SOURCE_FILES_PROPERTIES(lex.sub_echo_drop.c sub_echo_drop.tab.c PROPERTIES COMPILE_FLAGS "-I ${CMAKE_CURRENT_SOURCE_DIR}")
0bc3e03125db Created parser for sub_echo_drop subextension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 365
diff changeset
75 ADD_LIBRARY(sub_echo_drop MODULE ${RG_COMMON_HEADER}
0bc3e03125db Created parser for sub_echo_drop subextension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 365
diff changeset
76 sub_echo_drop.c
0bc3e03125db Created parser for sub_echo_drop subextension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 365
diff changeset
77 sub_echo_drop.h
0bc3e03125db Created parser for sub_echo_drop subextension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 365
diff changeset
78 lex.sub_echo_drop.c
0bc3e03125db Created parser for sub_echo_drop subextension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 365
diff changeset
79 sub_echo_drop.tab.c
0bc3e03125db Created parser for sub_echo_drop subextension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 365
diff changeset
80 sub_echo_drop.tab.h)
0bc3e03125db Created parser for sub_echo_drop subextension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 365
diff changeset
81 TARGET_LINK_LIBRARIES(sub_echo_drop rg_common)
0bc3e03125db Created parser for sub_echo_drop subextension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 365
diff changeset
82 ENDIF (BUILD_SUB_ECHO_DROP)
391
9907abba8681 Added early support for RADIUS Accounting (RFC2866)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 385
diff changeset
83
393
f63adc1b3e99 Renamed accounting sub extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 391
diff changeset
84 OPTION(BUILD_SUB_ACCT "Build RADIUS Accounting sub-extension? (RFC2866)" ON)
f63adc1b3e99 Renamed accounting sub extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 391
diff changeset
85 IF (BUILD_SUB_ACCT)
f63adc1b3e99 Renamed accounting sub extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 391
diff changeset
86 ADD_DEFINITIONS(-DSUB_ACCT_VERBO=2)
f63adc1b3e99 Renamed accounting sub extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 391
diff changeset
87 ADD_LIBRARY(sub_acct MODULE ${RG_COMMON_HEADER} sub_acct.c)
f63adc1b3e99 Renamed accounting sub extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 391
diff changeset
88 TARGET_LINK_LIBRARIES(sub_acct rg_common)
f63adc1b3e99 Renamed accounting sub extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 391
diff changeset
89 ENDIF (BUILD_SUB_ACCT)
"Welcome to our mercurial repository"