Changeset 2ec34f4
- Timestamp:
- May 22, 2019 5:01:26 PM (20 months ago)
- Branches:
- master
- Children:
- 3328983
- Parents:
- 7489a64
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
router/java/src/net/i2p/router/client/ClientMessageEventListener.java
r7489a64 r2ec34f4 15 15 import net.i2p.crypto.EncType; 16 16 import net.i2p.crypto.SigType; 17 import net.i2p.data.Base64; 17 18 import net.i2p.data.DatabaseEntry; 18 19 import net.i2p.data.DataHelper; … … 648 649 encls.setSecret(secret); 649 650 } 651 // per-client auth 652 String pk = cfg.getOptions().getProperty("i2cp.leaseSetPrivKey"); 653 if (pk != null) { 654 byte[] priv = Base64.decode(pk); 655 if (priv == null) 656 throw new IllegalArgumentException("bad privkey"); 657 PrivateKey privkey = new PrivateKey(EncType.ECIES_X25519, priv); 658 EncryptedLeaseSet encls = (EncryptedLeaseSet) ls; 659 encls.setClientPrivateKey(privkey); 660 } 650 661 } 651 662 if (_log.shouldDebug())
Note: See TracChangeset
for help on using the changeset viewer.