관리-도구
편집 파일: low_level.cpython-311.pyc
� N�DgT6 � �� � d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl m Z mZmZ ej dej � � Zd� Zd� Zd� Zd � Zd � Zdd�Zd� Zd � Zd� Zd� Zd� Zd� Zdddddd�Zd� ZdS )a� 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. � N� )�CFConst�CoreFoundation�Securitys; -----BEGIN CERTIFICATE----- (.*?) -----END CERTIFICATE-----c �\ � t j t j | t | � � � � S )zv Given a bytestring, create a CFData object from it. This CFData object must be CFReleased by the caller. )r �CFDataCreate�kCFAllocatorDefault�len)� bytestrings ��/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/urllib3/contrib/_securetransport/low_level.py�_cf_data_from_bytesr s) � � �&��*�J��J���� � � c � � t | � � }d� | D � � }d� | D � � }t j |z |� }t j |z |� }t j t j |||t j t j � � S )zK Given a list of Python tuples, create an associated CFDictionary. c 3 �&