jdk/test/sun/security/krb5/auto/MSOID2.java
changeset 34687 d302ed125dc9
parent 31474 7b79555b8073
equal deleted inserted replaced
34686:29ea8310a27a 34687:d302ed125dc9
    28  * @compile -XDignore.symbol.file MSOID2.java
    28  * @compile -XDignore.symbol.file MSOID2.java
    29  * @run main/othervm MSOID2
    29  * @run main/othervm MSOID2
    30  */
    30  */
    31 
    31 
    32 import sun.security.jgss.GSSUtil;
    32 import sun.security.jgss.GSSUtil;
       
    33 import sun.security.util.HexDumpEncoder;
    33 
    34 
    34 // The basic krb5 test skeleton you can copy from
    35 // The basic krb5 test skeleton you can copy from
    35 public class MSOID2 {
    36 public class MSOID2 {
    36 
    37 
    37     public static void main(String[] args) throws Exception {
    38     public static void main(String[] args) throws Exception {
    67                         nt[pos-1] = (byte)(nt[pos-1] + 1);
    68                         nt[pos-1] = (byte)(nt[pos-1] + 1);
    68                     }
    69                     }
    69                     nt[pos] = (byte)newLen;
    70                     nt[pos] = (byte)newLen;
    70                 }
    71                 }
    71                 t = nt;
    72                 t = nt;
    72                 new sun.misc.HexDumpEncoder().encodeBuffer(t, System.out);
    73                 new HexDumpEncoder().encodeBuffer(t, System.out);
    73             }
    74             }
    74             if (t != null || !s.x().isEstablished()) t = s.take(t);
    75             if (t != null || !s.x().isEstablished()) t = s.take(t);
    75             if (c.x().isEstablished() && s.x().isEstablished()) break;
    76             if (c.x().isEstablished() && s.x().isEstablished()) break;
    76             first = false;
    77             first = false;
    77         }
    78         }