summaryrefslogtreecommitdiff
path: root/tools/submitcert.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/submitcert.py')
-rwxr-xr-xtools/submitcert.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/submitcert.py b/tools/submitcert.py
index a4dd9a2..229d36c 100755
--- a/tools/submitcert.py
+++ b/tools/submitcert.py
@@ -1,5 +1,4 @@
-#!/usr/bin/python
-
+#!/usr/bin/env python
import urllib2
import urllib
import json
@@ -31,7 +30,8 @@ if lookup_in_log:
extensions = ""
- timestamped_entry = struct.pack(">Q", result["timestamp"]) + entry_type + tls_array(base64.decodestring(certs[0]), 3) + tls_array(extensions, 2)
+ timestamped_entry = struct.pack(">Q", result["timestamp"]) + entry_type + \
+ tls_array(base64.decodestring(certs[0]), 3) + tls_array(extensions, 2)
version = struct.pack(">b", 0)
leaf_type = struct.pack(">b", 0)
merkle_tree_leaf = version + leaf_type + timestamped_entry