A bunch of changes as the command line now works.
[gssweb.git] / json_gssapi / src / commands / GSSCreateSecContextCommand.h
index 364d69e..6593afe 100644 (file)
@@ -10,6 +10,8 @@
 
 #include "GSSCommand.h"
 #include <datamodel/GSSContext.h>
+#include <datamodel/GSSName.h>
+#include <datamodel/GSSOID.h>
 #include <gssapi.h>
 
 class GSSCreateSecContextCommand : public GSSCommand
@@ -20,11 +22,9 @@ public:
     OM_uint32 minor_status;
     gss_ctx_id_t context_handle;
     gss_name_t target_name;
-    gss_OID mech_type;
     OM_uint32 req_flags;
     OM_uint32 time_req;
     gss_buffer_desc input_token;
-    gss_OID actual_mech_type;
     gss_buffer_desc output_token;
     OM_uint32 ret_flags;
     OM_uint32 time_rec;
@@ -44,16 +44,18 @@ public:
     OM_uint32 getTimeReq() { return time_req; }
     gss_ctx_id_t getContextHandle() { return context_handle; }
     void *getGSSFunction() { return function; }
+    GSSOID getMechType() { return mechType; };
+    GSSOID getActualMechType() { return actualMechType; };
     
     // complex accessors
     const char * getTargetDisplayName();
-    const char * getMechType();
-    const char * getActualMechType();
     
 private:
     void *function;
-    const char * oidToStr(gss_OID oid);
     GSSContext context;
+    GSSOID mechType;
+    GSSOID actualMechType;
+    GSSName targetName;
     std::string contextKey;
 };