equal
deleted
inserted
replaced
56 |
56 |
57 public static void initStatic() { |
57 public static void initStatic() { |
58 boolean allowed = false; |
58 boolean allowed = false; |
59 try { |
59 try { |
60 Config cfg = Config.getInstance(); |
60 Config cfg = Config.getInstance(); |
61 String temp = cfg.get("libdefaults", "allow_weak_crypto"); |
61 allowed = cfg.getBooleanObject("libdefaults", "allow_weak_crypto") |
62 if (temp != null && temp.equals("true")) allowed = true; |
62 == Boolean.TRUE; |
63 } catch (Exception exc) { |
63 } catch (Exception exc) { |
64 if (DEBUG) { |
64 if (DEBUG) { |
65 System.out.println ("Exception in getting allow_weak_crypto, " + |
65 System.out.println ("Exception in getting allow_weak_crypto, " + |
66 "using default value " + |
66 "using default value " + |
67 exc.getMessage()); |
67 exc.getMessage()); |