I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 674a77ba authored by zzz's avatar zzz
Browse files

SU3File: bulksign .xml.gz files

parent c9f025a4
No related branches found
No related tags found
No related merge requests found
...@@ -628,7 +628,7 @@ public class SU3File { ...@@ -628,7 +628,7 @@ public class SU3File {
System.err.println("Usage: SU3File keygen [-t type|code] [-p keystorepw] [-r crlFile.crl] publicKeyFile.crt keystore.ks you@mail.i2p\n" + System.err.println("Usage: SU3File keygen [-t type|code] [-p keystorepw] [-r crlFile.crl] publicKeyFile.crt keystore.ks you@mail.i2p\n" +
" SU3File sign [-t type|code] [-c type|code] [-f type|code] [-p keystorepw] inputFile.zip signedFile.su3 keystore.ks version you@mail.i2p\n" + " SU3File sign [-t type|code] [-c type|code] [-f type|code] [-p keystorepw] inputFile.zip signedFile.su3 keystore.ks version you@mail.i2p\n" +
" SU3File bulksign [-t type|code] [-c type|code] [-p keystorepw] directory keystore.ks version you@mail.i2p\n" + " SU3File bulksign [-t type|code] [-c type|code] [-p keystorepw] directory keystore.ks version you@mail.i2p\n" +
" (signs all .zip and .xml files in the directory)\n" + " (signs all .zip, .xml, and .xml.gz files in the directory)\n" +
" SU3File showversion signedFile.su3\n" + " SU3File showversion signedFile.su3\n" +
" SU3File verifysig [-k file.crt] signedFile.su3 ## -k use this pubkey cert for verification\n" + " SU3File verifysig [-k file.crt] signedFile.su3 ## -k use this pubkey cert for verification\n" +
" SU3File extract [-x] [-k file.crt] signedFile.su3 outFile ## -x don't check sig"); " SU3File extract [-x] [-k file.crt] signedFile.su3 outFile ## -x don't check sig");
...@@ -762,7 +762,8 @@ public class SU3File { ...@@ -762,7 +762,8 @@ public class SU3File {
int success = 0; int success = 0;
for (File in : files) { for (File in : files) {
String inputFile = in.getPath(); String inputFile = in.getPath();
if (!inputFile.endsWith(".zip") && !inputFile.endsWith(".xml")) if (!inputFile.endsWith(".zip") && !inputFile.endsWith(".xml") &&
!inputFile.endsWith(".xml.gz"))
continue; continue;
String signedFile = inputFile.substring(0, inputFile.length() - 4) + ".su3"; String signedFile = inputFile.substring(0, inputFile.length() - 4) + ".su3";
boolean rv = signCLI(stype, ctype, null, inputFile, signedFile, boolean rv = signCLI(stype, ctype, null, inputFile, signedFile,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment