X-Git-Url: http://www.project-moonshot.org/gitweb/?p=gssweb.git;a=blobdiff_plain;f=json_gssapi%2Ftest%2FGSSWrapTest.cpp;h=c361dc1a373fa272a506435eb8703be0f528c2f5;hp=684dadbe5215abcc9a7f736cdcf361ea4ebc3c09;hb=455aa320df24be80f5bae58b9038f72532d8d6b2;hpb=de10dcadd7162637a2ba3fa814288dabda1cae81 diff --git a/json_gssapi/test/GSSWrapTest.cpp b/json_gssapi/test/GSSWrapTest.cpp index 684dadb..c361dc1 100644 --- a/json_gssapi/test/GSSWrapTest.cpp +++ b/json_gssapi/test/GSSWrapTest.cpp @@ -85,7 +85,7 @@ void GSSWrapTest::testEmptyCall() GSSBuffer input((char *)"Input message"); gss_qop_t desiredQop = rand(); int desiredConf = rand(); - gss_ctx_id_t desiredContext = (gss_ctx_id_t)rand(); + gss_ctx_id_t desiredContext = (gss_ctx_id_t)( (long)0 | rand() ); /* Error checking */ /* Setup */ @@ -161,7 +161,8 @@ void GSSWrapTest::testEmptyCall() void GSSWrapTest::testConstructorWithJSONObject() { /* Variables */ - GSSContext context( (gss_ctx_id_t)rand(), true ); + GSSContext context( (gss_ctx_id_t)( (long)0 | rand()), + true ); std::string key = GSSContextCache::instance()->store(context); std::string input = "{ \