Commit Graph

138 Commits

Author SHA1 Message Date
zzz
d5c2f6b8e3 SecurityManager:
Remove hardcoded salt; generate if necessary
Constant-time password hash comparison
Comment out unused certificate methods
AuthToken: finals
2018-02-02 13:09:47 +00:00
zzz
e58129e46a ConfigurationManager:
Use DataHelper for load/store
Synch everything
Only save if something changed
Comment out unused methods

Implement destroy() for servlet
Fix allowedhosts config
2018-02-02 11:56:30 +00:00
zzz
6aff0344a5 Update jsonrpc2 libs.
All are licensed Apache 2.0.
Overview:
http://software.dzhuvinov.com/json-rpc-2.0-server.html
Previous versions unknown, no version in checkin comments,
but were checked in 2011-06-13.
Not clear how much actually changed because
the sources here were reformatted on 2016-01-20.
This reverts a previous change to JSONRPC2Error.java that made two fields protected.

Jars from maven central:
jsonrpc2-base-1.38.1-sources.jar  22-Oct-2017
jsonrpc2-server-1.11-sources.jar  16-Mar-2015

Smart Mini files (net.minidev.json) from:
https://github.com/netplex/json-smart-v1
commit 51e1641 on Oct 23, 2015
Maven jar is 1.0.8 but we need at least 1.0.9
Based on the @since lines, this is at least version 1.3.1
Removed as unneeded: JSONNavi.java, JSONStyleIdent.java
Previous version was org.json.simple

Fix up use of deprecated methods in our code
Remove duplicate method overrides in our JSONRPC2ExtendedError.java
2018-02-01 22:53:25 +00:00
zzz
22aad9836f Add rebinding protection 2018-02-01 18:15:17 +00:00
zzz
2c9042ef7d Add version to GET info 2018-02-01 17:38:22 +00:00
zzz
16a5e8b884 Pass ctx to SecurityManager
Use ctx sha256
Add / to request path so it will work with the war
2018-02-01 17:34:08 +00:00
zzz
9edc0ae53e - Build fix
- Add war target
- Add override.properties for compiler args
- Change GET message and mime type
2018-02-01 16:36:49 +00:00
zzz
37251cbcb3 - Fixes for Jetty 9
- Convert I2PControlController to RouterApp
- Remove all static references
- Don't stop all running threads on shutdown
- Set restrictive permissions on configuration file
- Disable changing host/port/password via RPC
- Use I2P lib for setting supported ciphers
- Update makeplugin.sh
- Change signer and update URLs in plugin.config
- Don't include license, readme, and clients.config in the update
- Bundle i2pcontrol.py test script
- Make constants static and final
- Comment out unused methods
- Remove tabs in build.xml
- Remove unused dependencies in build.xml
- Clean up imports
2018-02-01 15:14:03 +00:00
zzz
44263d9b26 TODO update 2018-01-22 17:25:48 +00:00
zzz
04ac5b0bef update javac arguments 2017-03-04 15:40:23 +00:00
dev
af5d980154 Formatted format.sh 2016-01-20 18:07:31 +00:00
dev
442fb6aef4 Formatted .java files. 2016-01-20 18:04:46 +00:00
dev
be523f5e35 Added formatting support ot ant script. 2016-01-20 18:04:18 +00:00
dev
2048781b8f Moved actions around between targets. 2016-01-20 17:26:56 +00:00
dev
08b125f5e4 Fixed #1524, check type of input parameter. 2016-01-18 21:10:26 +00:00
dev
df5a9a60a5 Added support for adding and deleting Advanced Config Settings. 2016-01-18 20:44:17 +00:00
dev
03bf21ee52 Fixed #1607, where i2pcontrol is unable to switch to a new port. 2016-01-18 17:28:55 +00:00
dev
82d294b3a7 Added 'local' target to build script for faster plugin development. 2016-01-18 17:12:15 +00:00
dev
26792beb5a Switched to using the KeyStoreUtil implementation of SSL certificate generation. 2015-09-22 01:29:50 +00:00
869d302b28 Upgraded to support su3 from scripts in i2p.scripts. 2015-07-31 00:41:02 +00:00
dev
f9b3dd8aa4 Fixed i2p router version dependency 2015-07-30 18:13:46 +00:00
dev
c93203b914 Prevent NPE while shutting down after failing to start. 2015-07-30 16:49:46 +00:00
dev
1810e89a45 Fixed Java >=1.8 compatability on Raspberry Pi JREs 2015-06-28 18:29:55 +00:00
dev
45bc108e94 Fix i2pcontrol.listen.port to send exception string on failure. 2015-06-23 03:31:10 +00:00
dev
27fa1b31b0 Fix i2pcontrol.listen.port to reset to failing new ports to the old port. 2015-06-23 03:24:48 +00:00
dev
b2f23cdaad Return IP-address, not byte[]. 2015-06-09 18:43:09 +00:00
dev
44973255d8 Fixed JSON-RPC return values. 2015-06-09 18:41:40 +00:00
dev
18da573825 Bumped version to 0.1.0. 2015-06-09 17:32:18 +00:00
dev
969f6328fb Use saveConfig() in an atomic manner. 2015-06-09 15:05:14 +00:00
dev
0b011eaa72 Fail gracefully if ClientAppManager or UpdateManager is missing. 2015-06-09 14:26:10 +00:00
dev
a2928361d9 Changed name of RouterManager.CheckUpdates to RouterManager.FindUpdates. 2015-06-09 04:25:20 +00:00
dev
fcd2a54754 Add support for RouterManager.CheckUpdates and RouterManager.Update. 2015-06-09 04:06:00 +00:00
dev
8a39b639b9 Moved away from deprecated functions. 2015-06-09 03:18:18 +00:00
dev
88837ef572 UDPTransport.DEFAULT_INTERNAL_PORT deprecated in I2P. 2015-06-09 03:15:13 +00:00
dev
b9f1e3f4df Moved away from deprecated functions. 2015-06-09 03:11:26 +00:00
dev
66d3ea28e0 lazygravy: Make i2p.router.net.ssu.detectedip return actual ip 2015-04-14 03:06:41 +00:00
dev
eecdde0548 lazygravy: Verify that input is correctly formatted 2015-04-14 02:57:42 +00:00
dev
72aad1872e merge of '07e6170989c18bbe37502d87da185526159caad4'
and '788244417dd79a3834b0e08941161ea6cb2af0b8'
2015-04-14 02:44:39 +00:00
dev
1a25505425 Fix trac #606 2015-04-02 16:42:00 +00:00
zzz
58f1b3cfa2 add max-jetty-version 2014-10-24 14:46:56 +00:00
dev
7936f753bc Removed legacy code. Incremented version number. 2014-09-26 19:15:48 +00:00
zzz
0cb0a307e6 Fixes for data structures moving in the router.
Set min-i2p-version=0.9.16
2014-09-23 15:25:13 +00:00
dev
b17dcc6198 Added support for the crypto API of Java 8 2014-06-15 12:43:44 +00:00
dev
9f2601d3ac Changed version number to 0.0.7
Changed version to 0.0.7
2013-11-13 02:19:43 +00:00
zzz
81e99b319b Set min-i2p-version=0.9.8 as we are using fields and methods
only present as of that version.
2013-11-08 16:46:18 +00:00
4c99ab0402 Remove Jetty version from library paths
To build, i2p.i2p must be built first.
2013-11-05 23:15:34 +00:00
bf822dad13 Updated for changes in i2p.i2p 2013-11-05 02:51:04 +00:00
3d2c3aeb50 Updated paths to Jetty libs 2013-11-05 02:18:04 +00:00
dev
bd0b7ebbb2 Changed a few build paths to match that of i2p 0.9.6. 2013-05-28 09:27:25 +00:00
dev
83bfdf00a2 Updated locations for jetty libs in i2p.i2p. 2013-05-28 08:44:10 +00:00