X-Git-Url: http://www.project-moonshot.org/gitweb/?p=gssweb.git;a=blobdiff_plain;f=json_gssapi%2Ftest%2FGSSGetMicTest.cpp;h=e0754c3c72639fc3991e7414ec9c6eeb49338a5a;hp=cb50fffc2a1729ed3089483c3bf78ebeb61b9644;hb=455aa320df24be80f5bae58b9038f72532d8d6b2;hpb=de10dcadd7162637a2ba3fa814288dabda1cae81 diff --git a/json_gssapi/test/GSSGetMicTest.cpp b/json_gssapi/test/GSSGetMicTest.cpp index cb50fff..e0754c3 100644 --- a/json_gssapi/test/GSSGetMicTest.cpp +++ b/json_gssapi/test/GSSGetMicTest.cpp @@ -81,7 +81,7 @@ void GSSGetMicTest::testEmptyCall() GSSBuffer input((char *)"Input message"); std::string out("Output Message"); gss_qop_t desiredQop = 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 */ @@ -129,7 +129,8 @@ void GSSGetMicTest::testEmptyCall() void GSSGetMicTest::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 = "{ \