diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2013-05-06 20:04:51 -0500 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2013-05-06 20:04:51 -0500 |
commit | 4de9878790c68282b6d392a5f204bf22a2dd9cdf (patch) | |
tree | 8d6a67a1e6fc56f09d7ce38aed0900602c0fba7c /knetworkmanager-0.8/vpn-plugins | |
parent | 61d612655576a339d68f315687d05dc4f21a4e26 (diff) | |
download | knetworkmanager8-4de9878790c68282b6d392a5f204bf22a2dd9cdf.tar.gz knetworkmanager8-4de9878790c68282b6d392a5f204bf22a2dd9cdf.zip |
Cleanup output clutter.
Diffstat (limited to 'knetworkmanager-0.8/vpn-plugins')
-rw-r--r-- | knetworkmanager-0.8/vpn-plugins/vpnc/src/knetworkmanager-vpnc.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/knetworkmanager-0.8/vpn-plugins/vpnc/src/knetworkmanager-vpnc.cpp b/knetworkmanager-0.8/vpn-plugins/vpnc/src/knetworkmanager-vpnc.cpp index 5f1e47f..b95735b 100644 --- a/knetworkmanager-0.8/vpn-plugins/vpnc/src/knetworkmanager-vpnc.cpp +++ b/knetworkmanager-0.8/vpn-plugins/vpnc/src/knetworkmanager-vpnc.cpp @@ -138,7 +138,7 @@ int VPNCConfig::getFileConfig(char *parameter, char *line) { void VPNCConfig::pcfImport() { const TQString& pcf_file = TQString(_vpncWidget->editPCF->url()); - printf("Asked for PCF import from file %s\n\r", pcf_file.ascii()); + printf("Asked for PCF import from file %s\n", pcf_file.ascii()); int i; FILE *file = fopen ( pcf_file.ascii(), "r" ); @@ -149,33 +149,33 @@ void VPNCConfig::pcfImport() // Parse the line and update global variables (current line in variable "line") if (getFileConfig("Host=", line) == 0) { //strdup(linedata) - printf("Got configuration parameter Host with data %s\n\r", linedata); + printf("Got configuration parameter Host with data %s\n", linedata); _vpncWidget->IPSec_gateway->setText(linedata); } if (getFileConfig("GroupName=", line) == 0) { - printf("Got configuration parameter GroupName with data %s\n\r", linedata); + printf("Got configuration parameter GroupName with data %s\n", linedata); _vpncWidget->IPSec_ID->setText(linedata); } // if (getFileConfig("TcpTunnelingPort=", line) == 0) { -// printf("Got configuration parameter TcpTunnelingPort with data %s\n\r", linedata); +// printf("Got configuration parameter TcpTunnelingPort with data %s\n", linedata); // _vpncWidget->IPSec_ID->setText(linedata); // } if (getFileConfig("NTDomain=", line) == 0) { if (strlen(linedata) > 0) { - printf("Got configuration parameter NTDomain with data %s\n\r", linedata); + printf("Got configuration parameter NTDomain with data %s\n", linedata); _vpncWidget->Domain->setText(linedata); _vpncWidget->chkUseDomain->setChecked(true); } } if (getFileConfig("GroupPwd=", line) == 0) { if (strlen(linedata) > 0) { - printf("Got configuration parameter GroupPwd with data %s\n\r", linedata); + printf("Got configuration parameter GroupPwd with data %s\n", linedata); KMessageBox::information(this, TQString("Your group password is: %1\n\r\n\rYou will need this information when you log on").arg(linedata)); } } if (getFileConfig("enc_GroupPwd=", line) == 0) { if (strlen(linedata) > 0) { - printf("Got configuration parameter enc_GroupPwd with data %s\n\r", linedata); + printf("Got configuration parameter enc_GroupPwd with data %s\n", linedata); // Decrypt the obfusticated password with /usr/lib/vpnc/cisco-decrypt string decryptcommand="/usr/lib/vpnc/cisco-decrypt "; @@ -184,10 +184,10 @@ void VPNCConfig::pcfImport() int i; decryptcommand.append(linedata); - printf("Group password decrypt command: %s\n\r", decryptcommand.c_str()); + printf("Group password decrypt command: %s\n", decryptcommand.c_str()); if ((pipe_decrypt = popen(decryptcommand.c_str(), "r")) == NULL) { - printf("Group password decrypt error\n\r"); + printf("Group password decrypt error\n"); } else { fgets(decrypted_result, 2048, pipe_decrypt); @@ -198,7 +198,7 @@ void VPNCConfig::pcfImport() i=2048; } } - printf("Group password decrypt result: '%s'\n\r", decrypted_result); + printf("Group password decrypt result: '%s'\n", decrypted_result); } KMessageBox::information(this, TQString("Your group password is: %1\n\r\n\rYou will need this information when you log on").arg(decrypted_result)); } @@ -208,7 +208,7 @@ void VPNCConfig::pcfImport() } else { - //printf("[WARN] Unable to open configuration file %s\n\r", pcf_file.ascii()); + //printf("[WARN] Unable to open configuration file %s\n", pcf_file.ascii()); KMessageBox::error(this, i18n("That configuration file does not exist!")); } } @@ -366,10 +366,10 @@ TQMap<TQString, TQString> VPNCAuthentication::getPasswords() int i; decryptcommand.append(_vpncAuth->editGroupPassword->password()); - printf("Group password decrypt command: %s\n\r", decryptcommand.c_str()); + printf("Group password decrypt command: %s\n", decryptcommand.c_str()); if ((pipe_decrypt = popen(decryptcommand.c_str(), "r")) == NULL) { - printf("Group password decrypt error\n\r"); + printf("Group password decrypt error\n"); } else { fgets(decrypted_result, 2048, pipe_decrypt); @@ -380,7 +380,7 @@ TQMap<TQString, TQString> VPNCAuthentication::getPasswords() i=2048; } } - printf("Group password decrypt result: '%s'\n\r", decrypted_result); + printf("Group password decrypt result: '%s'\n", decrypted_result); pwds.insert("IPSec secret", TQString(decrypted_result)); } } |