forked from I2P_Developers/i2p.i2p
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
This commit is contained in:
@ -564,13 +564,13 @@ public class IndexBean {
|
||||
Destination d = getDestination(tunnel);
|
||||
if (d != null) {
|
||||
int mode = _helper.getEncryptMode(tunnel);
|
||||
if (mode > 1) {
|
||||
if (mode > 1 && mode < 10) {
|
||||
try {
|
||||
String secret = _helper.getBlindedPassword(tunnel);
|
||||
boolean requireSecret = secret != null && secret.length() > 0 &&
|
||||
(mode == 3 || mode == 5 || mode == 7 || mode == 9);
|
||||
boolean requireAuth = mode >= 4 && mode <= 9;
|
||||
return Blinding.encode(_context, d.getSigningPublicKey(), requireSecret, requireAuth);
|
||||
return Blinding.encode(d.getSigningPublicKey(), requireSecret, requireAuth);
|
||||
} catch (RuntimeException re) {}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user