Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/OpenSSL/__pycache__/ |
Upload File : |
o ��Sae � @ s� d dl Z d dlZd dlmZmZ d dlmZ e� Ze�� ej Z ej Z e jdd�Zdd� Z dd � Zd d� Zdd � Zdd� ZerDdd� Zndd� Ze� Zejd Zdd� ZdS )� N)�PY2� text_type)�BindingF)�should_clear_after_allocc C s | sdS t t�| ��S )z� Get a native string type representing of the given CFFI ``char*`` object. :param charp: A C-style string represented using CFFI. :return: :class:`str` � )�native�ffi�string)�charp� r �//usr/lib/python3/dist-packages/OpenSSL/_util.py�text s r c C sP g } t �� }|dkr | |��|�tt �|��tt �|��tt �|��f� q)ac Convert an OpenSSL library failure into a Python exception. When a call to the native OpenSSL library fails, this is usually signalled by the return value, and an error code is stored in an error queue associated with the current thread. The err library provides functions to obtain these error codes and textual error messages. Tr )�lib� ERR_get_error�appendr �ERR_lib_error_string�ERR_func_error_string�ERR_reason_error_string)�exception_type�errors�errorr r r �exception_from_error_queue"