%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11585/root/usr/lib/python3/dist-packages/asn1crypto/ |
Upload File : |
# coding: utf-8 """ ASN.1 type classes for PDF signature structures. Adds extra oid mapping and value parsing to asn1crypto.x509.Extension() and asn1crypto.xms.CMSAttribute(). """ from __future__ import unicode_literals, division, absolute_import, print_function from .cms import CMSAttributeType, CMSAttribute from .core import ( Boolean, Integer, Null, ObjectIdentifier, OctetString, Sequence, SequenceOf, SetOf, ) from .crl import CertificateList from .ocsp import OCSPResponse from .x509 import ( Extension, ExtensionId, GeneralName, KeyPurposeId, ) class AdobeArchiveRevInfo(Sequence): _fields = [ ('version', Integer) ] class AdobeTimestamp(Sequence): _fields = [ ('version', Integer), ('location', GeneralName), ('requires_auth', Boolean, {'optional': True, 'default': False}), ] class OtherRevInfo(Sequence): _fields = [ ('type', ObjectIdentifier), ('value', OctetString), ] class SequenceOfCertificateList(SequenceOf): _child_spec = CertificateList class SequenceOfOCSPResponse(SequenceOf): _child_spec = OCSPResponse class SequenceOfOtherRevInfo(SequenceOf): _child_spec = OtherRevInfo class RevocationInfoArchival(Sequence): _fields = [ ('crl', SequenceOfCertificateList, {'tag_type': 'explicit', 'tag': 0, 'optional': True}), ('ocsp', SequenceOfOCSPResponse, {'tag_type': 'explicit', 'tag': 1, 'optional': True}), ('other_rev_info', SequenceOfOtherRevInfo, {'tag_type': 'explicit', 'tag': 2, 'optional': True}), ] class SetOfRevocationInfoArchival(SetOf): _child_spec = RevocationInfoArchival ExtensionId._map['1.2.840.113583.1.1.9.2'] = 'adobe_archive_rev_info' ExtensionId._map['1.2.840.113583.1.1.9.1'] = 'adobe_timestamp' ExtensionId._map['1.2.840.113583.1.1.10'] = 'adobe_ppklite_credential' Extension._oid_specs['adobe_archive_rev_info'] = AdobeArchiveRevInfo Extension._oid_specs['adobe_timestamp'] = AdobeTimestamp Extension._oid_specs['adobe_ppklite_credential'] = Null KeyPurposeId._map['1.2.840.113583.1.1.5'] = 'pdf_signing' CMSAttributeType._map['1.2.840.113583.1.1.8'] = 'adobe_revocation_info_archival' CMSAttribute._oid_specs['adobe_revocation_info_archival'] = SetOfRevocationInfoArchival