From 17e63b054cf24c2bddb78536c2eced2116d93b7a Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Sun, 5 Jan 2014 16:38:39 +0000 Subject: [PATCH] add sigtype to i2ptunnel client gui too --- .../src/net/i2p/i2ptunnel/web/IndexBean.java | 2 +- apps/i2ptunnel/jsp/editClient.jsp | 29 +++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/IndexBean.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/IndexBean.java index 620c8fff3d..6dfa4bba89 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/IndexBean.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/IndexBean.java @@ -1215,7 +1215,7 @@ public class IndexBean { "i2cp.reduceIdleTime", "i2cp.reduceQuantity", "i2cp.closeIdleTime", "outproxyUsername", "outproxyPassword", I2PTunnelHTTPClient.PROP_JUMP_SERVERS, - I2PTunnelHTTPClientBase.PROP_AUTH + I2PTunnelHTTPClientBase.PROP_AUTH, I2PClient.PROP_SIGTYPE }; private static final String _otherServerOpts[] = { "i2cp.reduceIdleTime", "i2cp.reduceQuantity", "i2cp.leaseSetKey", "i2cp.accessList", diff --git a/apps/i2ptunnel/jsp/editClient.jsp b/apps/i2ptunnel/jsp/editClient.jsp index 41727d79f0..f9437bd5ba 100644 --- a/apps/i2ptunnel/jsp/editClient.jsp +++ b/apps/i2ptunnel/jsp/editClient.jsp @@ -434,6 +434,35 @@ input.default { width: 1px; height: 1px; visibility: hidden; } </div> <% } %> + <div id="tunnelOptionsField" class="rowItem"> + <label> + <%=intl._("Signature type")%> + (<%=intl._("Experts only!")%>) + </label> + </div> + <div id="hostField" class="rowItem"> + <div id="portField" class="rowItem"> + <label>DSA-SHA1</label> + <input value="0" type="radio" id="startOnLoad" name="sigType" title="Default"<%=(editBean.getSigType(curTunnel)==0 ? " checked=\"checked\"" : "")%> class="tickbox" /> + </div> + <div id="portField" class="rowItem"> + <label>ECDSA-P256</label> + <input value="1" type="radio" id="startOnLoad" name="sigType" title="Advanced users only"<%=(editBean.getSigType(curTunnel)==1 ? " checked=\"checked\"" : "")%> class="tickbox" /> + </div> + <div id="portField" class="rowItem"> + <label>ECDSA-P384</label> + <input value="2" type="radio" id="startOnLoad" name="sigType" title="Advanced users only"<%=(editBean.getSigType(curTunnel)==2 ? " checked=\"checked\"" : "")%> class="tickbox" /> + </div> + <div id="portField" class="rowItem"> + <label>ECDSA-P521</label> + <input value="3" type="radio" id="startOnLoad" name="sigType" title="Advanced users only"<%=(editBean.getSigType(curTunnel)==3 ? " checked=\"checked\"" : "")%> class="tickbox" /> + </div> + </div> + + <div class="subdivider"> + <hr /> + </div> + <% if ("httpclient".equals(tunnelType) || "connectclient".equals(tunnelType) || "sockstunnel".equals(tunnelType) || "socksirctunnel".equals(tunnelType)) { %> <div id="accessField" class="rowItem"> <label><%=intl._("Local Authorization")%>:</label> -- GitLab