![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|
Functions | |
| _cf_data_from_bytes (bytestring) | |
| _cf_dictionary_from_tuples (tuples) | |
| _cfstr (py_bstr) | |
| _create_cfstring_array (lst) | |
| _cf_string_to_unicode (value) | |
| _assert_no_error (error, exception_class=None) | |
| _cert_array_from_pem (pem_bundle) | |
| _is_cert (item) | |
| _is_identity (item) | |
| _temporary_keychain () | |
| _load_items_from_file (keychain, path) | |
| _load_client_cert_chain (keychain, *paths) | |
| _build_tls_unknown_ca_alert (version) | |
Variables | |
| _PEM_CERTS_RE | |
| dict | TLS_PROTOCOL_VERSIONS |
Low-level helpers for the SecureTransport bindings. These are Python functions that are not directly related to the high-level APIs but are necessary to get them to work. They include a whole bunch of low-level CoreFoundation messing about and memory management. The concerns in this module are almost entirely about trying to avoid memory leaks and providing appropriate and useful assistance to the higher-level code.
|
protected |
Checks the return code and throws an exception if there is an error to report
|
protected |
Builds a TLS alert record for an unknown CA.
|
protected |
Given a bundle of certs in PEM format, turns them into a CFArray of certs that can be used to validate a cert chain.
|
protected |
Given a bytestring, create a CFData object from it. This CFData object must be CFReleased by the caller.
|
protected |
Given a list of Python tuples, create an associated CFDictionary.
|
protected |
Creates a Unicode string from a CFString object. Used entirely for error reporting. Yes, it annoys me quite a lot that this function is this complex.
|
protected |
Given a Python binary data, create a CFString. The string must be CFReleased by the caller.
|
protected |
Given a list of Python binary data, create an associated CFMutableArray. The array must be CFReleased by the caller. Raises an ssl.SSLError on failure.
|
protected |
Returns True if a given CFTypeRef is a certificate.
|
protected |
Returns True if a given CFTypeRef is an identity.
|
protected |
Load certificates and maybe keys from a number of files. Has the end goal of returning a CFArray containing one SecIdentityRef, and then zero or more SecCertificateRef objects, suitable for use as a client certificate trust chain.
|
protected |
Given a single file, loads all the trust objects from it into arrays and the keychain. Returns a tuple of lists: the first list is a list of identities, the second a list of certs.
|
protected |
This function creates a temporary Mac keychain that we can use to work with credentials. This keychain uses a one-time password and a temporary file to store the data. We expect to have one keychain per socket. The returned SecKeychainRef must be freed by the caller, including calling SecKeychainDelete. Returns a tuple of the SecKeychainRef and the path to the temporary directory that contains it.
|
protected |
| dict pip._vendor.urllib3.contrib._securetransport.low_level.TLS_PROTOCOL_VERSIONS |