Debian Codegraph @

scripts/ci/eapol_test/config_linux

raw
1 # Example wpa_supplicant build time configuration
2 #
3 # This file lists the configuration options that are used when building the
4 # hostapd binary. All lines starting with # are ignored. Configuration option
5 # lines must be commented out complete, if they are not to be included, i.e.,
6 # just setting VARIABLE=n is not disabling that variable.
7 #
8 # This file is included in Makefile, so variables like CFLAGS and LIBS can also
9 # be modified from here. In most cases, these lines should use += in order not
10 # to override previous values of the variables.
11
12 CFLAGS += -g3 -O0 -Wno-error=deprecated-declarations $(EAPOL_TEST_CFLAGS)
13 LIBS += $(EAPOL_TEST_LDFLAGS)
14
15 #
16 # Disable some warnings only against CLANG
17 #
18 ifeq ($(shell $(CC) -v 2>&1 | grep -c "clang version"), 1)
19 CFLAGS += -Wno-error=ignored-qualifiers
20 endif
21
22 # Some Red Hat versions seem to include kerberos header files from OpenSSL, but
23 # the kerberos files are not in the default include path. Following line can be
24 # used to fix build issues on such systems (krb5.h not found).
25 #CFLAGS += -I/usr/include/kerberos
26
27 # Driver interface for generic Linux wireless extensions
28 # Note: WEXT is deprecated in the current Linux kernel version and no new
29 # functionality is added to it. nl80211-based interface is the new
30 # replacement for WEXT and its use allows wpa_supplicant to properly control
31 # the driver to improve existing functionality like roaming and to support new
32 # functionality.
33 CONFIG_DRIVER_WEXT=n
34
35 # Driver interface for Linux drivers using the nl80211 kernel interface
36 CONFIG_DRIVER_NL80211=n
37
38 # QCA vendor extensions to nl80211
39 CONFIG_DRIVER_NL80211_QCA=n
40
41 # driver_nl80211.c requires libnl. If you are compiling it yourself
42 # you may need to point hostapd to your version of libnl.
43 #
44 #CFLAGS += -I$<path to libnl include files>
45 #LIBS += -L$<path to libnl library files>
46
47 # Use libnl v2.0 (or 3.0) libraries.
48 #CONFIG_LIBNL20=y
49
50 # Use libnl 3.2 libraries (if this is selected, CONFIG_LIBNL20 is ignored)
51 CONFIG_LIBNL32=y
52
53
54 # Driver interface for FreeBSD net80211 layer (e.g., Atheros driver)
55 #CONFIG_DRIVER_BSD=y
56 #CFLAGS += -I/usr/local/include
57 #LIBS += -L/usr/local/lib
58 #LIBS_p += -L/usr/local/lib
59 #LIBS_c += -L/usr/local/lib
60
61 # Driver interface for Windows NDIS
62 #CONFIG_DRIVER_NDIS=y
63 #CFLAGS += -I/usr/include/w32api/ddk
64 #LIBS += -L/usr/local/lib
65 # For native build using mingw
66 #CONFIG_NATIVE_WINDOWS=y
67 # Additional directories for cross-compilation on Linux host for mingw target
68 #CFLAGS += -I/opt/mingw/mingw32/include/ddk
69 #LIBS += -L/opt/mingw/mingw32/lib
70 #CC=mingw32-gcc
71 # By default, driver_ndis uses WinPcap for low-level operations. This can be
72 # replaced with the following option which replaces WinPcap calls with NDISUIO.
73 # However, this requires that WZC is disabled (net stop wzcsvc) before starting
74 # wpa_supplicant.
75 # CONFIG_USE_NDISUIO=y
76
77 # Driver interface for wired Ethernet drivers
78 CONFIG_DRIVER_WIRED=y
79
80 # Driver interface for the Broadcom RoboSwitch family
81 #CONFIG_DRIVER_ROBOSWITCH=y
82
83 # Driver interface for no driver (e.g., WPS ER only)
84 #CONFIG_DRIVER_NONE=y
85
86 # Solaris libraries
87 #LIBS += -lsocket -ldlpi -lnsl
88 #LIBS_c += -lsocket
89
90 # Enable IEEE 802.1X Supplicant (automatically included if any EAP method is
91 # included)
92 CONFIG_IEEE8021X_EAPOL=y
93
94 # EAP-MD5
95 CONFIG_EAP_MD5=y
96
97 # EAP-MSCHAPv2
98 CONFIG_EAP_MSCHAPV2=y
99
100 # EAP-TLS
101 CONFIG_EAP_TLS=y
102
103 # EAL-PEAP
104 CONFIG_EAP_PEAP=y
105
106 # EAP-TTLS
107 CONFIG_EAP_TTLS=y
108
109 # EAP-FAST
110 # Note: If OpenSSL is used as the TLS library, OpenSSL 1.0 or newer is needed
111 # for EAP-FAST support. Older OpenSSL releases would need to be patched, e.g.,
112 # with openssl-0.9.8x-tls-extensions.patch, to add the needed functions.
113 CONFIG_EAP_FAST=y
114
115 # EAP-GTC
116 CONFIG_EAP_GTC=y
117
118 # EAP-OTP
119 CONFIG_EAP_OTP=y
120
121 # EAP-SIM (enable CONFIG_PCSC, if EAP-SIM is used)
122 CONFIG_EAP_SIM=y
123
124 # EAP-PSK (experimental; this is _not_ needed for WPA-PSK)
125 CONFIG_EAP_PSK=y
126
127 # EAP-pwd (secure authentication using only a password)
128 CONFIG_EAP_PWD=y
129
130 # EAP-PAX
131 CONFIG_EAP_PAX=y
132
133 # LEAP
134 CONFIG_EAP_LEAP=n
135
136 # EAP-AKA (enable CONFIG_PCSC, if EAP-AKA is used)
137 CONFIG_EAP_AKA=y
138
139 # EAP-AKA' (enable CONFIG_PCSC, if EAP-AKA' is used).
140 # This requires CONFIG_EAP_AKA to be enabled, too.
141 CONFIG_EAP_AKA_PRIME=y
142
143 # Enable USIM simulator (Milenage) for EAP-AKA
144 CONFIG_USIM_SIMULATOR=y
145
146 # Enable SIM simulator (Milenage) for EAP-SIM
147 CONFIG_SIM_SIMULATOR=y
148
149 # EAP-SAKE
150 CONFIG_EAP_SAKE=y
151
152 # EAP-GPSK
153 CONFIG_EAP_GPSK=y
154 # Include support for optional SHA256 cipher suite in EAP-GPSK
155 CONFIG_EAP_GPSK_SHA256=y
156
157 # EAP-TNC and related Trusted Network Connect support (experimental)
158 CONFIG_EAP_TNC=y
159
160 # Wi-Fi Protected Setup (WPS)
161 #CONFIG_WPS=y
162 # Enable WPS external registrar functionality
163 #CONFIG_WPS_ER=y
164 # Disable credentials for an open network by default when acting as a WPS
165 # registrar.
166 #CONFIG_WPS_REG_DISABLE_OPEN=y
167 # Enable WPS support with NFC config method
168 #CONFIG_WPS_NFC=y
169
170 # EAP-IKEv2
171 CONFIG_EAP_IKEV2=y
172
173 # EAP-EKE
174 CONFIG_EAP_EKE=y
175
176 # PKCS#12 (PFX) support (used to read private key and certificate file from
177 # a file that usually has extension .p12 or .pfx)
178 CONFIG_PKCS12=y
179
180 # Smartcard support (i.e., private key on a smartcard), e.g., with openssl
181 # engine.
182 CONFIG_SMARTCARD=y
183
184 # PC/SC interface for smartcards (USIM, GSM SIM)
185 # Enable this if EAP-SIM or EAP-AKA is included
186 #CONFIG_PCSC=y
187
188 # Support HT overrides (disable HT/HT40, mask MCS rates, etc.)
189 #CONFIG_HT_OVERRIDES=y
190
191 # Support VHT overrides (disable VHT, mask MCS rates, etc.)
192 #CONFIG_VHT_OVERRIDES=y
193
194 # Development testing
195 CONFIG_EAPOL_TEST=y
196
197 # Select control interface backend for external programs, e.g, wpa_cli:
198 # unix = UNIX domain sockets (default for Linux/*BSD)
199 # udp = UDP sockets using localhost (127.0.0.1)
200 # udp6 = UDP IPv6 sockets using localhost (::1)
201 # named_pipe = Windows Named Pipe (default for Windows)
202 # udp-remote = UDP sockets with remote access (only for tests systems/purpose)
203 # udp6-remote = UDP IPv6 sockets with remote access (only for tests purpose)
204 # y = use default (backwards compatibility)
205 # If this option is commented out, control interface is not included in the
206 # build.
207 CONFIG_CTRL_IFACE=y
208
209 # Include support for GNU Readline and History Libraries in wpa_cli.
210 # When building a wpa_cli binary for distribution, please note that these
211 # libraries are licensed under GPL and as such, BSD license may not apply for
212 # the resulting binary.
213 #CONFIG_READLINE=y
214
215 # Include internal line edit mode in wpa_cli. This can be used as a replacement
216 # for GNU Readline to provide limited command line editing and history support.
217 #CONFIG_WPA_CLI_EDIT=y
218
219 # Remove debugging code that is printing out debug message to stdout.
220 # This can be used to reduce the size of the wpa_supplicant considerably
221 # if debugging code is not needed. The size reduction can be around 35%
222 # (e.g., 90 kB).
223 #CONFIG_NO_STDOUT_DEBUG=y
224
225 # Remove WPA support, e.g., for wired-only IEEE 802.1X supplicant, to save
226 # 35-50 kB in code size.
227 #CONFIG_NO_WPA=y
228
229 # Remove IEEE 802.11i/WPA-Personal ASCII passphrase support
230 # This option can be used to reduce code size by removing support for
231 # converting ASCII passphrases into PSK. If this functionality is removed, the
232 # PSK can only be configured as the 64-octet hexstring (e.g., from
233 # wpa_passphrase). This saves about 0.5 kB in code size.
234 #CONFIG_NO_WPA_PASSPHRASE=y
235
236 # Disable scan result processing (ap_mode=1) to save code size by about 1 kB.
237 # This can be used if ap_scan=1 mode is never enabled.
238 #CONFIG_NO_SCAN_PROCESSING=y
239
240 # Select configuration backend:
241 # file = text file (e.g., wpa_supplicant.conf; note: the configuration file
242 # path is given on command line, not here; this option is just used to
243 # select the backend that allows configuration files to be used)
244 # winreg = Windows registry (see win_example.reg for an example)
245 CONFIG_BACKEND=file
246
247 # Remove configuration write functionality (i.e., to allow the configuration
248 # file to be updated based on runtime configuration changes). The runtime
249 # configuration can still be changed, the changes are just not going to be
250 # persistent over restarts. This option can be used to reduce code size by
251 # about 3.5 kB.
252 #CONFIG_NO_CONFIG_WRITE=y
253
254 # Remove support for configuration blobs to reduce code size by about 1.5 kB.
255 #CONFIG_NO_CONFIG_BLOBS=y
256
257 # Select program entry point implementation:
258 # main = UNIX/POSIX like main() function (default)
259 # main_winsvc = Windows service (read parameters from registry)
260 # main_none = Very basic example (development use only)
261 #CONFIG_MAIN=main
262
263 # Select wrapper for operating system and C library specific functions
264 # unix = UNIX/POSIX like systems (default)
265 # win32 = Windows systems
266 # none = Empty template
267 #CONFIG_OS=unix
268
269 # Select event loop implementation
270 # eloop = select() loop (default)
271 # eloop_win = Windows events and WaitForMultipleObject() loop
272 #CONFIG_ELOOP=eloop
273
274 # Should we use poll instead of select? Select is used by default.
275 #CONFIG_ELOOP_POLL=y
276
277 # Should we use epoll instead of select? Select is used by default.
278 #CONFIG_ELOOP_EPOLL=y
279
280 # Select layer 2 packet implementation
281 # linux = Linux packet socket (default)
282 # pcap = libpcap/libdnet/WinPcap
283 # freebsd = FreeBSD libpcap
284 # winpcap = WinPcap with receive thread
285 # ndis = Windows NDISUIO (note: requires CONFIG_USE_NDISUIO=y)
286 # none = Empty template
287 CONFIG_L2_PACKET=linux
288
289 # PeerKey handshake for Station to Station Link (IEEE 802.11e DLS)
290 CONFIG_PEERKEY=y
291
292 # IEEE 802.11w (management frame protection), also known as PMF
293 # Driver support is also needed for IEEE 802.11w.
294 #CONFIG_IEEE80211W=y
295
296 # Select TLS implementation
297 # openssl = OpenSSL (default)
298 # gnutls = GnuTLS
299 # internal = Internal TLSv1 implementation (experimental)
300 # none = Empty template
301 CONFIG_TLS=openssl
302
303 # TLS-based EAP methods require at least TLS v1.0. Newer version of TLS (v1.1)
304 # can be enabled to get a stronger construction of messages when block ciphers
305 # are used. It should be noted that some existing TLS v1.0 -based
306 # implementation may not be compatible with TLS v1.1 message (ClientHello is
307 # sent prior to negotiating which version will be used)
308 #CONFIG_TLSV11=y
309
310 # TLS-based EAP methods require at least TLS v1.0. Newer version of TLS (v1.2)
311 # can be enabled to enable use of stronger crypto algorithms. It should be
312 # noted that some existing TLS v1.0 -based implementation may not be compatible
313 # with TLS v1.2 message (ClientHello is sent prior to negotiating which version
314 # will be used)
315 CONFIG_TLSV12=y
316
317 # If CONFIG_TLS=internal is used, additional library and include paths are
318 # needed for LibTomMath. Alternatively, an integrated, minimal version of
319 # LibTomMath can be used. See beginning of libtommath.c for details on benefits
320 # and drawbacks of this option.
321 #CONFIG_INTERNAL_LIBTOMMATH=y
322 #ifndef CONFIG_INTERNAL_LIBTOMMATH
323 #LTM_PATH=/usr/src/libtommath-0.39
324 #CFLAGS += -I$(LTM_PATH)
325 #LIBS += -L$(LTM_PATH)
326 #LIBS_p += -L$(LTM_PATH)
327 #endif
328 # At the cost of about 4 kB of additional binary size, the internal LibTomMath
329 # can be configured to include faster routines for exptmod, sqr, and div to
330 # speed up DH and RSA calculation considerably
331 #CONFIG_INTERNAL_LIBTOMMATH_FAST=y
332
333 # Include NDIS event processing through WMI into wpa_supplicant/wpasvc.
334 # This is only for Windows builds and requires WMI-related header files and
335 # WbemUuid.Lib from Platform SDK even when building with MinGW.
336 #CONFIG_NDIS_EVENTS_INTEGRATED=y
337 #PLATFORMSDKLIB="/opt/Program Files/Microsoft Platform SDK/Lib"
338
339 # Add support for old DBus control interface
340 # (fi.epitest.hostap.WPASupplicant)
341 #CONFIG_CTRL_IFACE_DBUS=y
342
343 # Add support for new DBus control interface
344 # (fi.w1.hostap.wpa_supplicant1)
345 #CONFIG_CTRL_IFACE_DBUS_NEW=y
346
347 # Add introspection support for new DBus control interface
348 #CONFIG_CTRL_IFACE_DBUS_INTRO=y
349
350 # Add support for loading EAP methods dynamically as shared libraries.
351 # When this option is enabled, each EAP method can be either included
352 # statically (CONFIG_EAP_<method>=y) or dynamically (CONFIG_EAP_<method>=dyn).
353 # Dynamic EAP methods are build as shared objects (eap_*.so) and they need to
354 # be loaded in the beginning of the wpa_supplicant configuration file
355 # (see load_dynamic_eap parameter in the example file) before being used in
356 # the network blocks.
357 #
358 # Note that some shared parts of EAP methods are included in the main program
359 # and in order to be able to use dynamic EAP methods using these parts, the
360 # main program must have been build with the EAP method enabled (=y or =dyn).
361 # This means that EAP-TLS/PEAP/TTLS/FAST cannot be added as dynamic libraries
362 # unless at least one of them was included in the main build to force inclusion
363 # of the shared code. Similarly, at least one of EAP-SIM/AKA must be included
364 # in the main build to be able to load these methods dynamically.
365 #
366 # Please also note that using dynamic libraries will increase the total binary
367 # size. Thus, it may not be the best option for targets that have limited
368 # amount of memory/flash.
369 #CONFIG_DYNAMIC_EAP_METHODS=y
370
371 # IEEE Std 802.11r-2008 (Fast BSS Transition)
372 #CONFIG_IEEE80211R=y
373
374 # Add support for writing debug log to a file (/tmp/wpa_supplicant-log-#.txt)
375 #CONFIG_DEBUG_FILE=y
376
377 # Send debug messages to syslog instead of stdout
378 #CONFIG_DEBUG_SYSLOG=y
379 # Set syslog facility for debug messages
380 #CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON
381
382 # Add support for sending all debug messages (regardless of debug verbosity)
383 # to the Linux kernel tracing facility. This helps debug the entire stack by
384 # making it easy to record everything happening from the driver up into the
385 # same file, e.g., using trace-cmd.
386 #CONFIG_DEBUG_LINUX_TRACING=y
387
388 # Add support for writing debug log to Android logcat instead of standard
389 # output
390 #CONFIG_ANDROID_LOG=y
391
392 # Enable privilege separation (see README 'Privilege separation' for details)
393 #CONFIG_PRIVSEP=y
394
395 # Enable mitigation against certain attacks against TKIP by delaying Michael
396 # MIC error reports by a random amount of time between 0 and 60 seconds
397 #CONFIG_DELAYED_MIC_ERROR_REPORT=y
398
399 # Enable tracing code for developer debugging
400 # This tracks use of memory allocations and other registrations and reports
401 # incorrect use with a backtrace of call (or allocation) location.
402 #CONFIG_WPA_TRACE=y
403 # For BSD, uncomment these.
404 #LIBS += -lexecinfo
405 #LIBS_p += -lexecinfo
406 #LIBS_c += -lexecinfo
407
408 # Use libbfd to get more details for developer debugging
409 # This enables use of libbfd to get more detailed symbols for the backtraces
410 # generated by CONFIG_WPA_TRACE=y.
411 #CONFIG_WPA_TRACE_BFD=y
412 # For BSD, uncomment these.
413 #LIBS += -lbfd -liberty -lz
414 #LIBS_p += -lbfd -liberty -lz
415 #LIBS_c += -lbfd -liberty -lz
416
417 # wpa_supplicant depends on strong random number generation being available
418 # from the operating system. os_get_random() function is used to fetch random
419 # data when needed, e.g., for key generation. On Linux and BSD systems, this
420 # works by reading /dev/urandom. It should be noted that the OS entropy pool
421 # needs to be properly initialized before wpa_supplicant is started. This is
422 # important especially on embedded devices that do not have a hardware random
423 # number generator and may by default start up with minimal entropy available
424 # for random number generation.
425 #
426 # As a safety net, wpa_supplicant is by default trying to internally collect
427 # additional entropy for generating random data to mix in with the data fetched
428 # from the OS. This by itself is not considered to be very strong, but it may
429 # help in cases where the system pool is not initialized properly. However, it
430 # is very strongly recommended that the system pool is initialized with enough
431 # entropy either by using hardware assisted random number generator or by
432 # storing state over device reboots.
433 #
434 # wpa_supplicant can be configured to maintain its own entropy store over
435 # restarts to enhance random number generation. This is not perfect, but it is
436 # much more secure than using the same sequence of random numbers after every
437 # reboot. This can be enabled with -e<entropy file> command line option. The
438 # specified file needs to be readable and writable by wpa_supplicant.
439 #
440 # If the os_get_random() is known to provide strong random data (e.g., on
441 # Linux/BSD, the board in question is known to have reliable source of random
442 # data from /dev/urandom), the internal wpa_supplicant random pool can be
443 # disabled. This will save some in binary size and CPU use. However, this
444 # should only be considered for builds that are known to be used on devices
445 # that meet the requirements described above.
446 #CONFIG_NO_RANDOM_POOL=y
447
448 # IEEE 802.11n (High Throughput) support (mainly for AP mode)
449 #CONFIG_IEEE80211N=y
450
451 # IEEE 802.11ac (Very High Throughput) support (mainly for AP mode)
452 # (depends on CONFIG_IEEE80211N)
453 #CONFIG_IEEE80211AC=y
454
455 # Wireless Network Management (IEEE Std 802.11v-2011)
456 # Note: This is experimental and not complete implementation.
457 #CONFIG_WNM=y
458
459 # Interworking (IEEE 802.11u)
460 # This can be used to enable functionality to improve interworking with
461 # external networks (GAS/ANQP to learn more about the networks and network
462 # selection based on available credentials).
463 #CONFIG_INTERWORKING=y
464
465 # Hotspot 2.0
466 #CONFIG_HS20=y
467
468 # Disable roaming in wpa_supplicant
469 #CONFIG_NO_ROAMING=y
470
471 # AP mode operations with wpa_supplicant
472 # This can be used for controlling AP mode operations with wpa_supplicant. It
473 # should be noted that this is mainly aimed at simple cases like
474 # WPA2-Personal while more complex configurations like WPA2-Enterprise with an
475 # external RADIUS server can be supported with hostapd.
476 #CONFIG_AP=y
477
478 # P2P (Wi-Fi Direct)
479 # This can be used to enable P2P support in wpa_supplicant. See README-P2P for
480 # more information on P2P operations.
481 #CONFIG_P2P=y
482
483 # Enable TDLS support
484 #CONFIG_TDLS=y
485
486 # Wi-Fi Direct
487 # This can be used to enable Wi-Fi Direct extensions for P2P using an external
488 # program to control the additional information exchanges in the messages.
489 #CONFIG_WIFI_DISPLAY=y
490
491 # Autoscan
492 # This can be used to enable automatic scan support in wpa_supplicant.
493 # See wpa_supplicant.conf for more information on autoscan usage.
494 #
495 # Enabling directly a module will enable autoscan support.
496 # For exponential module:
497 #CONFIG_AUTOSCAN_EXPONENTIAL=y
498 # For periodic module:
499 #CONFIG_AUTOSCAN_PERIODIC=y
500
501 # Password (and passphrase, etc.) backend for external storage
502 # These optional mechanisms can be used to add support for storing passwords
503 # and other secrets in external (to wpa_supplicant) location. This allows, for
504 # example, operating system specific key storage to be used
505 #
506 # External password backend for testing purposes (developer use)
507 #CONFIG_EXT_PASSWORD_TEST=y
508
509 # Enable Fast Session Transfer (FST)
510 #CONFIG_FST=y
511
512 # Enable CLI commands for FST testing
513 #CONFIG_FST_TEST=y
514
515 # OS X builds. This is only for building eapol_test.
516 #CONFIG_OSX=y
517
518 # EAP-FAST used to require OpenSSL patches, so it's not on by default.
519 # enable it.
520 CONFIG_EAP_FAST=y