diff options
author | Jouni Malinen <jouni@codeaurora.org> | 2019-03-11 11:17:29 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2019-03-11 12:09:45 (GMT) |
commit | 0173423f416d416b06fbcb1864cdaeff5f591803 (patch) | |
tree | 8f13e26cd17a3e625b08677b0661799fce395658 /eap_example/eap_example_peer.c | |
parent | cd6a5866eb484c61c0a0b35ff7d33905d75384ba (diff) | |
download | hostap-0173423f416d416b06fbcb1864cdaeff5f591803.zip hostap-0173423f416d416b06fbcb1864cdaeff5f591803.tar.gz hostap-0173423f416d416b06fbcb1864cdaeff5f591803.tar.bz2 |
Use char pointers for EAP configuration parameters without length
These parameters were using the u8*/len style types even though they
were used as char* strings without an explicit length field. Make this
char* instead of u8* to avoid confusion and unnecessary type casting.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'eap_example/eap_example_peer.c')
-rw-r--r-- | eap_example/eap_example_peer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eap_example/eap_example_peer.c b/eap_example/eap_example_peer.c index 2ffc9fc..37b1db2 100644 --- a/eap_example/eap_example_peer.c +++ b/eap_example/eap_example_peer.c @@ -299,7 +299,7 @@ int eap_example_peer_init(void) eap_ctx.eap_config.identity_len = 4; eap_ctx.eap_config.password = (u8 *) os_strdup("password"); eap_ctx.eap_config.password_len = 8; - eap_ctx.eap_config.ca_cert = (u8 *) os_strdup("ca.pem"); + eap_ctx.eap_config.ca_cert = os_strdup("ca.pem"); eap_ctx.eap_config.fragment_size = 1398; os_memset(&eap_cb, 0, sizeof(eap_cb)); |