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

Method __call__

scapy/layers/tls/cert.py:1190–1198  ·  view source on GitHub ↗
(cls, cert_path)

Source from the content-addressed store, hash-verified

1188 """
1189
1190 def __call__(cls, cert_path):
1191 obj = _PKIObjMaker.__call__(cls, cert_path, _MAX_CRL_SIZE, "X509 CRL")
1192 obj.__class__ = CRL
1193 try:
1194 crl = X509_CRL(obj._der)
1195 except Exception:
1196 raise Exception("Unable to import CRL")
1197 obj.import_from_asn1pkt(crl)
1198 return obj
1199
1200
1201class CRL(metaclass=_CRLMaker):

Callers 5

__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45
__init__Method · 0.45

Calls 2

X509_CRLClass · 0.90
import_from_asn1pktMethod · 0.45

Tested by

no test coverage detected