Skip to content
Permalink
Browse files

Normalize line endings

  • Loading branch information...
ibauersachs committed May 25, 2019
1 parent 7d12b87 commit 85c131c1cec9a271267ca940a374ef5367170ee0
Showing with 493 additions and 493 deletions.
  1. +19 −19 .editorconfig
  2. +10 −10 .travis.yml
  3. +53 −53 org/xbill/DNS/CDNSKEYRecord.java
  4. +47 −47 org/xbill/DNS/CDSRecord.java
  5. +261 −261 pom.xml
  6. +66 −66 tests/org/xbill/DNS/DNSSECTest.java
  7. +37 −37 tests/org/xbill/DNS/OPTRecordTest.java
@@ -1,19 +1,19 @@
root = true

[*]
indent_style = tab
indent_size = 8
insert_final_newline = true
charset = latin1

[*.yml]
indent_style = space
indent_size = 2

[{pom.xml,*.md}]
indent_style = space
indent_size = 4

[.editorconfig]
charset = utf-8

root = true

[*]
indent_style = tab
indent_size = 8
insert_final_newline = true
charset = latin1

[*.yml]
indent_style = space
indent_size = 2

[{pom.xml,*.md}]
indent_style = space
indent_size = 4

[.editorconfig]
charset = utf-8

@@ -1,10 +1,10 @@
branches:
only:
- master

language: java
jdk:
- openjdk8

install: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgpg.skip -B -V
script: mvn test jacoco:report coveralls:report -Dgpg.skip -B
branches:
only:
- master

language: java
jdk:
- openjdk8

install: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgpg.skip -B -V
script: mvn test jacoco:report coveralls:report -Dgpg.skip -B
@@ -1,53 +1,53 @@
// SPDX-License-Identifier: BSD-2-Clause
package org.xbill.DNS;

import java.security.PublicKey;

/**
* Child DNSKEY record as specified in RFC 8078.
*
* @see DNSSEC
*/
public class CDNSKEYRecord extends DNSKEYRecord {

private static final long serialVersionUID = 1307874430666933615L;

CDNSKEYRecord() {}

Record
getObject() {
return new CDNSKEYRecord();
}

/**
* Creates a CDNSKEY Record from the given data
* @param flags Flags describing the key's properties
* @param proto The protocol that the key was created for
* @param alg The key's algorithm
* @param key Binary representation of the key
*/
public
CDNSKEYRecord(Name name, int dclass, long ttl, int flags, int proto, int alg,
byte [] key)
{
super(name, Type.CDNSKEY, dclass, ttl, flags, proto, alg, key);
}

/**
* Creates a CDNSKEY Record from the given data
* @param flags Flags describing the key's properties
* @param proto The protocol that the key was created for
* @param alg The key's algorithm
* @param key The key as a PublicKey
* @throws DNSSEC.DNSSECException The PublicKey could not be converted into DNS
* format.
*/
public
CDNSKEYRecord(Name name, int dclass, long ttl, int flags, int proto, int alg,
PublicKey key) throws DNSSEC.DNSSECException
{
super(name, Type.CDNSKEY, dclass, ttl, flags, proto, alg,
DNSSEC.fromPublicKey(key, alg));
}

}
// SPDX-License-Identifier: BSD-2-Clause
package org.xbill.DNS;

import java.security.PublicKey;

/**
* Child DNSKEY record as specified in RFC 8078.
*
* @see DNSSEC
*/
public class CDNSKEYRecord extends DNSKEYRecord {

private static final long serialVersionUID = 1307874430666933615L;

CDNSKEYRecord() {}

Record
getObject() {
return new CDNSKEYRecord();
}

/**
* Creates a CDNSKEY Record from the given data
* @param flags Flags describing the key's properties
* @param proto The protocol that the key was created for
* @param alg The key's algorithm
* @param key Binary representation of the key
*/
public
CDNSKEYRecord(Name name, int dclass, long ttl, int flags, int proto, int alg,
byte [] key)
{
super(name, Type.CDNSKEY, dclass, ttl, flags, proto, alg, key);
}

/**
* Creates a CDNSKEY Record from the given data
* @param flags Flags describing the key's properties
* @param proto The protocol that the key was created for
* @param alg The key's algorithm
* @param key The key as a PublicKey
* @throws DNSSEC.DNSSECException The PublicKey could not be converted into DNS
* format.
*/
public
CDNSKEYRecord(Name name, int dclass, long ttl, int flags, int proto, int alg,
PublicKey key) throws DNSSEC.DNSSECException
{
super(name, Type.CDNSKEY, dclass, ttl, flags, proto, alg,
DNSSEC.fromPublicKey(key, alg));
}

}
@@ -1,47 +1,47 @@
// SPDX-License-Identifier: BSD-2-Clause
package org.xbill.DNS;

/**
* Child Delegation Signer record as specified in RFC 8078.
*
* @see DNSSEC
*/
public class CDSRecord extends DSRecord {

private static final long serialVersionUID = -3156174257356976006L;

CDSRecord() {}

Record
getObject() {
return new CDSRecord();
}

/**
* Creates a CDS Record from the given data
* @param footprint The original KEY record's footprint (keyid).
* @param alg The original key algorithm.
* @param digestid The digest id code.
* @param digest A hash of the original key.
*/
public
CDSRecord(Name name, int dclass, long ttl, int footprint, int alg,
int digestid, byte [] digest)
{
super(name, Type.CDS, dclass, ttl, footprint, alg, digestid, digest);
}

/**
* Creates a CDS Record from the given data
* @param digestid The digest id code.
* @param key The key to digest
*/
public
CDSRecord(Name name, int dclass, long ttl, int digestid, DNSKEYRecord key)
{
super(name, Type.CDS, dclass, ttl, key.getFootprint(),
key.getAlgorithm(), digestid,
DNSSEC.generateDSDigest(key, digestid));
}

}
// SPDX-License-Identifier: BSD-2-Clause
package org.xbill.DNS;

/**
* Child Delegation Signer record as specified in RFC 8078.
*
* @see DNSSEC
*/
public class CDSRecord extends DSRecord {

private static final long serialVersionUID = -3156174257356976006L;

CDSRecord() {}

Record
getObject() {
return new CDSRecord();
}

/**
* Creates a CDS Record from the given data
* @param footprint The original KEY record's footprint (keyid).
* @param alg The original key algorithm.
* @param digestid The digest id code.
* @param digest A hash of the original key.
*/
public
CDSRecord(Name name, int dclass, long ttl, int footprint, int alg,
int digestid, byte [] digest)
{
super(name, Type.CDS, dclass, ttl, footprint, alg, digestid, digest);
}

/**
* Creates a CDS Record from the given data
* @param digestid The digest id code.
* @param key The key to digest
*/
public
CDSRecord(Name name, int dclass, long ttl, int digestid, DNSKEYRecord key)
{
super(name, Type.CDS, dclass, ttl, key.getFootprint(),
key.getAlgorithm(), digestid,
DNSSEC.generateDSDigest(key, digestid));
}

}

0 comments on commit 85c131c

Please sign in to comment.
You can’t perform that action at this time.