smart_meter_texas/__init__.py
def _find_ca_issuers_uri(self, input_stream, tag_ca_issuers_uri_found=False):
        """Lookup the CA Issuers - URI Object and return the value."""
        ca_issuers_uri = None
        while not input_stream.eof() and not ca_issuers_uri:
            tag = input_stream.peek()
            if tag.typ == asn1.Types.Primitive:
                tag, value = input_stream.read()

                if tag_ca_issuers_uri_found:
                    str_value = self._asn1_value_to_string(tag.nr, value)
                    if str_value:
                        ca_issuers_uri = str_value.decode("utf-8")
                        tag_ca_issuers_uri_found = False
                        break
                    else:
                        tag_ca_issuers_uri_found = False

                elif self._asn1_value_to_string(tag.nr, value) == "1.3.6.1.5.5.7.48.2":
                    tag_ca_issuers_uri_found = True

            elif tag.typ == asn1.Types.Constructed:
                input_stream.enter()
                ca_issuers_uri = self._find_ca_issuers_uri(
                    input_stream, tag_ca_issuers_uri_found
                )
                input_stream.leave()

        return ca_issuers_uri
Lookup the CA Issuers - URI Object and return the value.
Lookup the CA Issuers - URI Object and return the value.
Lookup the CA Issuers - URI Object and return the value .
def _find_ca_issuers_uri(self, input_stream, tag_ca_issuers_uri_found=False):
        ca_issuers_uri = None
        while not input_stream.eof() and not ca_issuers_uri:
            tag = input_stream.peek()
            if tag.typ == asn1.Types.Primitive:
                tag, value = input_stream.read()
                if tag_ca_issuers_uri_found:
                    str_value = self._asn1_value_to_string(tag.nr, value)
                    if str_value:
                        ca_issuers_uri = str_value.decode("utf-8")
                        tag_ca_issuers_uri_found = False
                        break
                    else:
                        tag_ca_issuers_uri_found = False
                elif self._asn1_value_to_string(tag.nr, value) == "1.3.6.1.5.5.7.48.2":
                    tag_ca_issuers_uri_found = True
            elif tag.typ == asn1.Types.Constructed:
                input_stream.enter()
                ca_issuers_uri = self._find_ca_issuers_uri(
                    input_stream, tag_ca_issuers_uri_found
                )
                input_stream.leave()
        return ca_issuers_uri
def _find_ca_issuers_uri ( self , input_stream , tag_ca_issuers_uri_found = False ) : ca_issuers_uri = None while not input_stream . eof ( ) and not ca_issuers_uri : tag = input_stream . peek ( ) if tag . typ == asn1 . Types . Primitive : tag , value = input_stream . read ( ) if tag_ca_issuers_uri_found : str_value = self . _asn1_value_to_string ( tag . nr , value ) if str_value : ca_issuers_uri = str_value . decode ( "utf-8" ) tag_ca_issuers_uri_found = False break else : tag_ca_issuers_uri_found = False elif self . _asn1_value_to_string ( tag . nr , value ) == "1.3.6.1.5.5.7.48.2" : tag_ca_issuers_uri_found = True elif tag . typ == asn1 . Types . Constructed : input_stream . enter ( ) ca_issuers_uri = self . _find_ca_issuers_uri ( input_stream , tag_ca_issuers_uri_found ) input_stream . leave ( ) return ca_issuers_uri
Lookup the CA Issuers - URI Object and return the value.
Lookup the CA Issuers - URI Object and return the value .
"""Lookup the CA Issuers - URI Object and return the value."""
self
input_stream
tag_ca_issuers_uri_found