try read message in java code too

This commit is contained in:
Love Hornquist Astrand
2011-09-25 19:40:02 +02:00
parent c94f299fc8
commit d9dc7c9761

View File

@@ -122,6 +122,19 @@ public class jgssapi_server {
System.err.println("wrap conf failed");
/*
* wrap conf
*/
System.out.println("warp conf");
intoken = new byte[] { 0x66, 0x6f, 0x6f };
outtoken = context.wrap(intoken, 0, intoken.length, new MessageProp(0, true));
putMessage(outStream, outtoken);
outtoken = getMessage(inStream);
context.dispose();
System.exit(0);
}
}