Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

auto import from //depot/cupcake/@135843

  • Loading branch information...
commit 845e0124d42b67ef926fbae32a7f61d2e5109ebd 1 parent 0ff01d4
authored March 03, 2009

Showing 69 changed files with 35,813 additions and 0 deletions. Show diff stats Hide diff stats

  1. 708  Android.mk
  2. 340  COPYING
  3. 1,023  ChangeLog
  4. 0  MODULE_LICENSE_BSD_LIKE
  5. 914  Makefile
  6. 61  NOTICE
  7. 970  README
  8. 1,107  aes.c
  9. 25  aes.h
  10. 515  aes_wrap.c
  11. 44  aes_wrap.h
  12. 209  asn1.c
  13. 71  asn1.h
  14. 210  asn1_test.c
  15. 188  base64.c
  16. 23  base64.h
  17. 230  bignum.c
  18. 38  bignum.h
  19. 50  build_config.h
  20. 599  common.c
  21. 494  common.h
  22. 1,759  config.c
  23. 339  config.h
  24. 727  config_file.c
  25. 57  config_none.c
  26. 871  config_ssid.h
  27. 28  config_types.h
  28. 882  config_winreg.c
  29. 207  crypto.c
  30. 413  crypto.h
  31. 801  crypto_cryptoapi.c
  32. 163  crypto_gnutls.c
  33. 670  crypto_internal.c
  34. 736  crypto_libtomcrypt.c
  35. 28  crypto_none.c
  36. 1,467  ctrl_iface.c
  37. 159  ctrl_iface.h
  38. 1,060  ctrl_iface_dbus.c
  39. 146  ctrl_iface_dbus.h
  40. 1,331  ctrl_iface_dbus_handlers.c
  41. 83  ctrl_iface_dbus_handlers.h
  42. 834  ctrl_iface_named_pipe.c
  43. 561  ctrl_iface_udp.c
  44. 705  ctrl_iface_unix.c
  45. 16  dbus-wpa_supplicant.conf
  46. 957  dbus_dict_helpers.c
  47. 135  dbus_dict_helpers.h
  48. 323  defconfig
  49. 155  defs.h
  50. 476  des.c
  51. 769  driver.h
  52. 509  driver_atmel.c
  53. 598  driver_broadcom.c
  54. 791  driver_bsd.c
  55. 517  driver_hostap.c
  56. 153  driver_hostap.h
  57. 467  driver_ipw.c
  58. 567  driver_madwifi.c
  59. 2,840  driver_ndis.c
  60. 64  driver_ndis.h
  61. 108  driver_ndis_.c
  62. 372  driver_ndiswrapper.c
  63. 384  driver_prism54.c
  64. 963  driver_test.c
  65. 2,369  driver_wext.c
  66. 48  driver_wext.h
  67. 278  driver_wired.c
  68. 108  drivers.c
708  Android.mk
... ...
@@ -0,0 +1,708 @@
  1
+#
  2
+# Copyright (C) 2008 The Android Open Source Project
  3
+#
  4
+# Licensed under the Apache License, Version 2.0 (the "License");
  5
+# you may not use this file except in compliance with the License.
  6
+# You may obtain a copy of the License at
  7
+#
  8
+#      http://www.apache.org/licenses/LICENSE-2.0
  9
+#
  10
+# Unless required by applicable law or agreed to in writing, software
  11
+# distributed under the License is distributed on an "AS IS" BASIS,
  12
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13
+# See the License for the specific language governing permissions and
  14
+# limitations under the License.
  15
+#
  16
+LOCAL_PATH := $(call my-dir)
  17
+
  18
+WPA_BUILD_SUPPLICANT := false
  19
+ifneq ($(TARGET_SIMULATOR),true)
  20
+  ifneq ($(BOARD_WPA_SUPPLICANT_DRIVER),)
  21
+    WPA_BUILD_SUPPLICANT := true
  22
+    CONFIG_DRIVER_$(BOARD_WPA_SUPPLICANT_DRIVER) = y
  23
+  endif
  24
+endif
  25
+
  26
+include $(LOCAL_PATH)/.config
  27
+
  28
+# To force sizeof(enum) = 4
  29
+ifeq ($(TARGET_ARCH),arm)
  30
+L_CFLAGS += -mabi=aapcs-linux
  31
+endif
  32
+
  33
+# To ignore possible wrong network configurations
  34
+L_CFLAGS += -DWPA_IGNORE_CONFIG_ERRORS
  35
+
  36
+INCLUDES = external/openssl/include
  37
+  
  38
+OBJS = config.c common.c md5.c md4.c rc4.c sha1.c des.c if_index.c
  39
+OBJS_p = wpa_passphrase.c sha1.c md5.c md4.c common.c des.c
  40
+OBJS_c = wpa_cli.c wpa_ctrl.c
  41
+
  42
+ifndef CONFIG_OS
  43
+ifdef CONFIG_NATIVE_WINDOWS
  44
+CONFIG_OS=win32
  45
+else
  46
+CONFIG_OS=unix
  47
+endif
  48
+endif
  49
+
  50
+OBJS += os_$(CONFIG_OS).c
  51
+OBJS_p += os_$(CONFIG_OS).c
  52
+OBJS_c += os_$(CONFIG_OS).c
  53
+
  54
+ifndef CONFIG_ELOOP
  55
+CONFIG_ELOOP=eloop
  56
+endif
  57
+OBJS += $(CONFIG_ELOOP).c
  58
+
  59
+
  60
+ifdef CONFIG_EAPOL_TEST
  61
+L_CFLAGS += -Werror -DEAPOL_TEST
  62
+endif
  63
+
  64
+ifndef CONFIG_BACKEND
  65
+CONFIG_BACKEND=file
  66
+endif
  67
+
  68
+ifeq ($(CONFIG_BACKEND), file)
  69
+OBJS += config_file.c base64.c
  70
+L_CFLAGS += -DCONFIG_BACKEND_FILE
  71
+endif
  72
+
  73
+ifeq ($(CONFIG_BACKEND), winreg)
  74
+OBJS += config_winreg.c
  75
+endif
  76
+
  77
+ifeq ($(CONFIG_BACKEND), none)
  78
+OBJS += config_none.c
  79
+endif
  80
+
  81
+ifdef CONFIG_DRIVER_HOSTAP
  82
+L_CFLAGS += -DCONFIG_DRIVER_HOSTAP
  83
+OBJS_d += driver_hostap.c
  84
+CONFIG_WIRELESS_EXTENSION=y
  85
+endif
  86
+
  87
+ifdef CONFIG_DRIVER_WEXT
  88
+L_CFLAGS += -DCONFIG_DRIVER_WEXT
  89
+CONFIG_WIRELESS_EXTENSION=y
  90
+endif
  91
+
  92
+ifdef CONFIG_DRIVER_PRISM54
  93
+L_CFLAGS += -DCONFIG_DRIVER_PRISM54
  94
+OBJS_d += driver_prism54.c
  95
+CONFIG_WIRELESS_EXTENSION=y
  96
+endif
  97
+
  98
+ifdef CONFIG_DRIVER_HERMES
  99
+L_CFLAGS += -DCONFIG_DRIVER_HERMES
  100
+OBJS_d += driver_hermes.c
  101
+CONFIG_WIRELESS_EXTENSION=y
  102
+endif
  103
+
  104
+ifdef CONFIG_DRIVER_MADWIFI
  105
+L_CFLAGS += -DCONFIG_DRIVER_MADWIFI
  106
+OBJS_d += driver_madwifi.c
  107
+CONFIG_WIRELESS_EXTENSION=y
  108
+endif
  109
+
  110
+ifdef CONFIG_DRIVER_ATMEL
  111
+L_CFLAGS += -DCONFIG_DRIVER_ATMEL
  112
+OBJS_d += driver_atmel.c
  113
+CONFIG_WIRELESS_EXTENSION=y
  114
+endif
  115
+
  116
+ifdef CONFIG_DRIVER_NDISWRAPPER
  117
+L_CFLAGS += -DCONFIG_DRIVER_NDISWRAPPER
  118
+OBJS_d += driver_ndiswrapper.c
  119
+CONFIG_WIRELESS_EXTENSION=y
  120
+endif
  121
+
  122
+ifdef CONFIG_DRIVER_BROADCOM
  123
+L_CFLAGS += -DCONFIG_DRIVER_BROADCOM
  124
+OBJS_d += driver_broadcom.c
  125
+endif
  126
+
  127
+ifdef CONFIG_DRIVER_IPW
  128
+L_CFLAGS += -DCONFIG_DRIVER_IPW
  129
+OBJS_d += driver_ipw.c
  130
+CONFIG_WIRELESS_EXTENSION=y
  131
+endif
  132
+
  133
+ifdef CONFIG_DRIVER_BSD
  134
+L_CFLAGS += -DCONFIG_DRIVER_BSD
  135
+OBJS_d += driver_bsd.c
  136
+ifndef CONFIG_L2_PACKET
  137
+CONFIG_L2_PACKET=freebsd
  138
+endif
  139
+endif
  140
+
  141
+ifdef CONFIG_DRIVER_NDIS
  142
+L_CFLAGS += -DCONFIG_DRIVER_NDIS
  143
+OBJS_d += driver_ndis.c driver_ndis_.c
  144
+ifndef CONFIG_L2_PACKET
  145
+CONFIG_L2_PACKET=pcap
  146
+endif
  147
+CONFIG_WINPCAP=y
  148
+ifdef CONFIG_USE_NDISUIO
  149
+L_CFLAGS += -DCONFIG_USE_NDISUIO
  150
+endif
  151
+endif
  152
+
  153
+ifdef CONFIG_DRIVER_WIRED
  154
+L_CFLAGS += -DCONFIG_DRIVER_WIRED
  155
+OBJS_d += driver_wired.c
  156
+endif
  157
+
  158
+ifdef CONFIG_DRIVER_TEST
  159
+L_CFLAGS += -DCONFIG_DRIVER_TEST
  160
+OBJS_d += driver_test.c
  161
+endif
  162
+
  163
+ifdef CONFIG_DRIVER_CUSTOM
  164
+L_CFLAGS += -DCONFIG_DRIVER_CUSTOM
  165
+endif
  166
+
  167
+ifndef CONFIG_L2_PACKET
  168
+CONFIG_L2_PACKET=linux
  169
+endif
  170
+
  171
+OBJS += l2_packet_$(CONFIG_L2_PACKET).c
  172
+
  173
+ifeq ($(CONFIG_L2_PACKET), pcap)
  174
+ifdef CONFIG_WINPCAP
  175
+L_CFLAGS += -DCONFIG_WINPCAP
  176
+LIBS += -lwpcap -lpacket
  177
+LIBS_w += -lwpcap
  178
+else
  179
+LIBS += -ldnet -lpcap
  180
+endif
  181
+endif
  182
+
  183
+ifeq ($(CONFIG_L2_PACKET), winpcap)
  184
+LIBS += -lwpcap -lpacket
  185
+LIBS_w += -lwpcap
  186
+endif
  187
+
  188
+ifeq ($(CONFIG_L2_PACKET), freebsd)
  189
+LIBS += -lpcap
  190
+endif
  191
+
  192
+ifdef CONFIG_EAP_TLS
  193
+# EAP-TLS
  194
+L_CFLAGS += -DEAP_TLS
  195
+OBJS += eap_tls.c
  196
+TLS_FUNCS=y
  197
+CONFIG_IEEE8021X_EAPOL=y
  198
+endif
  199
+
  200
+ifdef CONFIG_EAP_PEAP
  201
+# EAP-PEAP
  202
+L_CFLAGS += -DEAP_PEAP
  203
+OBJS += eap_peap.c
  204
+TLS_FUNCS=y
  205
+CONFIG_IEEE8021X_EAPOL=y
  206
+CONFIG_EAP_TLV=y
  207
+endif
  208
+
  209
+ifdef CONFIG_EAP_TTLS
  210
+# EAP-TTLS
  211
+L_CFLAGS += -DEAP_TTLS
  212
+OBJS += eap_ttls.c
  213
+MS_FUNCS=y
  214
+TLS_FUNCS=y
  215
+CONFIG_IEEE8021X_EAPOL=y
  216
+endif
  217
+
  218
+ifdef CONFIG_EAP_MD5
  219
+# EAP-MD5 (also used by EAP-TTLS)
  220
+L_CFLAGS += -DEAP_MD5
  221
+OBJS += eap_md5.c
  222
+CONFIG_IEEE8021X_EAPOL=y
  223
+endif
  224
+
  225
+# backwards compatibility for old spelling
  226
+ifdef CONFIG_MSCHAPV2
  227
+ifndef CONFIG_EAP_MSCHAPV2
  228
+CONFIG_EAP_MSCHAPV2=y
  229
+endif
  230
+endif
  231
+
  232
+ifdef CONFIG_EAP_MSCHAPV2
  233
+# EAP-MSCHAPv2 (also used by EAP-PEAP)
  234
+L_CFLAGS += -DEAP_MSCHAPv2
  235
+OBJS += eap_mschapv2.c
  236
+MS_FUNCS=y
  237
+CONFIG_IEEE8021X_EAPOL=y
  238
+endif
  239
+
  240
+ifdef CONFIG_EAP_GTC
  241
+# EAP-GTC (also used by EAP-PEAP)
  242
+L_CFLAGS += -DEAP_GTC
  243
+OBJS += eap_gtc.c
  244
+CONFIG_IEEE8021X_EAPOL=y
  245
+endif
  246
+
  247
+ifdef CONFIG_EAP_OTP
  248
+# EAP-OTP
  249
+L_CFLAGS += -DEAP_OTP
  250
+OBJS += eap_otp.c
  251
+CONFIG_IEEE8021X_EAPOL=y
  252
+endif
  253
+
  254
+ifdef CONFIG_EAP_SIM
  255
+# EAP-SIM
  256
+L_CFLAGS += -DEAP_SIM
  257
+OBJS += eap_sim.c
  258
+CONFIG_IEEE8021X_EAPOL=y
  259
+CONFIG_EAP_SIM_COMMON=y
  260
+endif
  261
+
  262
+ifdef CONFIG_EAP_LEAP
  263
+# EAP-LEAP
  264
+L_CFLAGS += -DEAP_LEAP
  265
+OBJS += eap_leap.c
  266
+MS_FUNCS=y
  267
+CONFIG_IEEE8021X_EAPOL=y
  268
+endif
  269
+
  270
+ifdef CONFIG_EAP_PSK
  271
+# EAP-PSK
  272
+L_CFLAGS += -DEAP_PSK
  273
+OBJS += eap_psk.c eap_psk_common.c
  274
+CONFIG_IEEE8021X_EAPOL=y
  275
+NEED_AES=y
  276
+endif
  277
+
  278
+ifdef CONFIG_EAP_AKA
  279
+# EAP-AKA
  280
+L_CFLAGS += -DEAP_AKA
  281
+OBJS += eap_aka.c
  282
+CONFIG_IEEE8021X_EAPOL=y
  283
+CONFIG_EAP_SIM_COMMON=y
  284
+endif
  285
+
  286
+ifdef CONFIG_EAP_SIM_COMMON
  287
+OBJS += eap_sim_common.c
  288
+NEED_AES=y
  289
+endif
  290
+
  291
+ifdef CONFIG_EAP_TLV
  292
+# EAP-TLV
  293
+L_CFLAGS += -DEAP_TLV
  294
+OBJS += eap_tlv.c
  295
+endif
  296
+
  297
+ifdef CONFIG_EAP_FAST
  298
+# EAP-FAST
  299
+L_CFLAGS += -DEAP_FAST
  300
+OBJS += eap_fast.c
  301
+TLS_FUNCS=y
  302
+endif
  303
+
  304
+ifdef CONFIG_EAP_PAX
  305
+# EAP-PAX
  306
+L_CFLAGS += -DEAP_PAX
  307
+OBJS += eap_pax.c eap_pax_common.c
  308
+CONFIG_IEEE8021X_EAPOL=y
  309
+endif
  310
+
  311
+ifdef CONFIG_EAP_SAKE
  312
+# EAP-SAKE
  313
+L_CFLAGS += -DEAP_SAKE
  314
+OBJS += eap_sake.c eap_sake_common.c
  315
+CONFIG_IEEE8021X_EAPOL=y
  316
+endif
  317
+
  318
+ifdef CONFIG_EAP_GPSK
  319
+# EAP-GPSK
  320
+L_CFLAGS += -DEAP_GPSK
  321
+OBJS += eap_gpsk.c eap_gpsk_common.c
  322
+CONFIG_IEEE8021X_EAPOL=y
  323
+ifdef CONFIG_EAP_GPSK_SHA256
  324
+L_CFLAGS += -DEAP_GPSK_SHA256
  325
+NEED_SHA256=y
  326
+endif
  327
+endif
  328
+ifdef CONFIG_EAP_VENDOR_TEST
  329
+L_CFLAGS += -DEAP_VENDOR_TEST
  330
+OBJS += eap_vendor_test.c
  331
+CONFIG_IEEE8021X_EAPOL=y
  332
+endif
  333
+
  334
+ifdef CONFIG_IEEE8021X_EAPOL
  335
+# IEEE 802.1X/EAPOL state machines (e.g., for RADIUS authentication)
  336
+L_CFLAGS += -DIEEE8021X_EAPOL
  337
+OBJS += eapol_sm.c eap.c eap_methods.c
  338
+endif
  339
+
  340
+ifdef CONFIG_PCSC
  341
+# PC/SC interface for smartcards (USIM, GSM SIM)
  342
+L_CFLAGS += -DPCSC_FUNCS -I/usr/include/PCSC
  343
+OBJS += pcsc_funcs.c
  344
+# -lpthread may not be needed depending on how pcsc-lite was configured
  345
+ifdef CONFIG_NATIVE_WINDOWS
  346
+#Once MinGW gets support for WinScard, -lwinscard could be used instead of the
  347
+#dynamic symbol loading that is now used in pcsc_funcs.c
  348
+#LIBS += -lwinscard
  349
+else
  350
+LIBS += -lpcsclite -lpthread
  351
+endif
  352
+endif
  353
+
  354
+ifndef CONFIG_TLS
  355
+CONFIG_TLS=openssl
  356
+# CONFIG_TLS=internal
  357
+endif
  358
+
  359
+ifeq ($(CONFIG_TLS), internal)
  360
+ifndef CONFIG_CRYPTO
  361
+CONFIG_CRYPTO=internal
  362
+endif
  363
+endif
  364
+ifeq ($(CONFIG_CRYPTO), libtomcrypt)
  365
+L_CFLAGS += -DCONFIG_INTERNAL_X509
  366
+endif
  367
+ifeq ($(CONFIG_CRYPTO), internal)
  368
+L_CFLAGS += -DCONFIG_INTERNAL_X509
  369
+endif
  370
+
  371
+
  372
+ifdef TLS_FUNCS
  373
+# Shared TLS functions (needed for EAP_TLS, EAP_PEAP, EAP_TTLS, and EAP_FAST)
  374
+L_CFLAGS += -DEAP_TLS_FUNCS
  375
+OBJS += eap_tls_common.c
  376
+ifeq ($(CONFIG_TLS), openssl)
  377
+L_CFLAGS += -DEAP_TLS_OPENSSL
  378
+OBJS += tls_openssl.c
  379
+LIBS += -lssl -lcrypto
  380
+LIBS_p += -lcrypto
  381
+endif
  382
+ifeq ($(CONFIG_TLS), gnutls)
  383
+OBJS += tls_gnutls.c
  384
+LIBS += -lgnutls -lgcrypt -lgpg-error
  385
+LIBS_p += -lgcrypt
  386
+ifdef CONFIG_GNUTLS_EXTRA
  387
+L_CFLAGS += -DCONFIG_GNUTLS_EXTRA
  388
+LIBS += -lgnutls-extra
  389
+endif
  390
+endif
  391
+ifeq ($(CONFIG_TLS), schannel)
  392
+OBJS += tls_schannel.c
  393
+endif
  394
+ifeq ($(CONFIG_TLS), internal)
  395
+OBJS += tls_internal.c tlsv1_common.c tlsv1_client.c asn1.c x509v3.c
  396
+OBJS_p += asn1.c rc4.c aes_wrap.c
  397
+ifneq ($(CONFIG_BACKEND), file)
  398
+OBJS += base64.c
  399
+endif
  400
+L_CFLAGS += -DCONFIG_TLS_INTERNAL
  401
+ifeq ($(CONFIG_CRYPTO), internal)
  402
+ifdef CONFIG_INTERNAL_LIBTOMMATH
  403
+L_CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH
  404
+else
  405
+LIBS += -ltommath
  406
+LIBS_p += -ltommath
  407
+endif
  408
+endif
  409
+ifeq ($(CONFIG_CRYPTO), libtomcrypt)
  410
+LIBS += -ltomcrypt -ltfm
  411
+LIBS_p += -ltomcrypt -ltfm
  412
+endif
  413
+endif
  414
+ifeq ($(CONFIG_TLS), none)
  415
+OBJS += tls_none.c
  416
+L_CFLAGS += -DEAP_TLS_NONE
  417
+CONFIG_INTERNAL_AES=y
  418
+CONFIG_INTERNAL_SHA1=y
  419
+CONFIG_INTERNAL_MD5=y
  420
+CONFIG_INTERNAL_SHA256=y
  421
+endif
  422
+ifdef CONFIG_SMARTCARD
  423
+ifndef CONFIG_NATIVE_WINDOWS
  424
+ifneq ($(CONFIG_L2_PACKET), freebsd)
  425
+LIBS += -ldl
  426
+endif
  427
+endif
  428
+endif
  429
+NEED_CRYPTO=y
  430
+else
  431
+OBJS += tls_none.c
  432
+endif
  433
+
  434
+ifdef CONFIG_PKCS12
  435
+L_CFLAGS += -DPKCS12_FUNCS
  436
+endif
  437
+
  438
+ifdef CONFIG_SMARTCARD
  439
+L_CFLAGS += -DCONFIG_SMARTCARD
  440
+endif
  441
+
  442
+ifdef MS_FUNCS
  443
+OBJS += ms_funcs.c
  444
+NEED_CRYPTO=y
  445
+endif
  446
+
  447
+ifdef NEED_CRYPTO
  448
+ifndef TLS_FUNCS
  449
+ifeq ($(CONFIG_TLS), openssl)
  450
+LIBS += -lcrypto
  451
+LIBS_p += -lcrypto
  452
+endif
  453
+ifeq ($(CONFIG_TLS), gnutls)
  454
+LIBS += -lgcrypt
  455
+LIBS_p += -lgcrypt
  456
+endif
  457
+ifeq ($(CONFIG_TLS), schannel)
  458
+endif
  459
+ifeq ($(CONFIG_TLS), internal)
  460
+ifeq ($(CONFIG_CRYPTO), libtomcrypt)
  461
+LIBS += -ltomcrypt -ltfm
  462
+LIBS_p += -ltomcrypt -ltfm
  463
+endif
  464
+endif
  465
+endif
  466
+ifeq ($(CONFIG_TLS), openssl)
  467
+OBJS += crypto.c
  468
+OBJS_p += crypto.c
  469
+CONFIG_INTERNAL_SHA256=y
  470
+endif
  471
+ifeq ($(CONFIG_TLS), gnutls)
  472
+OBJS += crypto_gnutls.c
  473
+OBJS_p += crypto_gnutls.c
  474
+CONFIG_INTERNAL_SHA256=y
  475
+endif
  476
+ifeq ($(CONFIG_TLS), schannel)
  477
+OBJS += crypto_cryptoapi.c
  478
+OBJS_p += crypto_cryptoapi.c
  479
+CONFIG_INTERNAL_SHA256=y
  480
+endif
  481
+ifeq ($(CONFIG_TLS), internal)
  482
+ifeq ($(CONFIG_CRYPTO), libtomcrypt)
  483
+OBJS += crypto_libtomcrypt.c
  484
+OBJS_p += crypto_libtomcrypt.c
  485
+CONFIG_INTERNAL_SHA256=y
  486
+endif
  487
+ifeq ($(CONFIG_CRYPTO), internal)
  488
+OBJS += crypto_internal.c rsa.c bignum.c
  489
+OBJS_p += crypto_internal.c rsa.c bignum.c
  490
+L_CFLAGS += -DCONFIG_CRYPTO_INTERNAL
  491
+CONFIG_INTERNAL_AES=y
  492
+CONFIG_INTERNAL_DES=y
  493
+CONFIG_INTERNAL_SHA1=y
  494
+CONFIG_INTERNAL_MD4=y
  495
+CONFIG_INTERNAL_MD5=y
  496
+CONFIG_INTERNAL_SHA256=y
  497
+endif
  498
+ifeq ($(CONFIG_CRYPTO), cryptoapi)
  499
+OBJS += crypto_cryptoapi.c
  500
+OBJS_p += crypto_cryptoapi.c
  501
+L_CFLAGS += -DCONFIG_CRYPTO_CRYPTOAPI
  502
+CONFIG_INTERNAL_SHA256=y
  503
+endif
  504
+endif
  505
+ifeq ($(CONFIG_TLS), none)
  506
+OBJS += crypto_none.c
  507
+OBJS_p += crypto_none.c
  508
+CONFIG_INTERNAL_SHA256=y
  509
+endif
  510
+else
  511
+CONFIG_INTERNAL_AES=y
  512
+CONFIG_INTERNAL_SHA1=y
  513
+CONFIG_INTERNAL_MD5=y
  514
+endif
  515
+
  516
+ifdef CONFIG_INTERNAL_AES
  517
+L_CFLAGS += -DINTERNAL_AES
  518
+endif
  519
+ifdef CONFIG_INTERNAL_SHA1
  520
+L_CFLAGS += -DINTERNAL_SHA1
  521
+endif
  522
+ifdef CONFIG_INTERNAL_SHA256
  523
+L_CFLAGS += -DINTERNAL_SHA256
  524
+endif
  525
+ifdef CONFIG_INTERNAL_MD5
  526
+L_CFLAGS += -DINTERNAL_MD5
  527
+endif
  528
+ifdef CONFIG_INTERNAL_MD4
  529
+L_CFLAGS += -DINTERNAL_MD4
  530
+endif
  531
+ifdef CONFIG_INTERNAL_DES
  532
+L_CFLAGS += -DINTERNAL_DES
  533
+endif
  534
+
  535
+ifdef NEED_SHA256
  536
+OBJS += sha256.c
  537
+endif
  538
+
  539
+ifdef CONFIG_WIRELESS_EXTENSION
  540
+L_CFLAGS += -DCONFIG_WIRELESS_EXTENSION
  541
+OBJS_d += driver_wext.c
  542
+endif
  543
+
  544
+ifdef CONFIG_CTRL_IFACE
  545
+ifeq ($(CONFIG_CTRL_IFACE), y)
  546
+ifdef CONFIG_NATIVE_WINDOWS
  547
+CONFIG_CTRL_IFACE=udp
  548
+else
  549
+CONFIG_CTRL_IFACE=unix
  550
+endif
  551
+endif
  552
+L_CFLAGS += -DCONFIG_CTRL_IFACE
  553
+ifeq ($(CONFIG_CTRL_IFACE), udp)
  554
+L_CFLAGS += -DCONFIG_CTRL_IFACE_UDP
  555
+else
  556
+L_CFLAGS += -DCONFIG_CTRL_IFACE_UNIX
  557
+endif
  558
+OBJS += ctrl_iface.c ctrl_iface_$(CONFIG_CTRL_IFACE).c
  559
+endif
  560
+
  561
+ifdef CONFIG_READLINE
  562
+L_CFLAGS += -DCONFIG_READLINE
  563
+LIBS_c += -lncurses -lreadline
  564
+endif
  565
+
  566
+ifdef CONFIG_NATIVE_WINDOWS
  567
+L_CFLAGS += -DCONFIG_NATIVE_WINDOWS
  568
+LIBS += -lws2_32 -lgdi32 -lcrypt32
  569
+LIBS_c += -lws2_32
  570
+LIBS_p += -lws2_32
  571
+ifeq ($(CONFIG_CRYPTO), cryptoapi)
  572
+LIBS_p += -lcrypt32
  573
+endif
  574
+endif
  575
+
  576
+ifdef CONFIG_NO_STDOUT_DEBUG
  577
+L_CFLAGS += -DCONFIG_NO_STDOUT_DEBUG
  578
+ifndef CONFIG_CTRL_IFACE
  579
+CFLAGS += -DCONFIG_NO_WPA_MSG
  580
+endif
  581
+endif
  582
+
  583
+ifdef CONFIG_IPV6
  584
+# for eapol_test only
  585
+L_CFLAGS += -DCONFIG_IPV6
  586
+endif
  587
+
  588
+ifdef CONFIG_PEERKEY
  589
+L_CFLAGS += -DCONFIG_PEERKEY
  590
+endif
  591
+
  592
+ifdef CONFIG_IEEE80211W
  593
+L_CFLAGS += -DCONFIG_IEEE80211W
  594
+NEED_SHA256=y
  595
+endif
  596
+
  597
+ifndef CONFIG_NO_WPA
  598
+OBJS += wpa.c preauth.c pmksa_cache.c
  599
+NEED_AES=y
  600
+else
  601
+L_CFLAGS += -DCONFIG_NO_WPA -DCONFIG_NO_WPA2
  602
+endif
  603
+
  604
+ifdef CONFIG_NO_WPA2
  605
+L_CFLAGS += -DCONFIG_NO_WPA2
  606
+endif
  607
+
  608
+ifdef CONFIG_NO_AES_EXTRAS
  609
+L_CFLAGS += -DCONFIG_NO_AES_WRAP
  610
+L_CFLAGS += -DCONFIG_NO_AES_CTR -DCONFIG_NO_AES_OMAC1
  611
+L_CFLAGS += -DCONFIG_NO_AES_EAX -DCONFIG_NO_AES_CBC
  612
+endif
  613
+
  614
+ifdef NEED_AES
  615
+OBJS += aes_wrap.c
  616
+endif
  617
+
  618
+ifdef CONFIG_CLIENT_MLME
  619
+OBJS += mlme.c
  620
+L_CFLAGS += -DCONFIG_CLIENT_MLME
  621
+endif
  622
+
  623
+ifndef CONFIG_MAIN
  624
+CONFIG_MAIN=main
  625
+endif
  626
+
  627
+ifdef CONFIG_DEBUG_FILE
  628
+L_CFLAGS += -DCONFIG_DEBUG_FILE
  629
+endif
  630
+
  631
+OBJS += wpa_supplicant.c events.c
  632
+OBJS_t := $(OBJS) eapol_test.c radius.c radius_client.c
  633
+OBJS_t2 := $(OBJS) preauth_test.c
  634
+OBJS += $(CONFIG_MAIN).c drivers.c $(OBJS_d)
  635
+
  636
+ifdef CONFIG_NDIS_EVENTS_INTEGRATED
  637
+L_CFLAGS += -DCONFIG_NDIS_EVENTS_INTEGRATED
  638
+OBJS += ndis_events.c
  639
+EXTRALIBS += -loleaut32 -lole32 -luuid
  640
+ifdef PLATFORMSDKLIB
  641
+EXTRALIBS += $(PLATFORMSDKLIB)/WbemUuid.Lib
  642
+else
  643
+EXTRALIBS += WbemUuid.Lib
  644
+endif
  645
+endif
  646
+
  647
+ifeq ($(WPA_BUILD_SUPPLICANT),true)
  648
+
  649
+########################
  650
+
  651
+include $(CLEAR_VARS)
  652
+LOCAL_MODULE := wpa_cli
  653
+LOCAL_SHARED_LIBRARIES := libc libcutils
  654
+LOCAL_CFLAGS := $(L_CFLAGS)
  655
+LOCAL_SRC_FILES := $(OBJS_c)
  656
+LOCAL_C_INCLUDES := $(INCLUDES)
  657
+include $(BUILD_EXECUTABLE)
  658
+
  659
+########################
  660
+include $(CLEAR_VARS)
  661
+LOCAL_MODULE := wpa_supplicant
  662
+ifdef CONFIG_DRIVER_CUSTOM
  663
+LOCAL_STATIC_LIBRARIES := libCustomWifi libWifiApi
  664
+endif
  665
+LOCAL_SHARED_LIBRARIES := libc libcutils libcrypto libssl
  666
+LOCAL_CFLAGS := $(L_CFLAGS)
  667
+LOCAL_SRC_FILES := $(OBJS)
  668
+LOCAL_C_INCLUDES := $(INCLUDES)
  669
+include $(BUILD_EXECUTABLE)
  670
+
  671
+########################
  672
+#
  673
+#include $(CLEAR_VARS)
  674
+#LOCAL_MODULE := eapol_test
  675
+#ifdef CONFIG_DRIVER_CUSTOM
  676
+#LOCAL_STATIC_LIBRARIES := libCustomWifi
  677
+#endif
  678
+#LOCAL_SHARED_LIBRARIES := libc libcrypto libssl
  679
+#LOCAL_CFLAGS := $(L_CFLAGS)
  680
+#LOCAL_SRC_FILES := $(OBJS_t)
  681
+#LOCAL_C_INCLUDES := $(INCLUDES)
  682
+#include $(BUILD_EXECUTABLE)
  683
+#
  684
+########################
  685
+
  686
+local_target_dir := $(TARGET_OUT)/etc/wifi
  687
+
  688
+include $(CLEAR_VARS)
  689
+LOCAL_MODULE := wpa_supplicant.conf
  690
+LOCAL_MODULE_TAGS := user development
  691
+LOCAL_MODULE_CLASS := ETC
  692
+LOCAL_MODULE_PATH := $(local_target_dir)
  693
+LOCAL_SRC_FILES := $(LOCAL_MODULE)
  694
+include $(BUILD_PREBUILT)
  695
+
  696
+########################
  697
+
  698
+endif # ifeq ($(WPA_BUILD_SUPPLICANT),true)
  699
+
  700
+include $(CLEAR_VARS)
  701
+LOCAL_MODULE = libwpa_client
  702
+LOCAL_CFLAGS = $(L_CFLAGS)
  703
+LOCAL_SRC_FILES = wpa_ctrl.c os_unix.c
  704
+LOCAL_C_INCLUDES = $(INCLUDES)
  705
+LOCAL_SHARED_LIBRARIES := libcutils
  706
+LOCAL_COPY_HEADERS_TO := libwpa_client
  707
+LOCAL_COPY_HEADERS := wpa_ctrl.h
  708
+include $(BUILD_SHARED_LIBRARY)
340  COPYING
... ...
@@ -0,0 +1,340 @@
  1
+		    GNU GENERAL PUBLIC LICENSE
  2
+		       Version 2, June 1991
  3
+
  4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
  5
+                       51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  6
+ Everyone is permitted to copy and distribute verbatim copies
  7
+ of this license document, but changing it is not allowed.
  8
+
  9
+			    Preamble
  10
+
  11
+  The licenses for most software are designed to take away your
  12
+freedom to share and change it.  By contrast, the GNU General Public
  13
+License is intended to guarantee your freedom to share and change free
  14
+software--to make sure the software is free for all its users.  This
  15
+General Public License applies to most of the Free Software
  16
+Foundation's software and to any other program whose authors commit to
  17
+using it.  (Some other Free Software Foundation software is covered by
  18
+the GNU Library General Public License instead.)  You can apply it to
  19
+your programs, too.
  20
+
  21
+  When we speak of free software, we are referring to freedom, not
  22
+price.  Our General Public Licenses are designed to make sure that you
  23
+have the freedom to distribute copies of free software (and charge for
  24
+this service if you wish), that you receive source code or can get it
  25
+if you want it, that you can change the software or use pieces of it
  26
+in new free programs; and that you know you can do these things.
  27
+
  28
+  To protect your rights, we need to make restrictions that forbid
  29
+anyone to deny you these rights or to ask you to surrender the rights.
  30
+These restrictions translate to certain responsibilities for you if you
  31
+distribute copies of the software, or if you modify it.
  32
+
  33
+  For example, if you distribute copies of such a program, whether
  34
+gratis or for a fee, you must give the recipients all the rights that
  35
+you have.  You must make sure that they, too, receive or can get the
  36
+source code.  And you must show them these terms so they know their
  37
+rights.
  38
+
  39
+  We protect your rights with two steps: (1) copyright the software, and
  40
+(2) offer you this license which gives you legal permission to copy,
  41
+distribute and/or modify the software.
  42
+
  43
+  Also, for each author's protection and ours, we want to make certain
  44
+that everyone understands that there is no warranty for this free
  45
+software.  If the software is modified by someone else and passed on, we
  46
+want its recipients to know that what they have is not the original, so
  47
+that any problems introduced by others will not reflect on the original
  48
+authors' reputations.
  49
+
  50
+  Finally, any free program is threatened constantly by software
  51
+patents.  We wish to avoid the danger that redistributors of a free
  52
+program will individually obtain patent licenses, in effect making the
  53
+program proprietary.  To prevent this, we have made it clear that any
  54
+patent must be licensed for everyone's free use or not licensed at all.
  55
+
  56
+  The precise terms and conditions for copying, distribution and
  57
+modification follow.
  58
+
  59
+		    GNU GENERAL PUBLIC LICENSE
  60
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  61
+
  62
+  0. This License applies to any program or other work which contains
  63
+a notice placed by the copyright holder saying it may be distributed
  64
+under the terms of this General Public License.  The "Program", below,
  65
+refers to any such program or work, and a "work based on the Program"
  66
+means either the Program or any derivative work under copyright law:
  67
+that is to say, a work containing the Program or a portion of it,
  68
+either verbatim or with modifications and/or translated into another
  69
+language.  (Hereinafter, translation is included without limitation in
  70
+the term "modification".)  Each licensee is addressed as "you".
  71
+
  72
+Activities other than copying, distribution and modification are not
  73
+covered by this License; they are outside its scope.  The act of
  74
+running the Program is not restricted, and the output from the Program
  75
+is covered only if its contents constitute a work based on the
  76
+Program (independent of having been made by running the Program).
  77
+Whether that is true depends on what the Program does.
  78
+
  79
+  1. You may copy and distribute verbatim copies of the Program's
  80
+source code as you receive it, in any medium, provided that you
  81
+conspicuously and appropriately publish on each copy an appropriate
  82
+copyright notice and disclaimer of warranty; keep intact all the
  83
+notices that refer to this License and to the absence of any warranty;
  84
+and give any other recipients of the Program a copy of this License
  85
+along with the Program.
  86
+
  87
+You may charge a fee for the physical act of transferring a copy, and
  88
+you may at your option offer warranty protection in exchange for a fee.
  89
+
  90
+  2. You may modify your copy or copies of the Program or any portion
  91
+of it, thus forming a work based on the Program, and copy and
  92
+distribute such modifications or work under the terms of Section 1
  93
+above, provided that you also meet all of these conditions:
  94
+
  95
+    a) You must cause the modified files to carry prominent notices
  96
+    stating that you changed the files and the date of any change.
  97
+
  98
+    b) You must cause any work that you distribute or publish, that in
  99
+    whole or in part contains or is derived from the Program or any
  100
+    part thereof, to be licensed as a whole at no charge to all third
  101
+    parties under the terms of this License.
  102
+
  103
+    c) If the modified program normally reads commands interactively
  104
+    when run, you must cause it, when started running for such
  105
+    interactive use in the most ordinary way, to print or display an
  106
+    announcement including an appropriate copyright notice and a
  107
+    notice that there is no warranty (or else, saying that you provide
  108
+    a warranty) and that users may redistribute the program under
  109
+    these conditions, and telling the user how to view a copy of this
  110
+    License.  (Exception: if the Program itself is interactive but
  111
+    does not normally print such an announcement, your work based on
  112
+    the Program is not required to print an announcement.)
  113
+
  114
+These requirements apply to the modified work as a whole.  If
  115
+identifiable sections of that work are not derived from the Program,
  116
+and can be reasonably considered independent and separate works in
  117
+themselves, then this License, and its terms, do not apply to those
  118
+sections when you distribute them as separate works.  But when you
  119
+distribute the same sections as part of a whole which is a work based
  120
+on the Program, the distribution of the whole must be on the terms of
  121
+this License, whose permissions for other licensees extend to the
  122
+entire whole, and thus to each and every part regardless of who wrote it.
  123
+
  124
+Thus, it is not the intent of this section to claim rights or contest
  125
+your rights to work written entirely by you; rather, the intent is to
  126
+exercise the right to control the distribution of derivative or
  127
+collective works based on the Program.
  128
+
  129
+In addition, mere aggregation of another work not based on the Program
  130
+with the Program (or with a work based on the Program) on a volume of
  131
+a storage or distribution medium does not bring the other work under
  132
+the scope of this License.
  133
+
  134
+  3. You may copy and distribute the Program (or a work based on it,
  135
+under Section 2) in object code or executable form under the terms of
  136
+Sections 1 and 2 above provided that you also do one of the following:
  137
+
  138
+    a) Accompany it with the complete corresponding machine-readable
  139
+    source code, which must be distributed under the terms of Sections
  140
+    1 and 2 above on a medium customarily used for software interchange; or,
  141
+
  142
+    b) Accompany it with a written offer, valid for at least three
  143
+    years, to give any third party, for a charge no more than your
  144
+    cost of physically performing source distribution, a complete
  145
+    machine-readable copy of the corresponding source code, to be
  146
+    distributed under the terms of Sections 1 and 2 above on a medium
  147
+    customarily used for software interchange; or,
  148
+
  149
+    c) Accompany it with the information you received as to the offer
  150
+    to distribute corresponding source code.  (This alternative is
  151
+    allowed only for noncommercial distribution and only if you
  152
+    received the program in object code or executable form with such
  153
+    an offer, in accord with Subsection b above.)
  154
+
  155
+The source code for a work means the preferred form of the work for
  156
+making modifications to it.  For an executable work, complete source
  157
+code means all the source code for all modules it contains, plus any
  158
+associated interface definition files, plus the scripts used to
  159
+control compilation and installation of the executable.  However, as a
  160
+special exception, the source code distributed need not include
  161
+anything that is normally distributed (in either source or binary
  162
+form) with the major components (compiler, kernel, and so on) of the
  163
+operating system on which the executable runs, unless that component
  164
+itself accompanies the executable.
  165
+
  166
+If distribution of executable or object code is made by offering
  167
+access to copy from a designated place, then offering equivalent
  168
+access to copy the source code from the same place counts as
  169
+distribution of the source code, even though third parties are not
  170
+compelled to copy the source along with the object code.
  171
+
  172
+  4. You may not copy, modify, sublicense, or distribute the Program
  173
+except as expressly provided under this License.  Any attempt
  174
+otherwise to copy, modify, sublicense or distribute the Program is
  175
+void, and will automatically terminate your rights under this License.
  176
+However, parties who have received copies, or rights, from you under
  177
+this License will not have their licenses terminated so long as such
  178
+parties remain in full compliance.
  179
+
  180
+  5. You are not required to accept this License, since you have not
  181
+signed it.  However, nothing else grants you permission to modify or
  182
+distribute the Program or its derivative works.  These actions are
  183
+prohibited by law if you do not accept this License.  Therefore, by
  184
+modifying or distributing the Program (or any work based on the
  185
+Program), you indicate your acceptance of this License to do so, and
  186
+all its terms and conditions for copying, distributing or modifying
  187
+the Program or works based on it.
  188
+
  189
+  6. Each time you redistribute the Program (or any work based on the
  190
+Program), the recipient automatically receives a license from the
  191
+original licensor to copy, distribute or modify the Program subject to
  192
+these terms and conditions.  You may not impose any further
  193
+restrictions on the recipients' exercise of the rights granted herein.
  194
+You are not responsible for enforcing compliance by third parties to
  195
+this License.
  196
+
  197
+  7. If, as a consequence of a court judgment or allegation of patent
  198
+infringement or for any other reason (not limited to patent issues),
  199
+conditions are imposed on you (whether by court order, agreement or
  200
+otherwise) that contradict the conditions of this License, they do not
  201
+excuse you from the conditions of this License.  If you cannot
  202
+distribute so as to satisfy simultaneously your obligations under this
  203
+License and any other pertinent obligations, then as a consequence you
  204
+may not distribute the Program at all.  For example, if a patent
  205
+license would not permit royalty-free redistribution of the Program by
  206
+all those who receive copies directly or indirectly through you, then
  207
+the only way you could satisfy both it and this License would be to
  208
+refrain entirely from distribution of the Program.
  209
+
  210
+If any portion of this section is held invalid or unenforceable under
  211
+any particular circumstance, the balance of the section is intended to
  212
+apply and the section as a whole is intended to apply in other
  213
+circumstances.
  214
+
  215
+It is not the purpose of this section to induce you to infringe any
  216
+patents or other property right claims or to contest validity of any
  217
+such claims; this section has the sole purpose of protecting the
  218
+integrity of the free software distribution system, which is
  219
+implemented by public license practices.  Many people have made
  220
+generous contributions to the wide range of software distributed
  221
+through that system in reliance on consistent application of that
  222
+system; it is up to the author/donor to decide if he or she is willing
  223
+to distribute software through any other system and a licensee cannot
  224
+impose that choice.
  225
+
  226
+This section is intended to make thoroughly clear what is believed to
  227
+be a consequence of the rest of this License.
  228
+
  229
+  8. If the distribution and/or use of the Program is restricted in
  230
+certain countries either by patents or by copyrighted interfaces, the
  231
+original copyright holder who places the Program under this License
  232
+may add an explicit geographical distribution limitation excluding
  233
+those countries, so that distribution is permitted only in or among
  234
+countries not thus excluded.  In such case, this License incorporates
  235
+the limitation as if written in the body of this License.
  236
+
  237
+  9. The Free Software Foundation may publish revised and/or new versions
  238
+of the General Public License from time to time.  Such new versions will
  239
+be similar in spirit to the present version, but may differ in detail to
  240
+address new problems or concerns.
  241
+
  242
+Each version is given a distinguishing version number.  If the Program
  243
+specifies a version number of this License which applies to it and "any
  244
+later version", you have the option of following the terms and conditions
  245
+either of that version or of any later version published by the Free
  246
+Software Foundation.  If the Program does not specify a version number of
  247
+this License, you may choose any version ever published by the Free Software
  248
+Foundation.
  249
+
  250
+  10. If you wish to incorporate parts of the Program into other free
  251
+programs whose distribution conditions are different, write to the author
  252
+to ask for permission.  For software which is copyrighted by the Free
  253
+Software Foundation, write to the Free Software Foundation; we sometimes
  254
+make exceptions for this.  Our decision will be guided by the two goals
  255
+of preserving the free status of all derivatives of our free software and
  256
+of promoting the sharing and reuse of software generally.
  257
+
  258
+			    NO WARRANTY
  259
+
  260
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
  261
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
  262
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
  263
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
  264
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  265
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
  266
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
  267
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
  268
+REPAIR OR CORRECTION.
  269
+
  270
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
  271
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
  272
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
  273
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
  274
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
  275
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
  276
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  277
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
  278
+POSSIBILITY OF SUCH DAMAGES.
  279
+
  280
+		     END OF TERMS AND CONDITIONS
  281
+
  282
+	    How to Apply These Terms to Your New Programs
  283
+
  284
+  If you develop a new program, and you want it to be of the greatest
  285
+possible use to the public, the best way to achieve this is to make it
  286
+free software which everyone can redistribute and change under these terms.
  287
+
  288
+  To do so, attach the following notices to the program.  It is safest
  289
+to attach them to the start of each source file to most effectively
  290
+convey the exclusion of warranty; and each file should have at least
  291
+the "copyright" line and a pointer to where the full notice is found.
  292
+
  293
+    <one line to give the program's name and a brief idea of what it does.>
  294
+    Copyright (C) 19yy  <name of author>
  295
+
  296
+    This program is free software; you can redistribute it and/or modify
  297
+    it under the terms of the GNU General Public License as published by
  298
+    the Free Software Foundation; either version 2 of the License, or
  299
+    (at your option) any later version.
  300
+
  301
+    This program is distributed in the hope that it will be useful,
  302
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
  303
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  304
+    GNU General Public License for more details.
  305
+
  306
+    You should have received a copy of the GNU General Public License
  307
+    along with this program; if not, write to the Free Software
  308
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  309
+
  310
+
  311
+Also add information on how to contact you by electronic and paper mail.
  312
+
  313
+If the program is interactive, make it output a short notice like this
  314
+when it starts in an interactive mode:
  315
+
  316
+    Gnomovision version 69, Copyright (C) 19yy name of author
  317
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  318
+    This is free software, and you are welcome to redistribute it
  319
+    under certain conditions; type `show c' for details.
  320
+
  321
+The hypothetical commands `show w' and `show c' should show the appropriate
  322
+parts of the General Public License.  Of course, the commands you use may
  323
+be called something other than `show w' and `show c'; they could even be
  324
+mouse-clicks or menu items--whatever suits your program.
  325
+
  326
+You should also get your employer (if you work as a programmer) or your
  327
+school, if any, to sign a "copyright disclaimer" for the program, if
  328
+necessary.  Here is a sample; alter the names:
  329
+
  330
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
  331
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
  332
+
  333
+  <signature of Ty Coon>, 1 April 1989
  334
+  Ty Coon, President of Vice
  335
+
  336
+This General Public License does not permit incorporating your program into
  337
+proprietary programs.  If your program is a subroutine library, you may
  338
+consider it more useful to permit linking proprietary applications with the
  339
+library.  If this is what you want to do, use the GNU Library General
  340
+Public License instead of this License.
1,023  ChangeLog
... ...
@@ -0,0 +1,1023 @@
  1
+ChangeLog for wpa_supplicant
  2
+
  3
+2008-02-19 - v0.5.10
  4
+	* added support for Makefile builds to include debug-log-to-a-file
  5
+	  functionality (CONFIG_DEBUG_FILE=y and -f<path> on command line)
  6
+	* added network configuration parameter 'frequency' for setting
  7
+	  initial channel for IBSS (adhoc) networks
  8
+	* fixed EAP-SIM and EAP-AKA message parser to validate attribute
  9
+	  lengths properly to avoid potential crash caused by invalid messages
  10
+	* added driver_wext workaround for race condition between scanning and
  11
+	  association with drivers that take very long time to scan all
  12
+	  channels (e.g., madwifi with dual-band cards); wpa_supplicant is now
  13
+	  using a longer hardcoded timeout for the scan if the driver supports
  14
+	  notifications for scan completion (SIOCGIWSCAN event); this helps,
  15
+	  e.g., in cases where wpa_supplicant and madwifi driver ended up in
  16
+	  loop where the driver did not even try to associate
  17
+	* fixed EAP-SIM not to include AT_NONCE_MT and AT_SELECTED_VERSION
  18
+	  attributes in EAP-SIM Start/Response when using fast reauthentication
  19
+	* fixed problems in getting NDIS events from WMI on Windows 2000
  20
+
  21
+2007-12-02 - v0.5.9
  22
+	* fixed an integer overflow issue in the ASN.1 parser used by the
  23
+	  (experimental) internal TLS implementation to avoid a potential
  24
+	  buffer read overflow
  25
+	* fixed a race condition with -W option (wait for a control interface
  26
+	  monitor before starting) that could have caused the first messages to
  27
+	  be lost
  28
+	* updated EAP Generalized Pre-Shared Key (EAP-GPSK) to use the latest
  29
+	  draft (draft-ietf-emu-eap-gpsk-07.txt)
  30
+	* added ctrl_iface RECONNECT (wpa_cli reconnect) command
  31
+	  (like reassociate, but only takes effect if already associated)
  32
+	* fixed a possible race condition between wpa_cli reassociate and
  33
+	  wpa_cli disconnect
  34
+	* return a non-zero exit code from non-interactive wpa_cli if the
  35
+	  command is not recognized or fails
  36
+	* fixed 0.5.8 regressions in BSS selection that prevented wildcard SSID
  37
+	  from being used with non-WPA networks and disabled workaround for
  38
+	  ignoring bogus WPA/RSN IE in non-WPA configuration
  39
+	* fixed OpenSSL TLS wrapper to clear trusted CA list to allow
  40
+	  network blocks to use different trusted CA configurations
  41
+	* fixed a potential EAP state machine loop when mloving from PSK to EAP
  42
+	  configuration without restarting wpa_supplicant
  43
+
  44
+2007-05-28 - v0.5.8
  45
+	* updated driver_wext.c to build with the current wireless-dev.git tree
  46
+	  and net/d80211 changes
  47
+	* updated EAP Generalized Pre-Shared Key (EAP-GPSK) to use the latest
  48
+	  draft (draft-ietf-emu-eap-gpsk-03.txt)
  49
+	* fixed 'make install'
  50
+	* fixed EAP-TTLS implementation not to crash on use of freed memory
  51
+	  if TLS library initialization fails
  52
+	* fixed EAP-AKA Notification processing to allow Notification to be
  53
+	  processed after AKA Challenge response has been sent
  54
+
  55
+2006-12-31 - v0.5.7
  56
+	* updated EAP-SAKE to RFC 4763 and the IANA-allocated EAP type 48
  57
+	* updated EAP-PSK to use the IANA-allocated EAP type 47
  58
+	* fixed EAP-PAX key derivation
  59
+	* fixed EAP-PSK bit ordering of the Flags field
  60
+	* fixed EAP-PEAP/TTLS/FAST to use the correct EAP identifier in
  61
+	  tunnelled identity request (previously, the identifier from the outer
  62
+	  method was used, not the tunnelled identifier which could be
  63
+	  different)
  64
+	* fixed EAP-TTLS AVP parser processing for too short AVP lengths
  65
+	* added support for EAP-FAST authentication with inner methods that
  66
+	  generate MSK (e.g., EAP-MSCHAPv2 that was previously only supported
  67
+	  for PAC provisioning)
  68
+	* fixed dbus ctrl_iface to validate message interface before
  69
+	  dispatching to avoid a possible segfault [Bug 190]
  70
+	* fixed PeerKey key derivation to use the correct PRF label
  71
+	* updated Windows binary build to link against OpenSSL 0.9.8d and
  72
+	  added support for EAP-FAST
  73
+
  74
+2006-11-24 - v0.5.6
  75
+	* added experimental, integrated TLSv1 client implementation with the
  76
+	  needed X.509/ASN.1/RSA/bignum processing (this can be enabled by
  77
+	  setting CONFIG_TLS=internal and CONFIG_INTERNAL_LIBTOMMATH=y in
  78
+	  .config); this can be useful, e.g., if the target system does not
  79
+	  have a suitable TLS library and a minimal code size is required
  80
+	  (total size of this internal TLS/crypto code is bit under 50 kB on
  81
+	  x86 and the crypto code is shared by rest of the supplicant so some
  82
+	  of it was already required; TLSv1/X.509/ASN.1/RSA added about 25 kB)
  83
+	* removed STAKey handshake since PeerKey handshake has replaced it in
  84
+	  IEEE 802.11ma and there are no known deployments of STAKey
  85
+	* updated EAP Generalized Pre-Shared Key (EAP-GPSK) to use the latest
  86
+	  draft (draft-ietf-emu-eap-gpsk-01.txt)
  87
+	* added preliminary implementation of IEEE 802.11w/D1.0 (management
  88
+	  frame protection)
  89
+	  (Note: this requires driver support to work properly.)
  90
+	  (Note2: IEEE 802.11w is an unapproved draft and subject to change.)
  91
+	* fixed Windows named pipes ctrl_iface to not stop listening for
  92
+	  commands if client program opens a named pipe and closes it
  93
+	  immediately without sending a command
  94
+	* fixed USIM PIN status determination for the case that PIN is not
  95
+	  needed (this allows EAP-AKA to be used with USIM cards that do not
  96
+	  use PIN)
  97
+	* added support for reading 3G USIM AID from EF_DIR to allow EAP-AKA to
  98
+	  be used with cards that do not support file selection based on
  99
+	  partial AID
  100
+	* added support for matching the subjectAltName of the authentication
  101
+	  server certificate against multiple name components (e.g.,
  102
+	  altsubject_match="DNS:server.example.com;DNS:server2.example.com")
  103
+	* fixed EAP-SIM/AKA key derivation for re-authentication case (only
  104
+	  affects IEEE 802.1X with dynamic WEP keys)
  105
+	* changed ctrl_iface network configuration 'get' operations to not
  106
+	  return password/key material; if these fields are requested, "*"
  107
+	  will be returned if the password/key is set, but the value of the
  108
+	  parameter is not exposed
  109
+
  110
+2006-08-27 - v0.5.5
  111
+	* added support for building Windows version with UNICODE defined
  112
+	  (wide-char functions)
  113
+	* driver_ndis: fixed static WEP configuration to avoid race condition
  114
+	  issues with some NDIS drivers between association and setting WEP
  115
+	  keys
  116
+	* driver_ndis: added validation for IELength value in scan results to
  117
+	  avoid crashes when using buggy NDIS drivers [Bug 165]
  118
+	* fixed Release|Win32 target in the Visual Studio project files
  119
+	  (previously, only Debug|Win32 target was set properly)
  120
+	* changed control interface API call wpa_ctrl_pending() to allow it to
  121
+	  return -1 on error (e.g., connection lost); control interface clients
  122
+	  will need to make sure that they verify that the value is indeed >0
  123
+	  when determining whether there are pending messages
  124
+	* added an alternative control interface backend for Windows targets:
  125
+	  Named Pipe (CONFIG_CTRL_IFACE=named_pipe); this is now the default
  126
+	  control interface mechanism for Windows builds (previously, UDP to
  127
+	  localhost was used)
  128
+	* changed ctrl_interface configuration for UNIX domain sockets:
  129
+	  - deprecated ctrl_interface_group variable (it may be removed in
  130
+	    future versions)
  131
+	  - allow both directory and group be configured with ctrl_interface
  132
+	    in following format: DIR=/var/run/wpa_supplicant GROUP=wheel
  133
+	  - ctrl_interface=/var/run/wpa_supplicant is still supported for the
  134
+	    case when group is not changed
  135
+	* added support for controlling more than one interface per process in
  136
+	  Windows version
  137
+	* added a workaround for a case where the AP is using unknown address
  138
+	  (e.g., MAC address of the wired interface) as the source address for
  139
+	  EAPOL-Key frames; previously, that source address was used as the
  140
+	  destination for EAPOL-Key frames and in key derivation; now, BSSID is
  141
+	  used even if the source address does not match with it
  142
+	  (this resolves an interoperability issue with Thomson SpeedTouch 580)
  143