Commit Graph

32 Commits

Author SHA1 Message Date
2876649a4e
EdDSA, sonarlint fixes, and cleanup (#16)
* update commons-cli, dnsjava, remove gradle, set to java 17

* use baseAlgorithm enum instead of static ints

* sonarlint changes

* sonarlint/formatting for SignUtils

* sonarlint, formatting for RecordComparitor and JCEDnsSecSigner

* update a few defaults

* redo the SignZone logic around finding keys; more output for it.

* refactor getVerifier()

* sonarlint and formatting for the rest

* use SunEC for the algs 15, 16; support alg 16 finally

* address my self-review comments
2024-03-30 22:21:32 -04:00
e322186112
Port to DNSJava 3.5.1, Java 8, linter fixes (#13)
* Initial port to dnsjava 3.5.1

* java.util.Date -> java.time.Instant
* for (Iterator ..) to for ( Object : List )
* DSRecord.<digest type> -> DNSSEC.Digest.<type>
* source to java 8

* formatting overhaul; copyright; author

* add slf4j jars for dnsjava 3.5.1

* NSEC/NSEC3 ttls are now min(soa.min, soa.ttl)

* Upgrade to commons-cli-1.5; some linter fixes

* Add CDS support of jdnssec-dstool

* linter suggestions

* add a TODO list

* Add a TODO list
2022-09-21 14:24:42 -04:00
David Blacka
9fd6c95889 Update dnsjava to 2.1.9; normalize shell wrappers 2019-07-23 13:06:09 +00:00
David Blacka
9004a33d51 Exit with non-zero with exception. Fix dnsjava lib.
It is unclear how we got the version of dnsjava that was checked in.
The same version build from the jdnssec-dnsjava repo was different.
This fixes the "missing CAA" support issue.
2019-02-26 14:26:18 +00:00
David Blacka
7706b73d8c Start of alg 15/16 support 2018-07-14 22:06:49 +00:00
David Blacka
6bbcf38fe1 update the embedded dnsjava version to 2.1.7 (jdnssec-dnsjava) 2016-08-22 09:40:47 -04:00
cc0873a336 Upgrade local dnsjava fork to 2.3.1-vrsn-1 2012-05-26 16:40:49 -04:00
David Blacka
91207aeed2 Refactor the command line classes with a new base class and upgrade
commons-cli to version 1.2.

git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@245 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2011-02-12 21:25:26 +00:00
David Blacka
ef2b96782e Switch to dnsjava-2.0.8: this fixes a typemap wire conversion bug
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@194 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2010-01-10 02:52:02 +00:00
David Blacka
179f7fa59d update version of DNSjava -- this version has a bug fix for typemap wireformat calculation
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@191 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2010-01-08 00:42:27 +00:00
David Blacka
34e6f91ef2 restore NSEC3 original ownername comments.
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@185 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2009-11-03 02:24:04 +00:00
David Blacka
1fe3b49c17 Switch to dnsjava-2.0.7: the NSEC3 comments won't work, and I had to rescue the nsec3 hash calculation function from the original NSEC3Record implementation.
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@183 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2009-11-03 02:23:59 +00:00
David Blacka
8b1203c243 Merge changes from experimental branch 2255:2273.
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@172 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2009-08-23 19:13:42 +00:00
David Blacka
7a4e98378b fix the binary version on the dnsjava library (was the java 6 binary version, should be the java 1.4 version)
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@145 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2009-02-10 14:36:00 +00:00
David Blacka
865fcf09bf update to dnsjava 2.0.6-vrsn-2; remove obsoleted workaround in DnsKeyConverter
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@138 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2009-02-07 21:01:28 +00:00
David Blacka
319bbdceb1 git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@135 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e 2009-02-07 20:38:22 +00:00
David Blacka
ba656cad5a update to commons-cli-1.1
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@134 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2009-02-07 20:37:58 +00:00
David Blacka
c7e5d9e09b update dnsjava library to 2.0.1-vrsn-4
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@126 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2009-02-05 05:38:16 +00:00
David Blacka
1b778f279d updates for nsec3-08 (wire format changes)
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@108 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2006-12-15 15:00:10 +00:00
David Blacka
740717f9ee fix parse error in our custom dnsjava
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@91 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2006-09-12 12:01:02 +00:00
David Blacka
3d7fff5927 replace dnsjava lib with new custom version
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@83 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2006-09-01 02:21:44 +00:00
David Blacka
3866264914 remove old libs
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@82 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2006-09-01 02:21:27 +00:00
David Blacka
dff0e250f6 Add support for the SHA256 DS digest algorithm.
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@76 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2006-05-24 22:19:31 +00:00
David Blacka
b7ae54723e update to local version of dnsjava 2.0.1
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@73 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2006-05-24 19:49:07 +00:00
David Blacka
da83c56fa8 type map changes for NSEC3 (changed in nsec3-05pre)
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@59 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2006-03-15 16:11:33 +00:00
David Blacka
e2977c41f8 bug fixes: RecordComparator needs to also compare RDATA so the removeDuplicates step actually works reliably -- this was masked by the duplicate suppression in RRset; only allow one command line specified KSK, since commons-cli doesn't seem to handle multi-arg options correctly; do not croak on the lack of command-line keys for now;; Also: new dnsjava lib that contains NSEC3 changes for the -04pre draft
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@55 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2006-02-16 20:23:56 +00:00
David Blacka
13fae1fc81 add original ownername comments to the NSEC3 generation
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@49 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2005-11-09 22:21:02 +00:00
David Blacka
528bc6193a new dnsjava w/bugfix; fix ordering problem with ProtoNSEC3s
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@41 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2005-11-07 05:20:00 +00:00
David Blacka
257e08141d new dnsjava
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@38 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2005-10-28 19:50:57 +00:00
David Blacka
04ab26f434 NSEC3 support, remove plain opt-in support until private algs work
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@35 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2005-10-27 21:50:54 +00:00
David Blacka
4b84bbf4db update to dnsjava-2.0.0; refactor command line parseing a bit; switch to java.util.logging
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@16 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2005-08-14 02:08:48 +00:00
David Blacka
eb93599f0b initial import
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@13 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
2005-08-13 23:18:03 +00:00