[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [metrics-lib/master] Ignore directory certificate files for the moment.
commit c1d5b831fbab5b570dc0b79a2b52a10ac3a2384d
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
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 + "'.");
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits