diff options
Diffstat (limited to 'src/Core')
-rw-r--r-- | src/Core/ConnectionManager.cpp | 4 | ||||
-rw-r--r-- | src/Core/RequestHandler/GSSAPIAuthRequestHandler.h (renamed from src/Core/RequestHandler/CertificateRequestHandler.h) | 18 | ||||
-rw-r--r-- | src/Core/RequestHandler/Makefile.am | 2 | ||||
-rw-r--r-- | src/Core/RequestHandler/Makefile.in | 2 |
4 files changed, 13 insertions, 13 deletions
diff --git a/src/Core/ConnectionManager.cpp b/src/Core/ConnectionManager.cpp index 62eed53..2b7c8d1 100644 --- a/src/Core/ConnectionManager.cpp +++ b/src/Core/ConnectionManager.cpp @@ -19,7 +19,7 @@ #include "ConnectionManager.h" #include "ConfigManager.h" -#include "RequestHandler/CertificateRequestHandler.h" +#include "RequestHandler/GSSAPIAuthRequestHandler.h" #include <Net/ServerConnection.h> #include <Net/Packet.h> #include <Net/Listener.h> @@ -53,7 +53,7 @@ void ConnectionManager::refreshPollfds() { } ConnectionManager::ConnectionManager(const ConfigManager& configManager) : requestManager(true) { - requestManager.registerPacketType<RequestHandler::CertificateRequestHandler>(Net::Packet::TYPE_CERT_REQ); + requestManager.registerPacketType<RequestHandler::GSSAPIAuthRequestHandler>(Net::Packet::TYPE_GSSAPI_AUTH); const std::vector<Net::IPAddress> &listenerAddresses = configManager.getListenerAddresses(); diff --git a/src/Core/RequestHandler/CertificateRequestHandler.h b/src/Core/RequestHandler/GSSAPIAuthRequestHandler.h index b524ecd..204af6f 100644 --- a/src/Core/RequestHandler/CertificateRequestHandler.h +++ b/src/Core/RequestHandler/GSSAPIAuthRequestHandler.h @@ -1,7 +1,7 @@ /* - * CertificateRequestHandler.h + * GSSAPIAuthRequestHandler.h * - * Copyright (C) 2008 Matthias Schiffer + * Copyright (C) 2008 Matthias Schiffer <matthias@gamezock.de> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -17,8 +17,8 @@ * with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef MAD_CORE_REQUESTHANDLER_CERTIFICATEREQUESTHANDLER_H_ -#define MAD_CORE_REQUESTHANDLER_CERTIFICATEREQUESTHANDLER_H_ +#ifndef MAD_CORE_REQUESTHANDLER_GSSAPIAUTHREQUESTHANDLER_H_ +#define MAD_CORE_REQUESTHANDLER_GSSAPIAUTHREQUESTHANDLER_H_ #include <Common/RequestHandler.h> #include <Net/Packet.h> @@ -31,20 +31,20 @@ namespace Mad { namespace Core { namespace RequestHandler { -class CertificateRequestHandler : public Common::RequestHandler { +class GSSAPIAuthRequestHandler : public Common::RequestHandler { private: gss_ctx_id_t gssContext; bool gssContinue; public: - CertificateRequestHandler() : gssContext(GSS_C_NO_CONTEXT), gssContinue(true) {} + GSSAPIAuthRequestHandler() : gssContext(GSS_C_NO_CONTEXT), gssContinue(true) {} virtual bool handlePacket(Net::Connection *connection, const Net::Packet &packet) { if(isFinished()) return false; - if(packet.getType() != Net::Packet::TYPE_CERT_REQ) + if(packet.getType() != Net::Packet::TYPE_GSSAPI_AUTH) return false; // TODO Logging OM_uint32 majStat, minStat; @@ -68,7 +68,7 @@ class CertificateRequestHandler : public Common::RequestHandler { return false; } - if(!connection->send(Net::Packet(Net::Packet::TYPE_CERT_REP, packet.getRequestId(), sendBuffer.value, sendBuffer.length))) { + if(!connection->send(Net::Packet(Net::Packet::TYPE_GSSAPI_AUTH, packet.getRequestId(), sendBuffer.value, sendBuffer.length))) { gss_release_buffer(&minStat, &sendBuffer); return false; } @@ -89,4 +89,4 @@ class CertificateRequestHandler : public Common::RequestHandler { } } -#endif /* MAD_CORE_REQUESTHANDLER_CERTIFICATEREQUESTHANDLER_H_ */ +#endif /* MAD_CORE_REQUESTHANDLER_GSSAPIAUTHREQUESTHANDLER_H_ */ diff --git a/src/Core/RequestHandler/Makefile.am b/src/Core/RequestHandler/Makefile.am index c2ff8a1..9de7011 100644 --- a/src/Core/RequestHandler/Makefile.am +++ b/src/Core/RequestHandler/Makefile.am @@ -1 +1 @@ -noinst_HEADERS = CertificateRequestHandler.h +noinst_HEADERS = GSSAPIAuthRequestHandler.h diff --git a/src/Core/RequestHandler/Makefile.in b/src/Core/RequestHandler/Makefile.in index 28714f2..d2163f0 100644 --- a/src/Core/RequestHandler/Makefile.in +++ b/src/Core/RequestHandler/Makefile.in @@ -162,7 +162,7 @@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -noinst_HEADERS = CertificateRequestHandler.h +noinst_HEADERS = GSSAPIAuthRequestHandler.h all: all-am .SUFFIXES: |