Changeset 71f7c71 for router


Ignore:
Timestamp:
Oct 21, 2016 6:21:12 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
b6521ed
Parents:
f5f411b6
Message:

NetDB: Disallow RSA for RI or LS

File:
1 edited

Legend:

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

    rf5f411b6 r71f7c71  
    2020import java.util.Set;
    2121
     22import net.i2p.crypto.SigAlgo;
    2223import net.i2p.crypto.SigType;
    2324import net.i2p.data.Certificate;
     
    10811082                        KeyCertificate kc = c.toKeyCertificate();
    10821083                        SigType type = kc.getSigType();
    1083                         if (type == null || !type.isAvailable()) {
     1084                        if (type == null || !type.isAvailable() || type.getBaseAlgorithm() == SigAlgo.RSA) {
    10841085                            failPermanently(d);
    10851086                            String stype = (type != null) ? type.toString() : Integer.toString(kc.getSigTypeCode());
Note: See TracChangeset for help on using the changeset viewer.