Ignore:
Timestamp:
Apr 8, 2019 8:37:58 PM (14 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
6237fc8
Parents:
5490de1
Message:

i2ptunnel: Config UI for encrypted ls2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/jsp/editServer.jsi

    r5490de1 rcde5353  
    495495        <tr>
    496496            <td colspan="2">
    497                 <label title="<%=intl._t("Only clients with the encryption key will be able to connect")%>"><input value="1" type="checkbox" id="startOnLoad" name="encrypt"<%=(editBean.getEncrypt(curTunnel) ? " checked=\"checked\"" : "")%> class="tickbox" />
    498                 <%=intl._t("Only allow clients with the encryption key to connect to this server")%></label>
     497                <%
     498                   String curEncryptMode = editBean.getEncryptMode(curTunnel);
     499                  %>
     500                <span class="multiOption"><label title="<%=intl._t("Allow all clients to connect to this service")%>"><input value="0" type="radio" name="encryptMode"<%=(curEncryptMode.equals("0") ? " checked=\"checked\"" : "")%> class="tickbox" />
     501                    <%=intl._t("Disable")%></label></span>
     502                <span class="multiOption"><label title="<%=intl._t("Only clients with the encryption key will be able to connect")%>"><input value="1" type="radio" name="encryptMode"<%=(curEncryptMode.equals("1") ? " checked=\"checked\"" : "")%> class="tickbox" />
     503                    <%=intl._t("Encrypted")%></label></span>
     504                <%
     505                    int curSigType = editBean.getSigType(curTunnel, tunnelType);
     506                    if (curSigType == 7 || curSigType == 11) {
     507                  %>
     508                <span class="multiOption"><label title="<%=intl._t("Prevents snooping by floodfills")%>"><input value="2" type="radio" name="encryptMode"<%=(curEncryptMode.equals("2") ? " checked=\"checked\"" : "")%> class="tickbox" />
     509                    <%=intl._t("Blinded")%></label></span>
     510                <span class="multiOption"><label title="<%=intl._t("Only clients with the password will be able to connect")%>"><input value="3" type="radio" name="encryptMode"<%=(curEncryptMode.equals("3") ? " checked=\"checked\"" : "")%> class="tickbox" />
     511                    <%=intl._t("Blinded with password")%></label></span>
     512                  <%
     513                     if (editBean.isAdvanced()) {
     514                         // TODO, unimplemented
     515                    %>
     516                <span class="multiOption"><label title="<%=intl._t("Only clients with the encryption key will be able to connect")%>"><input value="4" type="radio" name="encryptMode"<%=(curEncryptMode.equals("4") ? " checked=\"checked\"" : "")%> class="tickbox" />
     517                    <%=intl._t("Blinded with shared key")%></label></span>
     518                <span class="multiOption"><label title="<%=intl._t("Only clients with the password and key will be able to connect")%>"><input value="5" type="radio" name="encryptMode"<%=(curEncryptMode.equals("5") ? " checked=\"checked\"" : "")%> class="tickbox" />
     519                    <%=intl._t("Blinded with shared key and password")%></label></span>
     520                <span class="multiOption"><label title="<%=intl._t("Only clients with the encryption key will be able to connect")%>"><input value="6" type="radio" name="encryptMode"<%=(curEncryptMode.equals("6") ? " checked=\"checked\"" : "")%> class="tickbox" />
     521                    <%=intl._t("Blinded with per-user key")%></label></span>
     522                <span class="multiOption"><label title="<%=intl._t("Only clients with the password and key will be able to connect")%>"><input value="7" type="radio" name="encryptMode"<%=(curEncryptMode.equals("7") ? " checked=\"checked\"" : "")%> class="tickbox" />
     523                    <%=intl._t("Blinded with shared password and per-user key")%></label></span>
     524                <%
     525                        } // isAdvanced()
     526                    } // curSigType
     527                  %>
    499528            </td>
    500529        </tr>
     
    519548            </td>
    520549        </tr>
     550
     551        <%
     552            if (curSigType == 7 || curSigType == 11) {
     553          %>
     554        <tr>
     555            <td>
     556                <b><%=intl._t("Blinded Password")%>:</b>
     557                <input type="password" name="nofilter_blindedPassword" title="<%=intl._t("Set password required to access this service")%>" value="<%=editBean.getBlindedPassword(curTunnel)%>" class="freetext password" />
     558            </td><td> </td>
     559        </tr>
     560        <%
     561            } // curSigType
     562          %>
    521563
    522564        <tr>
Note: See TracChangeset for help on using the changeset viewer.