X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=json_gssapi%2Ftest%2FGSSGetMicTest.cpp;h=cb50fffc2a1729ed3089483c3bf78ebeb61b9644;hb=623898cf5e7de26047d332ad37ecaf61f4d50217;hp=1273761b9ba21bed410f98364ab8f8eeaa4706d4;hpb=01cef7affb302d11a7341970122d23d3533bb84e;p=gssweb.git diff --git a/json_gssapi/test/GSSGetMicTest.cpp b/json_gssapi/test/GSSGetMicTest.cpp index 1273761..cb50fff 100644 --- a/json_gssapi/test/GSSGetMicTest.cpp +++ b/json_gssapi/test/GSSGetMicTest.cpp @@ -31,10 +31,8 @@ mock_get_mic( { /* Error checking */ /* Variables */ - std::string buffer; /* Setup */ - buffer = MockGetMic::outputToken.toString(); /* Main */ // Copy our input from the appropriate parameters to MockGetMic @@ -45,8 +43,7 @@ mock_get_mic( // copy our output to the appropriate parameters *minor_status = MockGetMic::minor_status; - message_token->length = buffer.length(); - message_token->value = (void *)buffer.c_str(); + *message_token = *MockGetMic::outputToken.toGss(); /* Cleanup */ /* return */