Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
Ë øŠjãó¬—dZddlmZmZmZmZddlZddlZddlZddl m Z ddl m Z mZmZej dkrddlmZndd lmZd „Zdd „Zd „Zdd „Zy)zq Encoding DER to PEM and decoding PEM to DER. Exports the following items: - armor() - detect() - unarmor() é)Úunicode_literalsÚdivisionÚabsolute_importÚprint_functionNé)Úunwrap)Ú type_nameÚstr_clsÚbyte_cls)é)ÚStringIO)ÚBytesIOcó²—t|t«sttdt |«««‚|j d«dk7xs|j d«dk7S)zð Detect if a byte string seems to contain a PEM-encoded block :param byte_string: A byte string to look through :return: A boolean, indicating if a PEM-encoded block is contained in the byte string zC byte_string must be a byte string, not %s s -----BEGINéÿÿÿÿs ---- BEGIN)Ú isinstancer Ú TypeErrorrÚ _type_nameÚfind)Ú byte_strings ú?/opt/nydus/tmp/pip-target-96rp6e1e/lib/python/asn1crypto/pem.pyÚdetectrs_€ô �k¤8Ô ,Üœð ô �{Ó #ó  ó ð ð × Ñ ˜MÓ *¨bÑ 0Ò Y°K×4DÑ4DÀ]Ó4SÐWYÑ4YÐYócó®—t|t«s ttdt |«z««‚t|t «sttdt |«««‚|j «jd«}t«}|jd«|j|«|jd«|r}|D]g}|j|jd««|jd«|j||jd««|jd«Œi|jd«tj|«}t|«}d}||kr3|j|||d z«|jd«|d z }||krŒ3|jd «|j|«|jd«|j«S) a  Armors a DER-encoded byte string in PEM :param type_name: A unicode string that will be capitalized and placed in the header and footer of the block. E.g. "CERTIFICATE", "PRIVATE KEY", etc. This will appear as "-----BEGIN CERTIFICATE-----" and "-----END CERTIFICATE-----". :param der_bytes: A byte string to be armored :param headers: An OrderedDict of the header lines to write after the BEGIN line :return: A byte string of the PEM block zA der_bytes must be a byte string, not %s zD type_name must be a unicode string, not %s Úasciis -----BEGIN s----- s: ó ré@s -----END )rr rrrr ÚupperÚencoderÚwriteÚbase64Ú b64encodeÚlenÚgetvalue)r Ú der_bytesÚheadersÚoutputÚkeyÚ b64_bytesÚb64_lenÚis rÚarmorr+2sœ€ô( �i¤Ô *Üœð ä˜YÓ'ñ (ó ó ð ô �i¤Ô )Üœð ô �yÓ !ó  ó ð ð—‘Ó!×(Ñ(¨Ó1€Iä ‹Y€FØ ‡L�L�Ô Ø ‡L�L�ÔØ ‡L�L�ÔÙØò ˆCØ �L‰L˜Ÿ™ GÓ,Ô -Ø �L‰L˜Ô Ø �L‰L˜ ™×,Ñ,¨WÓ5Ô 6Ø �L‰L˜Õ ð  ð � ‰ �UÔÜ× Ñ  Ó+€IÜ�)‹n€GØ €AØ ˆgŠ+Ø� ‰ �Y˜q  R¡Ð(Ô)Ø� ‰ �UÔØ ˆR‰ˆð ˆg‹+ð ‡L�L�ÔØ ‡L�L�ÔØ ‡L�L�Ôà �?‰?Ó Ðrc#óŒK—t|t«sttdt |«««‚d}i}d}d}d}d}|j d«D]Ú}|dk(rŒ |dk(r>t jd|«}|sŒ'|jd«jd«}d }d }ŒL|d k(rQ|jd «d k(rd }n:|jd«} | jdd«\} } | j«|| <Œ¢|d k(sŒ¨|dddvr'tj|«} ||| f–—d}i}d}d}d }ŒÖ||z }ŒÜ|r|sttd««‚y­w)ax Convert a PEM-encoded byte string into one or more DER-encoded byte strings :param pem_bytes: A byte string of the PEM-encoded data :raises: ValueError - when the pem_bytes do not appear to be PEM-encoded bytes :return: A generator of 3-element tuples in the format: (object_type, headers, der_bytes). The object_type is a unicode string of what is between "-----BEGIN " and "-----". Examples include: "CERTIFICATE", "PUBLIC KEY", "PRIVATE KEY". The headers is a dict containing any lines in the form "Name: Value" that are right after the begin line. zA pem_bytes must be a byte string, not %s ÚtrashrNFs1^(?:---- |-----)BEGIN ([A-Z0-9 ]+)(?: ----|-----)rrTr%ó:rÚbodyú:ré)s-----s---- z| pem_bytes does not appear to contain PEM-encoded data - no BEGIN/END combination found )rr rrrÚ splitlinesÚreÚmatchÚgroupÚdecoderÚsplitÚstripr Ú b64decodeÚ ValueError) Ú pem_bytesÚstater%Ú base64_dataÚ object_typeÚ found_startÚ found_endÚlineÚtype_name_matchÚ decoded_lineÚnameÚvaluer$s rÚ_unarmorrFps–èø€ô$ �i¤Ô *Üœð ô �yÓ !ó  ó ð ð €EØ€GØ€KØ€Kà€KØ€Ià×$Ñ$ UÓ+ò& ˆØ �3Š;Ø à �GÒ ô!Ÿh™hÐ'[Ð]aÓbˆOÙ"ØØ)×/Ñ/°Ó2×9Ñ9¸'ÓBˆKàˆK؈EØ à �IÒ Ø�y‰y˜‹ "Ò$Ø‘à#Ÿ{™{¨7Ó3� Ø*×0Ñ0°°aÓ8‘ ��eØ %§ ¡ £ �˜‘ Øà �F‹?Ø�A�aˆyÐ0Ñ0Ü"×,Ñ,¨[Ó9� à" G¨YÐ7Ò7à�Ø�Ø!� Ø"� Ø � Øà ˜4Ñ ‰KðM& ñP ™iÜœð ó ó ð ð(ùs ‚C3EÃ6AEcó6—t|«}|s t|«S|S)a˜ Convert a PEM-encoded byte string into a DER-encoded byte string :param pem_bytes: A byte string of the PEM-encoded data :param multiple: If True, function will return a generator :raises: ValueError - when the pem_bytes do not appear to be PEM-encoded bytes :return: A 3-element tuple (object_name, headers, der_bytes). The object_name is a unicode string of what is between "-----BEGIN " and "-----". Examples include: "CERTIFICATE", "PUBLIC KEY", "PRIVATE KEY". The headers is a dict containing any lines in the form "Name: Value" that are right after the begin line. )rFÚnext)r;ÚmultipleÚ generators rÚunarmorrKÄs!€ô*˜Ó#€Iá Ü�I‹Ðà Ðr)N)F)Ú__doc__Ú __future__rrrrr r3ÚsysÚ_errorsrÚ_typesr rr r Ú version_infoÚ cStringIOr rÚiorr+rFrK©rrúrUsQðñ÷SÓRã Û Û åß>Ñ>à×Ñ�dÒÞ-åòZó.;ò|Q ôhr