try read message in java code too
authorLove Hornquist Astrand <lha@h5l.org>
Sun, 25 Sep 2011 17:40:02 +0000 (19:40 +0200)
committerLove Hornquist Astrand <lha@h5l.org>
Sun, 25 Sep 2011 17:40:02 +0000 (19:40 +0200)
appl/test/jgssapi_server.java

index 81c90462c487c83b111bc7924258e6807dd1d19c..6c74d2ad551334cda8655acfe58f1b392893536c 100644 (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);
     }
 }