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
This commit is contained in:
David Blacka 2006-03-15 16:11:33 +00:00
parent 6f3d5c5b94
commit da83c56fa8
4 changed files with 4 additions and 7 deletions

View File

@ -113,6 +113,7 @@
<include name="${sectools-distname}/bin/jdnssec-signzone" />
<include name="${sectools-distname}/bin/jdnssec-keygen" />
<include name="${sectools-distname}/bin/jdnssec-verifyzone" />
<include name="${sectools-distname}/bin/jdnssec-zoneformat" />
</patternset>
<patternset id="src.files">

Binary file not shown.

View File

@ -49,7 +49,6 @@ public class SignUtils
public static final int RR_DELEGATION = 1;
public static final int RR_GLUE = 2;
public static final int RR_INVALID = 3;
private static final int[] ENT_NSEC3_TYPES = {Type.RRSIG, Type.NSEC3};
private static Logger log;
@ -531,7 +530,8 @@ public class SignUtils
this.typemap.add(new Integer(type));
// Opt-In support.
if (type != Type.NS && type != Type.NSEC && type != Type.RRSIG)
if (type != Type.NS && type != Type.NSEC && type != Type.RRSIG
&& type != Type.NSEC3)
{
isSecureNode = true;
}
@ -827,7 +827,6 @@ public class SignUtils
// Add our default types.
node.addType(Type.RRSIG);
node.addType(Type.NSEC3);
// Check for ENTs -- note this will generate duplicate ENTs because it
// doesn't use any context.
@ -865,10 +864,6 @@ public class SignUtils
iterations,
salt);
if (types == null)
{
types = ENT_NSEC3_TYPES;
}
ProtoNSEC3 r = new ProtoNSEC3(hash, name, zonename, DClass.IN, ttl,
optIn, NSEC3Record.SHA1_DIGEST_ID, iterations, salt, null, types);

View File

@ -49,6 +49,7 @@ public class TypeMap
public static TypeMap fromTypes(int[] types)
{
TypeMap m = new TypeMap();
if (types == null) return m;
for (int i = 0; i < types.length; i++)
{
m.set(types[i]);