Added script anchors2ds.sed to convert anchors in IANA XML format to DS format
authorHarvie <tomas@mudrunka.cz>
Fri, 6 Aug 2010 01:46:48 +0000 (03:46 +0200)
committerHarvie <tomas@mudrunka.cz>
Fri, 6 Aug 2010 01:46:48 +0000 (03:46 +0200)
dnssec-root-zone-trust-anchors/anchors2ds.sed [new file with mode: 0755]

diff --git a/dnssec-root-zone-trust-anchors/anchors2ds.sed b/dnssec-root-zone-trust-anchors/anchors2ds.sed
new file mode 100755 (executable)
index 0000000..974d1ed
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sed -f
+# anchors2ds.sed - (C)opyright Thomas Mudrunka <tomas.mudrunka@gmail.com> (2010) - All rights waived
+# This SED script converts trust anchors supplied by IANA in XML format to DS format usable by most applications.
+:a;$!N;s/\n//g;ta;
+s/<?xml [^<]*//g;s/<TrustAnchor[^<]*<Zone>\([^<]*\)<\/Zone>[^<]*<[^<]*<KeyTag>\([^<]*\)<\/KeyTag>[^<]*<Algorithm>\([^<]*\)<\/Algorithm><DigestType>\([^<]*\)<\/DigestType>[^<]*<Digest>\([^<]*\)<\/Digest><\/KeyDigest><\/TrustAnchor>/\1 DS \2 \3 \4 \5\n/g
This page took 0.114402 seconds and 4 git commands to generate.