FreeRDP/client/common
Adrian Vollmer 28923ddd75 Fixed parsing of https_proxy environment variable
A proxy URI was parsed both in the function `proxy_read_environment()` in
`libfreerdp/core/proxy.c` and in the function
`freerdp_client_settings_parse_command_line_arguments()` in
`client/common/cmdline.c`. But only the latter was taking into account
that the URI can contain a user and password, which made it impossible
to use a proxy with authentication by just using an environment
variable like `https_proxy`.

The function `proxy_parse_uri()` in `libfreerdp/core/proxy.c` was
clearly not parsing the optional username and password.

This commit moves the code from `client/common/cmdline.c` to
`libfreerdp/common/settings.c` into a function `proxy_parse_uri()` so
redundant code is avoided. This function is then called in both
instances where a proxy URI is parsed.

Some minor adjustment were made to the code, so the `WLog_INFO()`
statement at the end works in both cases, where credentials were either
provided or not. Also, some error messages were added or clarified.

If the parsing of the environment variable fails, we ignore it entirely
(with a warning) and proceed.
2022-04-05 09:22:48 +02:00
..
test Freerdp remove #ifdef HAVE_CONFIG_H 2022-03-03 11:26:48 +01:00
client_rails.c Moved rail application start to client common 2022-02-22 16:43:21 +01:00
client.c Proper use of rdpSettings in client 2022-03-28 15:52:32 +02:00
CMakeLists.txt Fixes various akallabeth remarks 2022-02-24 08:52:25 +01:00
cmdline.c Fixed parsing of https_proxy environment variable 2022-04-05 09:22:48 +02:00
cmdline.h Smartcard tls logon fix (#7709) 2022-03-09 09:09:53 +01:00
file.c Freerdp remove #ifdef HAVE_CONFIG_H 2022-03-03 11:26:48 +01:00
geometry.c Freerdp remove #ifdef HAVE_CONFIG_H 2022-03-03 11:26:48 +01:00
smartcard_cli.c Moved headers to appropriate places 2022-02-24 08:52:25 +01:00