文件操作 - _util.cpython-310.pyc
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/OpenSSL/__pycache__/_util.cpython-310.pyc
编辑文件内容
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"