trevp / tlslite

TLS Library in python
Other
235 stars 67 forks source link

Fix python2 compatibility issue with X509 DER parsing #117

Open etvahala opened 6 years ago

etvahala commented 6 years ago

The documentation for X509.parseBinary claims to support python2 str as an input. The input string is correctly converted to bytearray, but the array is not passed to the ASN1Parser - the parser gets the original string and fails with Type error when attempting to logical-or the characters with an integer.

tomato42 commented 6 years ago

Could you file it against tomato42/tlslite-ng? this fork is essentially abandoned

etvahala commented 6 years ago

Sure, filed as https://github.com/tomato42/tlslite-ng/pull/223