mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-07 12:44:03 -05:00
hs20_web_browser() was previously hardcoded to not perform strict TLS server validation. Add an argument to this function to allow that behavior to be configured. The hs20-osu-client users are still using the old behavior, i.e., not validating server certificates, to be usable for testing purposes. Signed-off-by: Jouni Malinen <j@w1.fi>
22 lines
483 B
C
22 lines
483 B
C
/*
|
|
* Hotspot 2.0 client - Web browser
|
|
* Copyright (c) 2013, Qualcomm Atheros, Inc.
|
|
*
|
|
* This software may be distributed under the terms of the BSD license.
|
|
* See README for more details.
|
|
*/
|
|
|
|
#ifndef BROWSER_H
|
|
#define BROWSER_H
|
|
|
|
#ifdef CONFIG_NO_BROWSER
|
|
static inline int hs20_web_browser(const char *url, int ignore_tls)
|
|
{
|
|
return -1;
|
|
}
|
|
#else /* CONFIG_NO_BROWSER */
|
|
int hs20_web_browser(const char *url, int ignore_tls);
|
|
#endif /* CONFIG_NO_BROWSER */
|
|
|
|
#endif /* BROWSER_H */
|