Changeset 9a72c4b for apps


Ignore:
Timestamp:
Apr 10, 2019 7:56:59 PM (12 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
2960156
Parents:
7d4acb62
Message:

encrypt mode checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/IndexBean.java

    r7d4acb62 r9a72c4b  
    567567                try {
    568568                    String secret = _helper.getBlindedPassword(tunnel);
    569                     boolean requireSecret = secret != null && secret.length() > 0;
    570                     return Blinding.encode(_context, d.getSigningPublicKey(), requireSecret, false);
     569                    boolean requireSecret = secret != null && secret.length() > 0 &&
     570                                            (mode == 3 || mode == 5 || mode == 7);
     571                    boolean requireAuth = mode >= 4 && mode <= 7;
     572                    return Blinding.encode(_context, d.getSigningPublicKey(), requireSecret, requireAuth);
    571573                } catch (RuntimeException re) {}
    572574            }
Note: See TracChangeset for help on using the changeset viewer.