Skip to content

Instantly share code, notes, and snippets.

@zakird
Created October 23, 2015 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zakird/66fad7a5e1b4fe1d2f46 to your computer and use it in GitHub Desktop.
Save zakird/66fad7a5e1b4fe1d2f46 to your computer and use it in GitHub Desktop.
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