|
Server : LiteSpeed System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64 User : idnco5810 ( 1093) PHP Version : 8.2.29 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"