From: <ed...@mx...> - 2003-02-14 12:29:44
|
edwin 03/02/14 07:37:32 Modified: openpgp CHANGELOG.TXT openpgp/src/cryptix/openpgp/provider PGPKeyBundleImpl.java Log: - Fix the clone() method of PGPKeyBundleImpl Revision Changes Path 1.18 +1 -0 projects/openpgp/CHANGELOG.TXT Index: CHANGELOG.TXT =================================================================== RCS file: /home/cryptix-cvs/cvsroot/projects/openpgp/CHANGELOG.TXT,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- CHANGELOG.TXT 9 Feb 2003 21:23:27 -0000 1.17 +++ CHANGELOG.TXT 14 Feb 2003 12:37:31 -0000 1.18 @@ -2,6 +2,7 @@ - Snapshots are now compiled on JDK 1.2, so that they continue to work on that version of the JDK. Due to a Sun API change, a library compiled on JDK 1.3 or higher would not work on JDK 1.2. +- Fixed the clone() method of PGPKeyBundleImpl 20030205 snapshot - API change: added cryptix.pki.ExtendedCertificate, which adds a few common 1.3 +5 -3 projects/openpgp/src/cryptix/openpgp/provider/PGPKeyBundleImpl.java Index: PGPKeyBundleImpl.java =================================================================== RCS file: /home/cryptix-cvs/cvsroot/projects/openpgp/src/cryptix/openpgp/provider/PGPKeyBundleImpl.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- PGPKeyBundleImpl.java 3 Feb 2003 15:04:00 -0000 1.2 +++ PGPKeyBundleImpl.java 14 Feb 2003 12:37:32 -0000 1.3 @@ -1,4 +1,4 @@ -/* $Id: PGPKeyBundleImpl.java,v 1.2 2003/02/03 15:04:00 edwin Exp $ +/* $Id: PGPKeyBundleImpl.java,v 1.3 2003/02/14 12:37:32 edwin Exp $ * * Copyright (C) 1999-2001 The Cryptix Foundation Limited. * All rights reserved. @@ -58,6 +58,7 @@ import java.util.Date; import java.util.HashMap; import java.util.Iterator; +import java.util.Map; import java.util.NoSuchElementException; import java.util.Vector; @@ -67,7 +68,7 @@ * * @author Edwin Woudt <ed...@cr...> * @author Ingo Luetkebohle - * @version $Revision: 1.2 $ + * @version $Revision: 1.3 $ */ public class PGPKeyBundleImpl extends PGPKeyBundle { @@ -208,7 +209,8 @@ Iterator entries = principalsToCertificates.entrySet().iterator(); while (keys.hasNext()) { - p2cClone.put(keys.next(), ((Vector)entries.next()).clone()); + p2cClone.put(keys.next(), + ((Vector)((Map.Entry)entries.next()).getValue()).clone()); } return new PGPKeyBundleImpl(mainkey, privpkt, |