Add dup_binstr() to help common binary string tasks
authorJouni Malinen <j@w1.fi>
Sat, 27 Apr 2013 20:44:59 +0000 (23:44 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 27 Apr 2013 20:44:59 +0000 (23:44 +0300)
commit5e24dc8a4bc8297dee3b95594457a51d36fde00d
tree4a97b61e2333269d577fee2187ea03c4dec603d1
parent8b44ad7e162203db56056503d806246ee6a2ad0f
Add dup_binstr() to help common binary string tasks

There are quite a few places in the current implementation where a nul
terminated string is generated from binary data. Add a helper function
to simplify the code a bit.

Signed-hostap: Jouni Malinen <j@w1.fi>
18 files changed:
src/ap/ieee802_1x.c
src/drivers/driver_ndis.c
src/drivers/driver_wext.c
src/eap_peer/eap_mschapv2.c
src/eap_peer/tncc.c
src/eap_server/eap_sim_db.c
src/eap_server/tncs.c
src/tls/x509v3.c
src/utils/common.c
src/utils/common.h
src/wps/wps_dev_attr.c
src/wps/wps_er.c
src/wps/wps_upnp.c
src/wps/wps_upnp_web.c
wpa_supplicant/config.c
wpa_supplicant/interworking.c
wpa_supplicant/wpa_cli.c
wpa_supplicant/wpa_priv.c