commit c1d5b831fbab5b570dc0b79a2b52a10ac3a2384d Author: Karsten Loesing karsten.loesing@gmx.net Date: Wed Feb 1 11:09:03 2012 +0100
Ignore directory certificate files for the moment. --- .../torproject/descriptor/impl/DescriptorImpl.java | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/org/torproject/descriptor/impl/DescriptorImpl.java b/src/org/torproject/descriptor/impl/DescriptorImpl.java index 3192e21..7db8aaf 100644 --- a/src/org/torproject/descriptor/impl/DescriptorImpl.java +++ b/src/org/torproject/descriptor/impl/DescriptorImpl.java @@ -61,6 +61,8 @@ public abstract class DescriptorImpl implements Descriptor { parsedDescriptors.addAll(BridgePoolAssignmentImpl. parseDescriptors(rawDescriptorBytes, failUnrecognizedDescriptorLines)); + } else if (firstLines.startsWith("dir-key-certificate-version ")) { + /* TODO Implement parsing of directory certificates. */ } else { throw new DescriptorParseException("Could not detect descriptor " + "type in descriptor starting with '" + firstLines + "'.");