MCPcopy
hub / github.com/scrapy/scrapy / x509name_to_string

Function x509name_to_string

scrapy/utils/ssl.py:90–96  ·  view source on GitHub ↗
(x509name: X509Name)

Source from the content-addressed store, hash-verified

88
89
90def x509name_to_string(x509name: X509Name) -> str:
91 # from OpenSSL.crypto.X509Name.__repr__
92 result_buffer: Any = pyOpenSSLutil.ffi.new("char[]", 512)
93 pyOpenSSLutil.lib.X509_NAME_oneline(
94 x509name._name, result_buffer, len(result_buffer)
95 )
96 return ffi_buf_to_string(result_buffer)
97
98
99def get_temp_key_info(ssl_object: Any) -> str | None:

Callers 1

_log_ssl_conn_debug_infoFunction · 0.85

Calls 1

ffi_buf_to_stringFunction · 0.85

Tested by

no test coverage detected