0x1949 Team - FAZEMRX - MANAGER
Edit File: ocsp.cpython-310.pyc
o g�e�9 � @ sn d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZmZ d dl m Z mZmZm Z e�� e�� e�� e�� e�� d�ZG dd� dej�ZG d d � d ej�Zdd� eD �ZejejejejejfZd d� ZG dd� dej�Zdd� eD �ZG dd� de�ZG dd� de jd�ZG dd� de jd�Z G dd� de�Z!G dd� de�Z"de#defdd �Z$de#de fd!d"�Z%dS )#� N)�utils)�x509)�hashes� serialization)�_EARLIEST_UTC_TIME�_PRIVATE_KEY_TYPES�_convert_to_naive_utc_time�_reject_duplicate_extension)z 1.3.14.3.2.26z2.16.840.1.101.3.4.2.4z2.16.840.1.101.3.4.2.1z2.16.840.1.101.3.4.2.2z2.16.840.1.101.3.4.2.3c @ s e Zd ZdZdZdS )�OCSPResponderEncodingzBy HashzBy NameN)�__name__� __module__�__qualname__�HASH�NAME� r r �8/usr/lib/python3/dist-packages/cryptography/x509/ocsp.pyr s r c @ s$ e Zd ZdZdZdZdZdZdZdS )�OCSPResponseStatusr � � � � � N) r r r � SUCCESSFUL�MALFORMED_REQUEST�INTERNAL_ERROR� TRY_LATER�SIG_REQUIRED�UNAUTHORIZEDr r r r r # s r c C � i | ]}|j |�qS r ��value��.0�xr r r � <dictcomp>, � r$ c C s t | t�s td��d S )Nz9Algorithm must be SHA1, SHA224, SHA256, SHA384, or SHA512)� isinstance�_ALLOWED_HASHES� ValueError)� algorithmr r r �_verify_algorithm6 s ��r* c @ s e Zd ZdZdZdZdS )�OCSPCertStatusr r r N)r r r �GOOD�REVOKED�UNKNOWNr r r r r+ = s r+ c C r r r r! r r r r$ C r% c @ s e Zd Zdd� ZdS )�_SingleResponsec C s t |tj�rt |tj�std��t|� t |tj�std��|d ur,t |tj�s,td��|| _|| _|| _|| _ || _ t |t�sDtd��|tjurZ|d urQt d��|d urYt d��n$t |tj�sdtd��t|�}|tk rpt d��|d ur~t |tj�s~td ��|| _|| _|| _d S ) N�%cert and issuer must be a Certificatez%this_update must be a datetime objectz-next_update must be a datetime object or Nonez8cert_status must be an item from the OCSPCertStatus enumzBrevocation_time can only be provided if the certificate is revokedzDrevocation_reason can only be provided if the certificate is revokedz)revocation_time must be a datetime objectz7The revocation_time must be on or after 1950 January 1.zCrevocation_reason must be an item from the ReasonFlags enum or None)r&