to match changes to GSSInitSecContext.h
GSSCreateSecContextTest::testConstructor()
{
GSSInitSecContext cmd = GSSInitSecContext();
GSSCreateSecContextTest::testConstructor()
{
GSSInitSecContext cmd = GSSInitSecContext();
- void *cmdFn;
- void *GSSFn;
+ init_sec_context_type cmdFn;
+ init_sec_context_type GSSFn;
cmdFn = cmd.getGSSFunction();
cmdFn = cmd.getGSSFunction();
- GSSFn = (void *)&gss_init_sec_context;
+ GSSFn = &gss_init_sec_context;
CPPUNIT_ASSERT_MESSAGE(
"The default constructor for GSSCreateSecContextCommand should assign the function gss_init_sec_context",
cmdFn == GSSFn);
CPPUNIT_ASSERT_MESSAGE(
"The default constructor for GSSCreateSecContextCommand should assign the function gss_init_sec_context",
cmdFn == GSSFn);
GSSInitSecContext cmd = GSSInitSecContext(
&json,
GSSInitSecContext cmd = GSSInitSecContext(
&json,
);
const char *from_cmd = cmd.getTargetDisplayName();
);
const char *from_cmd = cmd.getTargetDisplayName();
{
gss_ctx_id_t expectedResult, expectedArgument;
{
gss_ctx_id_t expectedResult, expectedArgument;
- GSSInitSecContext cmd ((void *)&mock_init_sec);
+ GSSInitSecContext cmd (&mock_init_sec);
/* Set expectations on what the GSS function will be called with */
cmd.time_req = rand() % 1024;
/* Set expectations on what the GSS function will be called with */
cmd.time_req = rand() % 1024;
void GSSCreateSecContextTest::testJSONMarshal()
{
/* Variables */
void GSSCreateSecContextTest::testJSONMarshal()
{
/* Variables */
- GSSInitSecContext cmd ((void *)&mock_init_sec);
+ GSSInitSecContext cmd (&mock_init_sec);
JSONObject *result;
GSSContextCache *cache = GSSContextCache::instance();
GSSContext context;
JSONObject *result;
GSSContextCache *cache = GSSContextCache::instance();
GSSContext context;