summaryrefslogtreecommitdiffstats
path: root/src/Common/Requests
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2008-09-17 22:18:09 +0200
committerMatthias Schiffer <matthias@gamezock.de>2008-09-17 22:18:09 +0200
commitd84a3b91346038bf55d7111462dab42a0a26445d (patch)
tree1e9eca4eba2a8da8f616815e56385725310fe148 /src/Common/Requests
parentcccc512e2565b7b96b765bfb873f0fb635bd23e1 (diff)
downloadmad-d84a3b91346038bf55d7111462dab42a0a26445d.tar
mad-d84a3b91346038bf55d7111462dab42a0a26445d.zip
Logger f?r Log-Messages benutzen
Diffstat (limited to 'src/Common/Requests')
-rw-r--r--src/Common/Requests/GSSAPIAuthRequest.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Common/Requests/GSSAPIAuthRequest.cpp b/src/Common/Requests/GSSAPIAuthRequest.cpp
index 53d969f..05fb373 100644
--- a/src/Common/Requests/GSSAPIAuthRequest.cpp
+++ b/src/Common/Requests/GSSAPIAuthRequest.cpp
@@ -18,12 +18,11 @@
*/
#include "GSSAPIAuthRequest.h"
+#include "../Logger.h"
#include <Net/Connection.h>
#include <cstring>
-#include <iostream>
-
namespace Mad {
namespace Common {
namespace Requests {
@@ -58,7 +57,7 @@ void GSSAPIAuthRequest::sendRequest(Net::Connection *connection, uint16_t reques
0, GSS_C_NO_CHANNEL_BINDINGS, GSS_C_NO_BUFFER, 0, &buffer, 0, 0);
if(majStat == GSS_S_COMPLETE) {
- std::cout << "GSS context established." << std::endl;
+ Logger::log(Logger::VERBOSE, "GSS context established.");
gssContinue = false;
}
else if(majStat != GSS_S_CONTINUE_NEEDED) {
@@ -96,7 +95,7 @@ void GSSAPIAuthRequest::handlePacket(Net::Connection *connection, const Net::Pac
std::free(recvBuffer.value);
if(majStat == GSS_S_COMPLETE) {
- std::cout << "GSS context established." << std::endl;
+ Logger::log(Logger::VERBOSE, "GSS context established.");
gssContinue = false;
}
else if(majStat != GSS_S_CONTINUE_NEEDED) {
@@ -129,7 +128,7 @@ void GSSAPIAuthRequest::handlePacket(Net::Connection *connection, const Net::Pac
return;
connection->setAuthenticated();
- std::cout << "Authentication complete." << std::endl;
+ Logger::log(Logger::VERBOSE, "Authentication complete.");
majStat = gss_delete_sec_context(&minStat, &gssContext, &sendBuffer);