diff options
author | Linus Nordberg <linus@nordberg.se> | 2014-09-23 10:47:35 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2014-09-23 10:47:35 +0200 |
commit | 2284a317b5fe2f757dad20b67ff560dc7b91532f (patch) | |
tree | 0fe939a2ab5d35d0d59309598595c85b5397b476 /tools/submitcert.py | |
parent | 560bcebb4cf64aea915331a55013b21696bfce5d (diff) |
Add whitespace in order to break long lines.certtools-whitespace
Also, use /usr/bin/env.
Diffstat (limited to 'tools/submitcert.py')
-rwxr-xr-x | tools/submitcert.py | 6 |
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 |