Changeset 973aab8 for router


Ignore:
Timestamp:
May 28, 2019 3:12:20 PM (11 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
a3fe746
Parents:
0c7c1945
Message:

Blinding:

  • Blinding only throws IAE
  • Remove context arg from encode()
  • Hook in new form args on /configkeyring
  • Show b33 on /configkeyring
  • Remove support for appended secret in b33
  • Persist cache immediately when storing secret or privkey
  • Fix i2ptunnel for std. ls2
  • Add auth/secret required flags to BlindData?

more to do

File:
1 edited

Legend:

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

    r0c7c1945 r973aab8  
    169169    }
    170170
     171    /**
     172     *  Persists immediately if secret or privkey is non-null
     173     */
    171174    public void addToCache(BlindData bd) {
     175        storeInCache(bd);
     176        if (bd.getSecret() != null || bd.getAuthPrivKey() != null)
     177            store();
     178    }
     179
     180    /**
     181     *  @since 0.9.41 from addToCache()
     182     */
     183    private void storeInCache(BlindData bd) {
    172184        _cache.put(bd.getUnblindedPubKey(), bd);
    173185        _reverseCache.put(bd.getBlindedPubKey(), bd);
     
    258270                    continue;
    259271                try {
    260                     addToCache(fromPersistentString(line));
     272                    storeInCache(fromPersistentString(line));
    261273                    count++;
    262274                } catch (IllegalArgumentException iae) {
Note: See TracChangeset for help on using the changeset viewer.