https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /proc/self/root/lib/python2.7/site-packages/asn1crypto/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/lib/python2.7/site-packages/asn1crypto/ocsp.pyc
�
y�\c@`s�dZddlmZmZmZmZddlmZmZddl	m
Z
mZmZm
Z
mZmZmZmZmZmZmZmZmZddlmZmZddlmZddlmZmZmZm Z d	efd
��YZ!defd��YZ"d
efd��YZ#defd��YZ$defd��YZ%defd��YZ&defd��YZ'defd��YZ(defd��YZ)defd��YZ*defd��YZ+defd ��YZ,d!efd"��YZ-d#efd$��YZ.d%efd&��YZ/d'efd(��YZ0d)efd*��YZ1d+efd,��YZ2d-efd.��YZ3d/efd0��YZ4d1efd2��YZ5d3efd4��YZ6d5efd6��YZ7d7efd8��YZ8d9efd:��YZ9d;efd<��YZ:d=efd>��YZ;d?efd@��YZ<dAefdB��YZ=dCefdD��YZ>dEefdF��YZ?dGefdH��YZ@dIefdJ��YZAdKefdL��YZBdMefdN��YZCdOefdP��YZDdQS(Ru�
ASN.1 type classes for the online certificate status protocol (OCSP). Exports
the following items:

 - OCSPRequest()
 - OCSPResponse()

Other type classes are defined that help compose the types listed above.
i(tunicode_literalstdivisiontabsolute_importtprint_functioni(tDigestAlgorithmtSignedDigestAlgorithm(
tBooleantChoicet
EnumeratedtGeneralizedTimet	IA5StringtIntegertNulltObjectIdentifiertOctetBitStringtOctetStringtParsableOctetStringtSequencet
SequenceOf(tAuthorityInfoAccessSyntaxt	CRLReason(tPublicKeyAlgorithm(tCertificatetGeneralNametGeneralNamestNametVersioncB`seZidd6ZRS(uv1i(t__name__t
__module__t_map(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyR'stCertIdcB`s2eZdefdefdefdefgZRS(uhash_algorithmuissuer_name_hashuissuer_key_hashu
serial_number(RRRRRt_fields(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyR-s			tServiceLocatorcB`s eZdefdefgZRS(uissuerulocator(RRRRR(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyR 6s	tRequestExtensionIdcB`seZidd6ZRS(uservice_locatoru1.3.6.1.5.5.7.48.1.7(RRR(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyR!=stRequestExtensioncB`sFeZdefdeied6fdefgZdZied6Z	RS(uextn_iducriticaludefaultu
extn_valueuservice_locator(uextn_idu
extn_value(
RRR!RtFalseRRt	_oid_pairR t
_oid_specs(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyR"Cs	tRequestExtensionscB`seZeZRS((RRR"t_child_spec(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyR&PstRequestcB`sjeZdefdeidd6ed6fgZeZdZ	dZ
d�Zed��Z
ed��ZRS(	ureq_certusingle_request_extensionsiuexplicituoptionalcC`s�t�|_xr|dD]f}|dj}d|}t||�r]t|||dj�n|djr|jj|�qqWt|_dS(uv
        Sets common named extensions to private attributes and creates a list
        of critical extensions
        usingle_request_extensionsuextn_idu	_%s_valueu
extn_valueucriticalN(	tsett_critical_extensionstnativethasattrtsetattrtparsedtaddtTruet_processed_extensions(tselft	extensiontnametattribute_name((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyt_set_extensions^s


cC`s|js|j�n|jS(u�
        Returns a set of the names (or OID if not a known extension) of the
        extensions marked as critical

        :return:
            A set of unicode strings
        (R1R6R*(R2((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pytcritical_extensionsps
	
cC`s#|jtkr|j�n|jS(u�
        This extension is used when communicating with an OCSP responder that
        acts as a proxy for OCSP requests

        :return:
            None or a ServiceLocator object
        (R1R#R6t_service_locator_value(R2((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pytservice_locator_value~s

N(RRRR&R0RR#R1tNoneR*R8R6tpropertyR7R9(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyR(Ts	 	tRequestscB`seZeZRS((RRR(R'(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyR<�stResponseTypecB`seZidd6ZRS(ubasic_ocsp_responseu1.3.6.1.5.5.7.48.1.1(RRR(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyR=�stAcceptableResponsescB`seZeZRS((RRR=R'(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyR>�stPreferredSignatureAlgorithmcB`s*eZdefdeied6fgZRS(usig_identifierucert_identifieruoptional(RRRRR0R(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyR?�s	tPreferredSignatureAlgorithmscB`seZeZRS((RRR?R'(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyR@�stTBSRequestExtensionIdcB`s#eZidd6dd6dd6ZRS(unonceu1.3.6.1.5.5.7.48.1.2uacceptable_responsesu1.3.6.1.5.5.7.48.1.4upreferred_signature_algorithmsu1.3.6.1.5.5.7.48.1.8(RRR(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRA�stTBSRequestExtensioncB`sTeZdefdeied6fdefgZdZied6e	d6e
d6ZRS(uextn_iducriticaludefaultu
extn_valueunonceuacceptable_responsesupreferred_signature_algorithms(uextn_idu
extn_value(RRRARR#RRR$RR>R@R%(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRB�s	tTBSRequestExtensionscB`seZeZRS((RRRBR'(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRC�st
TBSRequestcB`seeZdeidd6dd6fdeidd6ed6fdefd	eid
d6ed6fgZRS(uversioniuexplicituv1udefaulturequestor_nameiuoptionalurequest_listurequest_extensionsi(RRRRR0R<RCR(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRD�s	tCertificatescB`seZeZRS((RRRR'(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRE�st	SignaturecB`s:eZdefdefdeidd6ed6fgZRS(usignature_algorithmu	signatureucertsiuexplicituoptional(RRRRRER0R(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRF�s		tOCSPRequestcB`s�eZdefdeidd6ed6fgZeZd
Z	d
Z
d
Zd
Zd�Z
ed��Zed��Zed��Zed	��ZRS(utbs_requestuoptional_signatureiuexplicituoptionalcC`s�t�|_xv|ddD]f}|dj}d|}t||�rat|||dj�n|djr|jj|�qqWt|_dS(uv
        Sets common named extensions to private attributes and creates a list
        of critical extensions
        utbs_requesturequest_extensionsuextn_idu	_%s_valueu
extn_valueucriticalN(	R)R*R+R,R-R.R/R0R1(R2R3R4R5((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyR6�s


cC`s|js|j�n|jS(u�
        Returns a set of the names (or OID if not a known extension) of the
        extensions marked as critical

        :return:
            A set of unicode strings
        (R1R6R*(R2((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyR7�s
	
cC`s#|jtkr|j�n|jS(u�
        This extension is used to prevent replay attacks by including a unique,
        random value with each request/response pair

        :return:
            None or an OctetString object
        (R1R#R6t_nonce_value(R2((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pytnonce_values

cC`s#|jtkr|j�n|jS(u(
        This extension is used to allow the client and server to communicate
        with alternative response formats other than just basic_ocsp_response,
        although no other formats are defined in the standard.

        :return:
            None or an AcceptableResponses object
        (R1R#R6t_acceptable_responses_value(R2((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pytacceptable_responses_values
cC`s#|jtkr|j�n|jS(uj
        This extension is used by the client to define what signature algorithms
        are preferred, including both the hash algorithm and the public key
        algorithm, with a level of detail down to even the public key algorithm
        parameters, such as curve name.

        :return:
            None or a PreferredSignatureAlgorithms object
        (R1R#R6t%_preferred_signature_algorithms_value(R2((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyt$preferred_signature_algorithms_values
N(RRRDRFR0RR#R1R:R*RHRJRLR6R;R7RIRKRM(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRG�s	 	tOCSPResponseStatuscB`s8eZidd6dd6dd6dd6dd	6d
d6ZRS(u
successfuliumalformed_requestiuinternal_erroriu	try_lateriu
sign_requirediuunauthorizedi(RRR(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRN0stResponderIdcB`s4eZdeidd6fdeidd6fgZRS(uby_nameiuexplicituby_keyi(RRRRt
_alternatives(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRO;stRevokedInfocB`s1eZdefdeidd6ed6fgZRS(urevocation_timeurevocation_reasoniuexplicituoptional(RRR	RR0R(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRQBs	t
CertStatuscB`sGeZdeidd6fdeidd6fdeidd6fgZRS(ugoodiuimpliciturevokediuunknowni(RRRRQRP(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRRIstCrlIdcB`s\eZdeidd6ed6fdeidd6ed6fdeidd6ed6fgZRS(ucrl_urliuexplicituoptionalucrl_numiucrl_timei(RRR
R0RR	R(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRSQstSingleResponseExtensionIdcB`s8eZidd6dd6dd6dd6dd	6d
d6ZRS(ucrlu1.3.6.1.5.5.7.48.1.3uarchive_cutoffu1.3.6.1.5.5.7.48.1.6u
crl_reasonu	2.5.29.21uinvalidity_dateu	2.5.29.24ucertificate_issueru	2.5.29.29u!signed_certificate_timestamp_listu1.3.6.1.4.1.11129.2.4.5(RRR(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRTYstSingleResponseExtensioncB`sieZdefdeied6fdefgZd
Zied6e	d6e
d6e	d6ed6ed	6Z
RS(uextn_iducriticaludefaultu
extn_valueucrluarchive_cutoffu
crl_reasonuinvalidity_dateucertificate_issueru!signed_certificate_timestamp_list(uextn_idu
extn_value(RRRTRR#RRR$RSR	RRRR%(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRUgs	tSingleResponseExtensionscB`seZeZRS((RRRUR'(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRVystSingleResponsec	B`s�eZdefdefdefdeidd6ed6fdeidd6ed6fgZeZ	dZdZdZ
dZdZdZd	�Zed
��Zed��Zed��Zed
��Zed��Zed��ZRS(ucert_iducert_statusuthis_updateunext_updateiuexplicituoptionalusingle_extensionsicC`s�t�|_xr|dD]f}|dj}d|}t||�r]t|||dj�n|djr|jj|�qqWt|_dS(uv
        Sets common named extensions to private attributes and creates a list
        of critical extensions
        usingle_extensionsuextn_idu	_%s_valueu
extn_valueucriticalN(	R)R*R+R,R-R.R/R0R1(R2R3R4R5((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyR6�s


cC`s|js|j�n|jS(u�
        Returns a set of the names (or OID if not a known extension) of the
        extensions marked as critical

        :return:
            A set of unicode strings
        (R1R6R*(R2((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyR7�s
	
cC`s#|jtkr|j�n|jS(u�
        This extension is used to locate the CRL that a certificate's revocation
        is contained within.

        :return:
            None or a CrlId object
        (R1R#R6t
_crl_value(R2((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyt	crl_value�s

cC`s#|jtkr|j�n|jS(u�
        This extension is used to indicate the date at which an archived
        (historical) certificate status entry will no longer be available.

        :return:
            None or a GeneralizedTime object
        (R1R#R6t_archive_cutoff_value(R2((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pytarchive_cutoff_value�s

cC`s#|jtkr|j�n|jS(u�
        This extension indicates the reason that a certificate was revoked.

        :return:
            None or a CRLReason object
        (R1R#R6t_crl_reason_value(R2((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pytcrl_reason_value�s	
cC`s#|jtkr|j�n|jS(u=
        This extension indicates the suspected date/time the private key was
        compromised or the certificate became invalid. This would usually be
        before the revocation date, which is when the CA processed the
        revocation.

        :return:
            None or a GeneralizedTime object
        (R1R#R6t_invalidity_date_value(R2((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pytinvalidity_date_value�s
cC`s#|jtkr|j�n|jS(u�
        This extension indicates the issuer of the certificate in question.

        :return:
            None or an x509.GeneralNames object
        (R1R#R6t_certificate_issuer_value(R2((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pytcertificate_issuer_value�s	
N(RRRRRR	R0RVRR#R1R:R*RXRZR\R^R`R6R;R7RYR[R]R_Ra(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRW}s&			 	
t	ResponsescB`seZeZRS((RRRWR'(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRb�stResponseDataExtensionIdcB`seZidd6dd6ZRS(unonceu1.3.6.1.5.5.7.48.1.2uextended_revokeu1.3.6.1.5.5.7.48.1.9(RRR(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRc�stResponseDataExtensioncB`sMeZdefdeied6fdefgZdZied6e	d6Z
RS(uextn_iducriticaludefaultu
extn_valueunonceuextended_revoke(uextn_idu
extn_value(RRRcRR#RRR$RRR%(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRds	tResponseDataExtensionscB`seZeZRS((RRRdR'(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRestResponseDatac	B`s]eZdeidd6dd6fdefdefdefdeid	d6ed
6fgZRS(uversioniuexplicituv1udefaulturesponder_iduproduced_atu	responsesuresponse_extensionsiuoptional(	RRRROR	RbReR0R(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRfs
			tBasicOCSPResponsecB`sCeZdefdefdefdeidd6ed6fgZRS(utbs_response_datausignature_algorithmu	signatureucertsiuexplicituoptional(RRRfRRRER0R(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRgs			t
ResponseBytescB`s3eZdefdefgZdZied6ZRS(u
response_typeuresponseubasic_ocsp_response(u
response_typeuresponse(RRR=RRR$RgR%(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRh%s
	tOCSPResponsecB`s�eZdefdeidd6ed6fgZeZdZ	dZ
dZd�Ze
d��Ze
d��Ze
d��Ze
d	��Ze
d
��ZRS(uresponse_statusuresponse_bytesiuexplicituoptionalcC`s�t�|_x�|ddjddD]f}|dj}d|}t||�rlt|||dj�n|djr&|jj|�q&q&Wt|_d	S(
uv
        Sets common named extensions to private attributes and creates a list
        of critical extensions
        uresponse_bytesuresponseutbs_response_datauresponse_extensionsuextn_idu	_%s_valueu
extn_valueucriticalN(	R)R*R.R+R,R-R/R0R1(R2R3R4R5((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyR6<s 


cC`s|js|j�n|jS(u�
        Returns a set of the names (or OID if not a known extension) of the
        extensions marked as critical

        :return:
            A set of unicode strings
        (R1R6R*(R2((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyR7Ns
	
cC`s#|jtkr|j�n|jS(u�
        This extension is used to prevent replay attacks on the request/response
        exchange

        :return:
            None or an OctetString object
        (R1R#R6RH(R2((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRI\s

cC`s#|jtkr|j�n|jS(u�
        This extension is used to signal that the responder will return a
        "revoked" status for non-issued certificates.

        :return:
            None or a Null object (if present)
        (R1R#R6t_extended_revoke_value(R2((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pytextended_revoke_valuejs

cC`s|ddjS(u�
        A shortcut into the BasicOCSPResponse sequence

        :return:
            None or an asn1crypto.ocsp.BasicOCSPResponse object
        uresponse_bytesuresponse(R.(R2((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pytbasic_ocsp_responsexs	cC`s|ddjdS(u�
        A shortcut into the parsed, ResponseData sequence

        :return:
            None or an asn1crypto.ocsp.ResponseData object
        uresponse_bytesuresponseutbs_response_data(R.(R2((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyt
response_data�s	N(RRRNRhR0RR#R1R:R*RHRjR6R;R7RIRkRlRm(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyRi1s	 	N(Et__doc__t
__future__RRRRtalgosRRtcoreRRRR	R
RRR
RRRRRtcrlRRtkeysRtx509RRRRRRR R!R"R&R(R<R=R>R?R@RARBRCRDRERFRGRNRORQRRRSRTRURVRWRbRcRdReRfRgRhRi(((s5/tmp/pip-install-A1qMVe/asn1crypto/asn1crypto/ocsp.pyt<module>sT"X"	
9	Zx
	

https://t.me/AnonymousX5 - 2025