Changeset ee51f69


Ignore:
Timestamp:
Nov 10, 2009 2:44:40 PM (10 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
42cbd6c1
Parents:
e028450
Message:
  • Addressbook, NamingService?: Allow 516 byte dests that end with AA but not AAAA, so we can permit non-null zero-length certs.
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • apps/addressbook/java/src/addressbook/AddressBook.java

    re028450 ree51f69  
    194194                (! host.endsWith(".console.i2p")) &&
    195195
    196                 ((dest.length() == MIN_DEST_LENGTH && dest.endsWith("AAAA")) ||
     196                // null cert ends with AAAA but other zero-length certs would be AA
     197                ((dest.length() == MIN_DEST_LENGTH && dest.endsWith("AA")) ||
    197198                 (dest.length() > MIN_DEST_LENGTH && dest.length() <= MAX_DEST_LENGTH)) &&
    198199                dest.replaceAll("[a-zA-Z0-9~-]", "").length() == 0
  • core/java/src/net/i2p/client/naming/EepGetNamingService.java

    re028450 ree51f69  
    119119                    key = key.substring(hostname.length() + 1);
    120120                key = key.substring(0, DEST_SIZE);   // catch IndexOutOfBounds exception below
    121                 if (!key.endsWith("AAAA")) {
     121                if (!key.endsWith("AA")) {
    122122                    _log.error("Invalid key: " + url + hostname);
    123123                    return null;
  • core/java/src/net/i2p/client/naming/ExecNamingService.java

    re028450 ree51f69  
    113113                key = key.substring(hostname.length() + 1);
    114114            key = key.substring(0, DEST_SIZE);    // catch IndexOutOfBounds exception below
    115             if (!key.endsWith("AAAA")) {
     115            if (!key.endsWith("AA")) {
    116116                _log.error("Invalid key: " + command);
    117117                return null;
Note: See TracChangeset for help on using the changeset viewer.