Created
October 23, 2015 21:55
-
-
Save zakird/66fad7a5e1b4fe1d2f46 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ztag/annotations/export.py b/ztag/annotations/export.py | |
index b4472ff..930c2b2 100644 | |
--- a/ztag/annotations/export.py | |
+++ b/ztag/annotations/export.py | |
@@ -1,4 +1,4 @@ | |
-from ztag.annotation import * | |
+from ztag.annotation import * | |
class RSAExportTag(Annotation): | |
@@ -8,19 +8,9 @@ class RSAExportTag(Annotation): | |
port = None | |
def process(self, obj, meta): | |
- meta.tags.add("rsa-export") | |
- return meta | |
- | |
- | |
-class DHETag(Annotation): | |
- | |
- protocol = protocols.HTTPS | |
- subprotocol = protocols.HTTPS.DHE | |
- port = None | |
- | |
- def process(self, obj, meta): | |
- meta.tags.add("dhe") | |
- return meta | |
+ if obj["support"]: | |
+ meta.tags.add("rsa-export") | |
+ return meta | |
class DHEExportTag(Annotation): | |
@@ -30,5 +20,6 @@ class DHEExportTag(Annotation): | |
port = None | |
def process(self, obj, meta): | |
- meta.tags.add("dhe-export") | |
- return meta | |
+ if obj["support"]: | |
+ meta.tags.add("dhe-export") | |
+ return meta |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment