Remove calls to GSSCommand constructor from derived classes
authorMark Donnelly <mark@painless-security.com>
Tue, 25 Nov 2014 15:56:27 +0000 (10:56 -0500)
committerMark Donnelly <mark@painless-security.com>
Tue, 25 Nov 2014 15:56:27 +0000 (10:56 -0500)
The GSSCommand class has evolved into little more than an interface, and calls to its constructor from its derived classes were all implemented incorrectly anyway.  This change removes the calls to the constructor from the remaining inheriting classes: GSSAcquireCred, GSSImportName, GSSInitSecContext, and GSSPseudoRandom.

json_gssapi/src/commands/GSSAcquireCred.cpp
json_gssapi/src/commands/GSSImportName.cpp
json_gssapi/src/commands/GSSInitSecContext.cpp
json_gssapi/src/commands/GSSPseudoRandom.cpp

index fd173f0..0b43de8 100644 (file)
@@ -57,7 +57,7 @@ GSSAcquireCred::~GSSAcquireCred()
 GSSAcquireCred::GSSAcquireCred ( 
     JSONObject *params, 
     gss_acq_cred_type fn
-) : GSSCommand ( params )
+)
 {
   /* Variables */
   /* Error checking */
index 6ce0335..8c1e9de 100644 (file)
@@ -105,7 +105,7 @@ GSSImportName::GSSImportName ( gss_imp_name_type fn )
   values = new JSONObject();
 }
 
-GSSImportName::GSSImportName(JSONObject *params, gss_imp_name_type fn) : GSSCommand(params)
+GSSImportName::GSSImportName(JSONObject *params, gss_imp_name_type fn)
 {
   /* Variables */
   /* Error checking */
index eb6554d..c2c93c7 100644 (file)
@@ -308,7 +308,7 @@ JSONObject *GSSInitSecContext::toJSON()
 
 GSSInitSecContext::GSSInitSecContext(
   JSONObject *params, 
-  void *fn) : GSSCommand(params)
+  void *fn)
 {
   zeroOut(false);
   loadParameters(params);
index 160f43d..f9c41e3 100644 (file)
@@ -39,7 +39,7 @@
 #include <datamodel/GSSContext.h>
 
 GSSPseudoRandom::GSSPseudoRandom(JSONObject *params, 
-                                              gss_pseudo_random_type fn) : GSSCommand(params)
+                                              gss_pseudo_random_type fn)
 {
   /* Variables */
   /* Error checking */