Changeset 7489a64 for router


Ignore:
Timestamp:
May 22, 2019 4:30:32 PM (10 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
2ec34f4
Parents:
06fa817
Message:

NetDB: Set secret and privkey before decrypting encls2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/networkdb/kademlia/KademliaNetworkDatabaseFacade.java

    r06fa817 r7489a64  
    944944                    encls.setSigningKey(bd.getUnblindedPubKey());
    945945                }
     946                // secret
     947                String secret = bd.getSecret();
     948                if (secret != null)
     949                    encls.setSecret(secret);
     950                // per-client auth
     951                if (bd.getAuthType() != BlindData.AUTH_NONE)
     952                    encls.setClientPrivateKey(bd.getAuthPrivKey());
    946953            } else {
    947954                if (_log.shouldWarn())
Note: See TracChangeset for help on using the changeset viewer.