forked from I2P_Developers/i2p.i2p
2004-09-06 jrandom
* Address a race condition in the key management code that would manifest itself as a corrupt router identity. * Properly clear old transport addresses from being displayed on the old console after soft restarts. * Properly refuse to load the client applications more than once in the same JVM. * Added support for a graceful restart (a graceful shutdown followed by a full JVM restart - useful for restarting client apps). * More defensive programming, HTML cleanup, logging * wrapper.config cleanup of duplicate lines
This commit is contained in:
@ -221,6 +221,7 @@ public class RouterInfo extends DataStructureImpl {
|
||||
if (bytes == null) throw new DataFormatException("Not enough data to sign");
|
||||
// now sign with the key
|
||||
Signature sig = DSAEngine.getInstance().sign(bytes, key);
|
||||
if (sig == null) throw new DataFormatException("Not enough data to sign, or other signature failure");
|
||||
setSignature(sig);
|
||||
//_log.debug("Signed " + SHA256Generator.getInstance().calculateHash(bytes).toBase64() + " with " + key);
|
||||
//_log.debug("verify ok? " + DSAEngine.getInstance().verifySignature(sig, bytes, getIdentity().getSigningPublicKey()));
|
||||
|
Reference in New Issue
Block a user