summaryrefslogtreecommitdiffstats
path: root/src/Core/RequestHandler
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2008-09-07 23:42:04 +0200
committerMatthias Schiffer <matthias@gamezock.de>2008-09-07 23:42:04 +0200
commit406510059972fdbfb14bc8985980f52c655d5946 (patch)
treea71d11a0347d39d60c33103eb7ff608b547ff123 /src/Core/RequestHandler
parentce10864739759813d7376e447fae96abef23598d (diff)
downloadmad-406510059972fdbfb14bc8985980f52c655d5946.tar
mad-406510059972fdbfb14bc8985980f52c655d5946.zip
Einige Requests und Pakettypen umbenannt
Diffstat (limited to 'src/Core/RequestHandler')
-rw-r--r--src/Core/RequestHandler/GSSAPIAuthRequestHandler.h (renamed from src/Core/RequestHandler/CertificateRequestHandler.h)18
-rw-r--r--src/Core/RequestHandler/Makefile.am2
-rw-r--r--src/Core/RequestHandler/Makefile.in2
3 files changed, 11 insertions, 11 deletions
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: