2 * Copyright (c) 2014 <copyright holder> <email>
4 * For license details, see the LICENSE file in the root of this project.
8 #ifndef GSSCREATESECCONTEXTCOMMAND_H
9 #define GSSCREATESECCONTEXTCOMMAND_H
11 #include "GSSCommand.h"
14 class GSSCreateSecContextCommand : public GSSCommand
19 OM_uint32 minor_status;
20 gss_ctx_id_t context_handle;
21 gss_name_t target_name;
25 gss_buffer_desc input_token;
26 gss_OID actual_mech_type;
27 gss_buffer_desc output_token;
34 GSSCreateSecContextCommand(void *fn = (void *)&gss_init_sec_context);
35 GSSCreateSecContextCommand(JSONObject *params, void *fn = (void *)&gss_init_sec_context);
37 bool loadParameters(JSONObject *params);
38 bool zeroOut(bool initialized = true);
42 OM_uint32 getReqFlags() { return req_flags; }
43 OM_uint32 getTimeReq() { return time_req; }
44 gss_ctx_id_t getContextHandle() { return context_handle; }
45 void *getGSSFunction() { return function; }
48 const char * getTargetDisplayName();
49 const char * getMechType();
50 const char * getActualMechType();
54 const char * oidToStr(gss_OID oid);
57 #endif // GSSCREATESECCONTEXTCOMMAND_H