#include "GSSCommand.h"
#include <datamodel/GSSContext.h>
+#include <datamodel/GSSName.h>
+#include <datamodel/GSSOID.h>
#include <gssapi.h>
class GSSCreateSecContextCommand : public GSSCommand
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;
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;
};