diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-07-07 22:03:24 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-07-07 22:03:24 +0200 |
commit | 0269bfa309f85aaf05f1451196ad2bd8c0b150ac (patch) | |
tree | e8b70f8c1a08ec06053d81571897b1af04b696ac /src | |
parent | eb46d942e5ecf50ff9f85ee62ea2fa454aa228fa (diff) | |
download | pianobar-0269bfa309f85aaf05f1451196ad2bd8c0b150ac.tar.gz pianobar-0269bfa309f85aaf05f1451196ad2bd8c0b150ac.tar.bz2 pianobar-0269bfa309f85aaf05f1451196ad2bd8c0b150ac.zip |
SSL control proxy issue workaround
Some proxies refuse SSL connections. Make them usable by adding an option
which disables the usage of SSL for the login.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 4 | ||||
-rw-r--r-- | src/pianobar.1 | 8 | ||||
-rw-r--r-- | src/settings.c | 6 | ||||
-rw-r--r-- | src/settings.h | 1 |
4 files changed, 17 insertions, 2 deletions
@@ -267,8 +267,8 @@ int main (int argc, char **argv) { BarTermSetBuffer (0); BarUiMsg ("Login... "); - if (PianoConnect (&ph, bsettings.username, bsettings.password) != - PIANO_RET_OK) { + if (PianoConnect (&ph, bsettings.username, bsettings.password, + !bsettings.disableSecureLogin) != PIANO_RET_OK) { BarUiMsg ("Error.\n"); return 0; } else { diff --git a/src/pianobar.1 b/src/pianobar.1 index 99c04e7..500b7ae 100644 --- a/src/pianobar.1 +++ b/src/pianobar.1 @@ -99,6 +99,14 @@ needs an IP address specified in .B control_proxy .TP +.B disable_secure_login = {1,0} +If you have problems when loggin in and you know your control proxy definitively +works try setting this option to +.B 1. +It disables the SSL secured login. Beware! +.I Your password will be sent as plain-text! + +.TP .B lastfm_user = your_username If you want to send your played song to last.fm set this to your last.fm username. diff --git a/src/settings.c b/src/settings.c index 3a0ed4a..a691607 100644 --- a/src/settings.c +++ b/src/settings.c @@ -113,6 +113,12 @@ void BarSettingsRead (BarSettings_t *settings) { settings->lastfmPassword = strdup (val); } else if (strcmp ("lastfm_scrobble_percent", key) == 0) { settings->lastfmScrobblePercent = atoi (val); + } else if (strcmp ("disable_secure_login", key) == 0) { + if (strcmp (val, "1") == 0) { + settings->disableSecureLogin = 1; + } else { + settings->disableSecureLogin = 0; + } } } diff --git a/src/settings.h b/src/settings.h index b3604fa..b9617c4 100644 --- a/src/settings.h +++ b/src/settings.h @@ -34,6 +34,7 @@ struct BarSettings { char *lastfmPassword; unsigned char lastfmScrobblePercent; char enableScrobbling; + char disableSecureLogin; }; typedef struct BarSettings BarSettings_t; |