equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
239 * If true, will check if TGS-REQ contains a non-null addresses field. |
239 * If true, will check if TGS-REQ contains a non-null addresses field. |
240 */ |
240 */ |
241 CHECK_ADDRESSES, |
241 CHECK_ADDRESSES, |
242 }; |
242 }; |
243 |
243 |
244 static { |
|
245 if (System.getProperty("jdk.net.hosts.file") == null) { |
|
246 String hostsFileName |
|
247 = System.getProperty("test.src", ".") + "/TestHosts"; |
|
248 System.setProperty("jdk.net.hosts.file", hostsFileName); |
|
249 } |
|
250 } |
|
251 |
|
252 /** |
244 /** |
253 * A standalone KDC server. |
245 * A standalone KDC server. |
254 */ |
246 */ |
255 public static void main(String[] args) throws Exception { |
247 public static void main(String[] args) throws Exception { |
256 int port = args.length > 0 ? Integer.parseInt(args[0]) : 0; |
248 int port = args.length > 0 ? Integer.parseInt(args[0]) : 0; |