MCPcopy Create free account
hub / github.com/secdev/scapy / _rec_show

Method _rec_show

scapy/layers/tls/cert.py:1670–1683  ·  view source on GitHub ↗
(c, children, lvl=0)

Source from the content-addressed store, hash-verified

1668 """
1669
1670 def _rec_show(c, children, lvl=0):
1671 s = ""
1672 # Process the current CA
1673 if c:
1674 if not c.isSelfSigned():
1675 s += "%s [Not Self Signed]\n" % c.subject_str
1676 else:
1677 s += "%s [Self Signed]\n" % c.subject_str
1678 s = lvl * " " + s
1679 lvl += 1
1680 # Process all sub-CAs at a lower level
1681 for child, subchildren in children:
1682 s += _rec_show(child, subchildren, lvl=lvl)
1683 return s
1684
1685 showed = _rec_show(None, self.tree)
1686 if ret:

Callers

nothing calls this directly

Calls 1

isSelfSignedMethod · 0.45

Tested by

no test coverage detected