Commit 5d0d3062 authored by Sam Rushing's avatar Sam Rushing

use correct DER encoding for BOOLEAN

parent a2c53d6d
......@@ -303,10 +303,10 @@ cdef object _INTEGER (long n):
cdef object _BOOLEAN (long n):
if n:
n = 0xff
b = '\xff'
else:
n = 0x00
return _TLV1 (TAGS_BOOLEAN, _encode_integer (n))
b = '\x00'
return _TLV1 (TAGS_BOOLEAN, b)
cdef object _SEQUENCE (object elems):
return _TLV (TAGS_SEQUENCE, elems)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment