)]}'
{"anchor/X509/certificate.py":[{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"919c2d76e7f7b117ae8bb75ce892b5050d098a91","unresolved":false,"context_lines":[{"line_number":68,"context_line":"#"},{"line_number":69,"context_line":"# New version of cryptography.io already supports ASN1_TIME_set() and as soon"},{"line_number":70,"context_line":"# as it\u0027s released, this code needs to be updated to use it."},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"class X509Certificate(object):"},{"line_number":73,"context_line":"    \"\"\"X509 certificate class.\"\"\""},{"line_number":74,"context_line":"    def __init__(self):"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a016987_6187b1b5","line":71,"updated":"2015-05-29 14:51:16.000000000","message":"X509_gmtime_adj(lib.X509_get_notBefore(self._certObj), offset_in_seconds) can work around this missing function, assuming a known starting point\n\nalternatively (and possibly better) ASN1_GENERALIZEDTIME_set_string could be used, it seems this can be freely cast from ASN1_TIME ...\n\ntime \u003d lib.X509_get_notBefore(self._certObj)\nffi.cast(\"ASN1_GENRALIZEDTIME*\", time)\nASN1_GENERALISEDTIME_set_string(formatted_time_string)\n\nthere is a precedent example of doing this in the pyOpenSSL codebase, we should probably try to use generalized time for everything eventually  (dates past 2050 work) however lets let cryptography worry about that once its ready.","commit_id":"9ac0eb40fb2a2fca6cdc51fea5a3e0b9d2c4edb6"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"919c2d76e7f7b117ae8bb75ce892b5050d098a91","unresolved":false,"context_lines":[{"line_number":99,"context_line":"        bio \u003d self._lib.BIO_new(self._lib.BIO_s_mem())"},{"line_number":100,"context_line":"        bio \u003d self._ffi.gc(bio, self._lib.BIO_free)"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        val \u003d self._lib.ASN1_UTCTIME_print(bio, t)"},{"line_number":103,"context_line":"        if val !\u003d 1:"},{"line_number":104,"context_line":"            raise X509CertificateError(\"Could not print\""},{"line_number":105,"context_line":"                                       \" ASN1_UTCTIME\")  # pragma: no cover"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a016987_b4b16c91","line":102,"updated":"2015-05-29 14:51:16.000000000","message":"ASN1_TIME_print is available in cryptography 0.9, if we remove the cast in  get_not_before/get_not_before and use that here it should help.","commit_id":"9ac0eb40fb2a2fca6cdc51fea5a3e0b9d2c4edb6"}],"anchor/X509/utils.py":[{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"be25421cdcacf9a5cf3ee4b79b4a45af43bf4b18","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    to generate a new class dynamically."},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    :param minute_offset: total timezone offset in minutes"},{"line_number":51,"context_line":"    \"\"\"  # flake8: noqa (random flake failure)"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    class SpecificTZ(datetime.tzinfo):"},{"line_number":54,"context_line":"        def utcoffset(self, _dt):"}],"source_content_type":"text/x-python","patch_set":4,"id":"5afe65bd_9e86e3d9","line":51,"updated":"2015-06-03 08:57:19.000000000","message":"you can fix the flake8 error by adding a new line after the first \u0027.\u0027 (yes I know its a pain)\n\n\"\"\"Create a new timezone with a specified offset.\n\n    Since tzinfo is just a base class, and tzinfo subclasses need a\n\netc","commit_id":"f3736829df63cb02301b18fd9d7a45b5ceac1a84"}]}
