[Webfunds-commits] java/webfunds/client Core.java

Edwin Woudt edwin@cypherpunks.ai
Mon, 7 Aug 2000 19:47:18 -0400 (AST)


edwin       00/08/07 19:47:18

  Modified:    webfunds/client Core.java
  Log:
  Dynamically load the openpgp provider on startup.

Revision  Changes    Path
1.59      +7 -1      java/webfunds/client/Core.java

Index: Core.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/Core.java,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -r1.58 -r1.59
--- Core.java	2000/07/30 03:38:56	1.58
+++ Core.java	2000/08/07 23:47:17	1.59
@@ -1,4 +1,4 @@
-/* $Id: Core.java,v 1.58 2000/07/30 03:38:56 gelderen Exp $
+/* $Id: Core.java,v 1.59 2000/08/07 23:47:17 edwin Exp $
  *
  * Copyright (c) Systemics Inc. 1995-2000 on behalf of
  * The WebFunds Development Team.  All rights reserved.
@@ -8,9 +8,12 @@
 
 import java.io.*;
 import java.beans.*;
+import java.security.Security;
 import java.security.SecureRandom;
 import java.util.*;
 
+import webfunds.openpgp.provider.CryptixOpenPGP;
+
 import webfunds.utils.Debug;
 import webfunds.utils.MultiPrintStream;
 import webfunds.utils.NetWatcher;
@@ -66,6 +69,9 @@
          * possible. (I.e. on UN*X.)
          */
         this.random = SecureRandomHack.getInstance();
+
+        // dynamically load the cryptix openpgp provider
+        Security.addProvider(new CryptixOpenPGP());
 
         // read and set Properties
         Properties props = System.getProperties();