forked from I2P_Developers/i2p.i2p
propagate from branch 'i2p.i2p.zzz.ecdsa' (head 1dd9522809f801ca68dd331cfba1c5c914dc1481)
to branch 'i2p.i2p' (head a1c2ba4663abc7470f427c6a14854707d58b486a) Prop from branch i2p.i2p.zzz.ecdsa: * Build: - Generate su3 file in release target - Add zzz's new RSA 4096 pubkey cert for updates - Fix checkcerts.sh * Console: Move advanced setting to HelperBase * DSAEngine changes: - Implement raw sign/verify for other SigTypes - Add sign/verify methods using Java keys * ECDSA Support: - Add ECConstants which looks for named curves and falls back to explicitly defining the curves - Add support for ECDSA to SigType, DSAEngine and KeyGenerator - Attempt to add BC as a Provider - genSpec: fallback to BC provider * EepGet: - Fix non-proxied PartialEepGet - Prevent non-proxied eepget for an I2P host * KeyGenerator changes: - Generate key pairs for all supported SigTypes - KeyPairGen: Catch ProviderException, fallback to BC provider - Add KeyGenerator main() tests * KeyRing and DirKeyRing added: simple backend for storing X.509 certs * KeyStoreUtil added: - Consolidate KeyStore code from SSLEepGet, I2CPSSLSocketFactory, SSLClientListenerRunner, and RouterConsoleRunner into new KeyStoreUtil and CertUtil classes in net.i2p.crypto (ticket #744) - Change default to RSA 2048 (ticket #1017) - Set file modes on written keys - Overwrite check in createKeys() - New getCert(), getKey() - Extend keygen max wait - Read back private key to verify after keygen - Validate cert after reading from file - Validate CN in cert - Specify cert signature algorithm when generating keys * NativeBigInteger: Tweak to prevent early context instantiation * RSA support added: constants, parameters, sig types, support in DSAEngine, KeyGenerator, SigUtil * SHA1Hash: Add no-arg constructor * SigType changes: - Add parameters (curve specs) to SigTypes - Add getHashInstance() - Add RSA, fix ECDSA - Renumber, rename, comment out types that are too short. * SigUtil added: - Converters from Java formats (ASN.1, X.509, PKCS#8) to I2P formats for Signatures and SigningKeys - Move ASN.1 converter from DSAEngine to SigUtil, generalize for variable length, add support for longer sequences, add more sanity checks, add more exceptions - Move I2P-to-Java DSA key conversion from DSAEngine to SigUtil - Add Java-to-I2P DSA key conversion - Add Java key import - New split() and combine() methods * SSLEepGet: Move all certificates to certificates/ssl, in preparation for other certificate uses by SU3File * SU3File changes: - Support all SigTypes - Implement keygen - Readahead to get sigtype on verify, as we need the hash type - Enum for content type - Add unknown content type, make default - Fix NPE if private key not found or sign fails - Store generated keys in keystore, and get private key from keystore for signing, in Java format - Use Java keys to sign and verify so we don't lose the key parameters in the conversion to I2P keys - Type checking of Java private key vs. type when signing - Use certs instead of public keys for verification - Fix arg processing - Improve validate-without-extract - New extract command - Change static fields to avoid early context init - Reduce PRNG buffer size for faster signing * Update: Preliminary work for su3 router updates: - New ROUTER_SIGNED_SU3 UpdateType - Add support for torrent and HTTP - Refactor UpdateRunners to return actual UpdateType - Deal with signed/su3 conflicts - Verify and extract su3 files. - Stub out support for clearnet su3 updating - New config for proxying news, separate from proxying update - PartialEepGet and SSLEepGet tweaks to support clearnet update - Remove proxy, key, and url config from /configupdate - More URI checks in UpdateRunner - Add https support for news fetch - Add su3 mime type - Reset found version in update loop so we don't fetch from the next host too. - Prevent NPE on version after SSL fetch
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Run 'msgfmt -c' on all .po files
|
||||
# Returns nonzero on failure
|
||||
|
70
tests/scripts/checkscripts.sh
Executable file
70
tests/scripts/checkscripts.sh
Executable file
@ -0,0 +1,70 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Check scripts in the I2P source for validity by running with "sh -n
|
||||
# $SCRIPTNAME". Optionally checks for bashisms if "checkbashisms" is installed.
|
||||
|
||||
# Exits 0 if no errors, non-zero otherwise
|
||||
|
||||
|
||||
cd `dirname $0`/../..
|
||||
|
||||
# Only Bourne-compatible scripts should be in this list.
|
||||
SCRIPTFILES="\
|
||||
./apps/desktopgui/bundle-messages.sh \
|
||||
./apps/i2psnark/java/bundle-messages.sh \
|
||||
./apps/i2psnark/launch-i2psnark \
|
||||
./apps/i2ptunnel/java/bundle-messages-proxy.sh \
|
||||
./apps/i2ptunnel/java/bundle-messages.sh \
|
||||
./apps/routerconsole/java/bundle-messages-news.sh \
|
||||
./apps/routerconsole/java/bundle-messages.sh \
|
||||
./apps/sam/c/examples/i2p-ping/pinger.sh \
|
||||
./apps/susidns/src/bundle-messages.sh \
|
||||
./apps/susimail/bundle-messages.sh \
|
||||
./core/c/build.sh \
|
||||
./core/c/jbigi/build-all.sh \
|
||||
./core/c/jbigi/build_jbigi.sh \
|
||||
./core/c/jbigi/build.sh \
|
||||
./core/c/jbigi/mbuild-all.sh \
|
||||
./core/c/jcpuid/build.sh \
|
||||
./core/c/mbuild.sh \
|
||||
./debian/i2p.config \
|
||||
./debian/i2p-doc.preinst \
|
||||
./debian/i2p.init \
|
||||
./debian/i2p.postinst \
|
||||
./debian/i2p.postrm \
|
||||
./debian/i2p.preinst \
|
||||
./debian/libjbigi-jni.preinst \
|
||||
./debian/repack.sh \
|
||||
./installer/resources/install_i2p_service_osx.command \
|
||||
./installer/resources/install_i2p_service_unix \
|
||||
./installer/resources/locale/bundle-messages.sh \
|
||||
./installer/resources/makegeoipv6.sh \
|
||||
./installer/resources/postinstall.sh \
|
||||
./installer/resources/runplain.sh \
|
||||
./installer/resources/uninstall_i2p_service_osx.command
|
||||
./installer/resources/uninstall_i2p_service_unix \
|
||||
./tests/scripts/checkcerts.sh \
|
||||
./tests/scripts/checkpo.sh \
|
||||
./tests/scripts/checkutf8.sh \
|
||||
./tests/scripts/checkxml.sh \
|
||||
./tests/scripts/testjbigi.sh \
|
||||
"
|
||||
|
||||
for script in $SCRIPTFILES; do
|
||||
echo "Checking $script ..."
|
||||
if sh -n "$script" ; then : ; else
|
||||
echo "********* FAILED CHECK FOR $script *************"
|
||||
FAIL=1
|
||||
fi
|
||||
if $(which checkbashisms > /dev/null 2>&1) ; then
|
||||
checkbashisms $script
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "$FAIL" != "" ]
|
||||
then
|
||||
echo "******** At least one file failed check *********"
|
||||
else
|
||||
echo "All files passed"
|
||||
fi
|
||||
exit $FAIL
|
@ -1,3 +1,4 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Check for UTF-8 problems in all files where they might appear
|
||||
# Also check all Java source files
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Validate XML and HTML files using xmllint
|
||||
# Returns nonzero on failure
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Runs a test using each libjbigi-linux-*.so file
|
||||
# Returns nonzero on failure, but it will always
|
||||
|
Reference in New Issue
Block a user