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
ó k]Œjc @s:dZddlZddlZddlZddlZddlmZddlmZddl Z ddl m Z m Z m Z ddl m Z ddl mZmZmZmZmZmZddl mZmZmZdd l mZmZmZmZdd l mZmZdd l mZm Z m!Z!d „Z"e"d ƒe"dƒe"dƒe"dƒddl m#Z#m$Z$m%Z%ddl m&Z&d„e'ƒj(ƒDƒZ)y e*Z+Wne,k rÅe-Z+nXddl.m.Z.m/Z/m0Z0m1Z2ej3dkrddl m4Z4m5Z5nddl.m.Z.m6Z6m7Z7m8Z8ddl.m9Z9m:Z:ddl;Z;ddl<Z<e j=rudgZ>ngZ>dZ?dZ@deAfd„ƒYZBdd„ZCd „ZDed!d"ƒZEd#„ZFd$ed$d%ƒfd&„ƒYZGd'eGfd(„ƒYZHeHd)ƒeH_IeHd*ƒeH_Jd+e fd,„ƒYZKeHjIe-e-e-d-„ZLeMe-eNeHjIe-e-e-e-e-d.„ ZOd/ZPd0ZQd1„ZRd2„ZSeTd3„ZUeSd4ƒaVeOZWd5e.fd6„ƒYZXe-e-eNeeMe-eTeTe-d7„ ZYd8„ZZd9Z[d:Z\d;„Z]d<„Z^eMe-d=„Z_d>„Z`e-e-d?„ZadS(@s¶ This module provides some more Pythonic support for SSL. Object types: SSLSocket -- subtype of socket.socket which does SSL over the socket Exceptions: SSLError -- exception raised for I/O errors Functions: cert_time_to_seconds -- convert time string used for certificate notBefore and notAfter functions to integer seconds past the Epoch (the time values returned from time.time()) fetch_server_certificate (HOST, PORT) -- fetch the certificate provided by the server running on HOST at port PORT. No validation of the certificate is performed. Integer constants: SSL_ERROR_ZERO_RETURN SSL_ERROR_WANT_READ SSL_ERROR_WANT_WRITE SSL_ERROR_WANT_X509_LOOKUP SSL_ERROR_SYSCALL SSL_ERROR_SSL SSL_ERROR_WANT_CONNECT SSL_ERROR_EOF SSL_ERROR_INVALID_ERROR_CODE The following group define certificate requirements that one side is allowing/requiring from the other side: CERT_NONE - no certificates from the other side are required (or will be looked at if provided) CERT_OPTIONAL - certificates are not required, but if provided will be validated, and if validation fails, the connection will also fail CERT_REQUIRED - certificates are required, and will be validated, and if validation fails, the connection will also fail The following constants identify various SSL protocol variants: PROTOCOL_SSLv2 PROTOCOL_SSLv3 PROTOCOL_SSLv23 PROTOCOL_TLSv1 PROTOCOL_TLSv1_1 PROTOCOL_TLSv1_2 The following constants identify various SSL alert message descriptions as per http://www.iana.org/assignments/tls-parameters/tls-parameters.xml#tls-parameters-6 ALERT_DESCRIPTION_CLOSE_NOTIFY ALERT_DESCRIPTION_UNEXPECTED_MESSAGE ALERT_DESCRIPTION_BAD_RECORD_MAC ALERT_DESCRIPTION_RECORD_OVERFLOW ALERT_DESCRIPTION_DECOMPRESSION_FAILURE ALERT_DESCRIPTION_HANDSHAKE_FAILURE ALERT_DESCRIPTION_BAD_CERTIFICATE ALERT_DESCRIPTION_UNSUPPORTED_CERTIFICATE ALERT_DESCRIPTION_CERTIFICATE_REVOKED ALERT_DESCRIPTION_CERTIFICATE_EXPIRED ALERT_DESCRIPTION_CERTIFICATE_UNKNOWN ALERT_DESCRIPTION_ILLEGAL_PARAMETER ALERT_DESCRIPTION_UNKNOWN_CA ALERT_DESCRIPTION_ACCESS_DENIED ALERT_DESCRIPTION_DECODE_ERROR ALERT_DESCRIPTION_DECRYPT_ERROR ALERT_DESCRIPTION_PROTOCOL_VERSION ALERT_DESCRIPTION_INSUFFICIENT_SECURITY ALERT_DESCRIPTION_INTERNAL_ERROR ALERT_DESCRIPTION_USER_CANCELLED ALERT_DESCRIPTION_NO_RENEGOTIATION ALERT_DESCRIPTION_UNSUPPORTED_EXTENSION ALERT_DESCRIPTION_CERTIFICATE_UNOBTAINABLE ALERT_DESCRIPTION_UNRECOGNIZED_NAME ALERT_DESCRIPTION_BAD_CERTIFICATE_STATUS_RESPONSE ALERT_DESCRIPTION_BAD_CERTIFICATE_HASH_VALUE ALERT_DESCRIPTION_UNKNOWN_PSK_IDENTITY iÿÿÿÿN(t namedtuple(tclosing(tOPENSSL_VERSION_NUMBERtOPENSSL_VERSION_INFOtOPENSSL_VERSION(t _SSLContext(tSSLErrortSSLZeroReturnErrortSSLWantReadErrortSSLWantWriteErrortSSLSyscallErrort SSLEOFError(t CERT_NONEt CERT_OPTIONALt CERT_REQUIRED(tVERIFY_DEFAULTtVERIFY_CRL_CHECK_LEAFtVERIFY_CRL_CHECK_CHAINtVERIFY_X509_STRICT(ttxt2objtnid2obj(t RAND_statustRAND_egdtRAND_addcCsCx<ttƒD].}|j|ƒr tt|ƒtƒ|}s (tsockett _fileobjectt_delegate_methodsterrortwin32(tenum_certificatest enum_crls(R+tAF_INETt SOCK_STREAMtcreate_connection(t SOL_SOCKETtSO_TYPEs tls-uniques�ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+HIGH:DH+HIGH:RSA+AESGCM:RSA+AES:RSA+HIGH:ECDH+RC4:DH+RC4:RSA+RC4:!aNULL:!eNULL:!MD5:!3DESs�ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+HIGH:DH+HIGH:RSA+AESGCM:RSA+AES:RSA+HIGH:!aNULL:!eNULL:!MD5:!DSS:!RC4:!3DEStCertificateErrorcBseZRS((t__name__t __module__(((s/usr/lib64/python2.7/ssl.pyR7³sic CsRg}|stS|jdƒ}|d}|d}|jdƒ}||krgtdt|ƒƒ‚n|sƒ|jƒ|jƒkS|dkrŸ|jdƒnY|jdƒs½|jdƒrÖ|jtj |ƒƒn"|jtj |ƒj dd ƒƒx$|D]}|jtj |ƒƒqÿWtj d d j |ƒd tj ƒ} | j|ƒS( shMatching according to RFC 6125, section 6.4.3 http://tools.ietf.org/html/rfc6125#section-6.4.3 t.iit*s,too many wildcards in certificate DNS name: s[^.]+sxn--s\*s[^.]*s\As\.s\Z(tFalsetsplittcountR7treprtlowertappendRtretescapetreplacetcompiletjoint IGNORECASEtmatch( tdnthostnamet max_wildcardstpatstpiecestleftmostt remaindert wildcardstfragtpat((s/usr/lib64/python2.7/ssl.pyt_dnsname_match·s*    " &cCs[|stdƒ‚ng}|jdd ƒ}xC|D];\}}|dkr4t||ƒr_dS|j|ƒq4q4W|sßxc|jddƒD]L}xC|D];\}}|dkr™t||ƒrÄdS|j|ƒq™q™WqŒWnt|ƒdkrtd|d jtt|ƒƒfƒ‚n;t|ƒdkrKtd ||d fƒ‚n td ƒ‚dS(s)Verify that *cert* (in decoded format as returned by SSLSocket.getpeercert()) matches the *hostname*. RFC 2818 and RFC 6125 rules are followed, but IP addresses are not accepted for *hostname*. CertificateError is raised on failure. On success, the function returns nothing. stempty or no certificate, match_hostname needs a SSL socket or SSL context with either CERT_OPTIONAL or CERT_REQUIREDtsubjectAltNametDNSNtsubjectt commonNameis&hostname %r doesn't match either of %ss, shostname %r doesn't match %ris=no appropriate commonName or subjectAltName fields were found((( t ValueErrortgetRSRAtlenR7RFtmapR?(tcertRJtdnsnamestsantkeyR*tsub((s/usr/lib64/python2.7/ssl.pytmatch_hostnameês.  %tDefaultVerifyPathssQcafile capath openssl_cafile_env openssl_cafile openssl_capath_env openssl_capathcCs†tjƒ}tjj|d|dƒ}tjj|d|dƒ}ttjj|ƒra|ndtjj |ƒr||nd|ŒS(s/Return paths to default cafile and capath. iiiiN( Rtget_default_verify_pathstostenvironRYRbtpathtisfiletNonetisdir(tpartstcafiletcapath((s/usr/lib64/python2.7/ssl.pyRcs  t _ASN1Objectsnid shortname longname oidcBs;eZdZdZd„Zed„ƒZed„ƒZRS(s#ASN.1 object identifier lookup cCs%tt|ƒj|t|dtƒŒS(NR)(tsuperRmt__new__t_txt2objR<(tclstoid((s/usr/lib64/python2.7/ssl.pyRo,scCstt|ƒj|t|ƒŒS(s3Create _ASN1Object from OpenSSL numeric ID (RnRmRot_nid2obj(Rqtnid((s/usr/lib64/python2.7/ssl.pytfromnid/scCs%tt|ƒj|t|dtƒŒS(s=Create _ASN1Object from short name, long name or OID R)(RnRmRoRptTrue(RqR)((s/usr/lib64/python2.7/ssl.pytfromname5s((R8R9t__doc__t __slots__Rot classmethodRuRw(((s/usr/lib64/python2.7/ssl.pyRm's  tPurposecBseZdZRS(sDSSLContext purpose flags with X509v3 Extended Key Usage objects (R8R9Rx(((s/usr/lib64/python2.7/ssl.pyR{<ss1.3.6.1.5.5.7.3.1s1.3.6.1.5.5.7.3.2t SSLContextcBsbeZdZd Zd Zd„Zd„Zeeed d„Z d„Z d „Z e jd „ZRS(s|An SSLContext holds various SSL-related configuration options and data, such as certificates and possibly a private key.tprotocolt __weakref__tCAtROOTcOs2tj||ƒ}|tkr.|jtƒn|S(N(RRot_SSLv2_IF_EXISTSt set_cipherst_DEFAULT_CIPHERS(RqR}targstkwargstself((s/usr/lib64/python2.7/ssl.pyRoKs cCs ||_dS(N(R}(R†R}((s/usr/lib64/python2.7/ssl.pyt__init__Qsc Cs+td|d|d|d|d|d|ƒS(Ntsockt server_sidetdo_handshake_on_connecttsuppress_ragged_eofstserver_hostnamet_context(t SSLSocket(R†RˆR‰RŠR‹RŒ((s/usr/lib64/python2.7/ssl.pyt wrap_socketTs cCs�tƒ}xp|D]h}|jdƒ}t|ƒdksIt|ƒdkrXtdƒ‚n|jt|ƒƒ|j|ƒqW|j|ƒdS(Ntasciiiiÿs(NPN protocols must be 1 to 255 in length(t bytearraytencodeRZRRAtextendt_set_npn_protocols(R†t npn_protocolstprotosR}tb((s/usr/lib64/python2.7/ssl.pytset_npn_protocols^s  $cCswtƒ}xWt|ƒD]I\}}}|dkr|tksL|j|kr_|j|ƒq_qqW|jd|ƒ|S(Ntx509_asntcadata(R‘R0RvRrR“tload_verify_locations(R†t storenametpurposetcertsR\tencodingttrust((s/usr/lib64/python2.7/ssl.pyt_load_windows_store_certsis  cCsbt|tƒst|ƒ‚ntjdkrTx.|jD]}|j||ƒq7Wn |jƒdS(NR/(t isinstanceRmt TypeErrortsystplatformt_windows_cert_storesR¡tset_default_verify_paths(R†R�Rœ((s/usr/lib64/python2.7/ssl.pytload_default_certsss (sprotocols __weakref__(RR€N(R8R9RxRyR¦RoR‡R<RvRhR�R˜R¡R{t SERVER_AUTHR¨(((s/usr/lib64/python2.7/ssl.pyR|Ds    cCsBt|tƒst|ƒ‚nttƒ}|jtO_|jtO_|jtt ddƒO_|t j kr‡t |_ t|_np|t jkr÷|jtt ddƒO_|jtt ddƒO_|jtt ddƒO_|jtƒn|s |s |r|j|||ƒn|j tkr>|j|ƒn|S(síCreate a SSLContext object with default settings. NOTE: The protocol and settings may change anytime without prior deprecation. The values represent a fair balance between maximum compatibility and security. tOP_NO_COMPRESSIONitOP_CIPHER_SERVER_PREFERENCEtOP_SINGLE_DH_USEtOP_SINGLE_ECDH_USE(R¢RmR£R|tPROTOCOL_SSLv23toptionst OP_NO_SSLv2t OP_NO_SSLv3RRR{R©Rt verify_modeRvtcheck_hostnamet CLIENT_AUTHR‚t_RESTRICTED_SERVER_CIPHERSR›R R¨(R�RkRlRštcontext((s/usr/lib64/python2.7/ssl.pytcreate_default_context}s&   c Csàt|tƒst|ƒ‚nt|ƒ} | jtO_|dk rQ|| _n|| _|rv| rvt dƒ‚n|s‚|r•| j ||ƒn|s§|s§|r½| j |||ƒn| jt krÜ| j |ƒn| S(s/Create a SSLContext object for Python stdlib modules All Python stdlib modules shall use this function to create SSLContext objects in order to keep common settings in one place. The configuration is less restrict than create_default_context()'s to increase backward compatibility. scertfile must be specifiedN(R¢RmR£R|R¯R°RhR²R³RXtload_cert_chainR›R R¨( R}t cert_reqsR³R�tcertfiletkeyfileRkRlRšR¶((s/usr/lib64/python2.7/ssl.pyt_create_unverified_context­s       tPYTHONHTTPSVERIFYs!/etc/python/cert-verification.cfgcCs tdƒS(Nthttps(t_get_verify_status(((s/usr/lib64/python2.7/ssl.pytØscCsÜtjjsAtjjtƒ}|dk rA|dkr:tSt Snit d6t d6td6}ddl }y/|j ƒ}|j t ƒ|j|dƒ}Wn#|j|jfk r¼d}nX|jdƒ}|j||ƒS(Nt0tplatform_defaulttenabletdisableiÿÿÿÿtverify(R¤tflagstignore_environmentRdReRYt_https_verify_envvarRhR¼R·t ConfigParsertRawConfigParsertreadt_cert_verification_configtNoSectionErrort NoOptionError(R}tconfig_settingtcontext_factoryRÉtconfigtstatustdefault((s/usr/lib64/python2.7/ssl.pyR¿Ús&        cCs|rtantadS(s,Verify server HTTPS certificates by default?N(R·t_create_default_https_contextR¼(RÃ((s/usr/lib64/python2.7/ssl.pyt_https_verify_certificatesõs R¾RŽcBs©eZdZd&d&d&eeed&eee dd&ed&d&d&d&d„Z e d„ƒZ e j d„ƒZ d„Zd&d„Zd„Zdd&d„Zd „Zed „Zd „Zd „Zd „Zdd„Zd&d„Zdd„Zddd„Zd&dd„Zddd„Zd&dd„Zd„Zd„Zd„Z d„Z!d„Z"ed„Z#d„Z$d„Z%d„Z&d„Z'd d!d"„Z(d#d$„Z)d%„Z*RS('sµThis class implements a subtype of socket.socket that wraps the underlying OS socket in an SSL context when necessary, and provides read and write methods over that channel.ic Cs d|_d|_|r$||_n|r@| r@tdƒ‚n|r\| r\tdƒ‚n|rr| rr|}nt|ƒ|_||j_|r¦|jj|ƒn|rÂ|jj||ƒn|rÛ|jj |ƒn|rô|jj |ƒn||_ ||_ ||_ ||_||_||_|jttƒtkrQtdƒ‚ntj|d|jƒx3tD]+}yt||ƒWqntk r˜qnXqnW|r¸|r¸tdƒ‚n|jjrï| rïtràtdƒ‚qïtdƒ‚n||_||_||_ | |_!|j"ƒ}y|j#ƒWnt$k rE}|j%t%j&krW‚nt'}|j"ƒdk}|j(t'ƒy|j)d ƒ}Wn:t$k rË}|j%t%j&t%j*fkr‚nd }nX|j(|ƒ|rLd }t+|j%|ƒ}||_,d|_-y|j.ƒWnt/k r*nXz |‚Wdd}XqLnXt0}|j1|ƒt'|_2d|_||_3|ryb|jj4|j||d |ƒ|_|rÛ|j"ƒ}|d krÎtdƒ‚n|j5ƒnWqt/tfk r|j.ƒ‚qXndS(Nis5certfile must be specified for server-side operationsscertfile must be specifieds!only stream sockets are supportedt_socks4server_hostname can only be specified in client modes'check_hostname requires server_hostnamesWcheck_hostname requires server_hostname, but it's not supported by your OpenSSL libraryits4Closed before TLS handshake with data in recv buffertssl_sockgsHdo_handshake_on_connect should not be specified for non-blocking sockets(6Rht_sslobjt_makefile_refsR�RXR|R²R›R¸R˜R‚R»RºR¹t ssl_versiontca_certstcipherst getsockoptR5R6R3tNotImplementedErrorR+R‡RÖR-tdelattrtAttributeErrorR³R$R‰RŒRŠR‹t gettimeoutt getpeernamet socket_errorterrnotENOTCONNR<t setblockingtrecvtEINVALRtreasontlibrarytclosetOSErrorRvt settimeoutt_closedt _connectedt _wrap_sockett do_handshake(R†RˆR»RºR‰R¹RÛRÜRŠtfamilyttypetprototfilenoR‹R•RÝRŒR�tattrt sock_timeouttet connectedtblockingtnotconn_pre_handshake_dataRêt notconn_pre_handshake_data_errorttimeout((s/usr/lib64/python2.7/ssl.pyR‡ s²                                    cCs|jS(N(R�(R†((s/usr/lib64/python2.7/ssl.pyR¶‹scCs||_||j_dS(N(R�RÙR¶(R†tctx((s/usr/lib64/python2.7/ssl.pyR¶�s cCstd|jjƒ‚dS(NsCan't dup() %s instances(tNotImplementedt __class__R8(R†((s/usr/lib64/python2.7/ssl.pytdup”scCsdS(N((R†tmsg((s/usr/lib64/python2.7/ssl.pyt _checkClosed˜scCs|js|jƒndS(N(RðRã(R†((s/usr/lib64/python2.7/ssl.pyt_check_connectedœs cCs¶|jƒ|js"tdƒ‚nyD|dk rI|jj||ƒ}n|jj|p[dƒ}|SWnItk r±}|jdtkr«|jr«|dk r¤dSdSq²‚nXdS(sORead up to LEN bytes and return them. Return zero-length string on EOF.s'Read on closed or unwrapped SSL socket.iiR×N( RRÙRXRhRËRR„t SSL_ERROR_EOFR‹(R†RZtbuffertvtx((s/usr/lib64/python2.7/ssl.pyRˤs    cCs2|jƒ|js"tdƒ‚n|jj|ƒS(shWrite DATA to the underlying SSL channel. Returns number of bytes of DATA actually transmitted.s(Write on closed or unwrapped SSL socket.(RRÙRXtwrite(R†tdata((s/usr/lib64/python2.7/ssl.pyR ºs  cCs$|jƒ|jƒ|jj|ƒS(sáReturns a formatted version of the data in the certificate provided by the other end of the SSL channel. Return None if no certificate was provided, {} if a certificate was provided, but not validated.(RRRÙtpeer_certificate(R†t binary_form((s/usr/lib64/python2.7/ssl.pyt getpeercertÃs  cCs3|jƒ|j stj r"dS|jjƒSdS(N(RRÙRR&Rhtselected_npn_protocol(R†((s/usr/lib64/python2.7/ssl.pyRÍs cCs(|jƒ|jsdS|jjƒSdS(N(RRÙRhtcipher(R†((s/usr/lib64/python2.7/ssl.pyRÔs  cCs(|jƒ|jsdS|jjƒSdS(N(RRÙRht compression(R†((s/usr/lib64/python2.7/ssl.pyRÛs  cCs°|jƒ|jr™|dkr5td|jƒ‚ny|jj|ƒ}WnDtk r‘}|jdtkrtdS|jdtkr‹dS‚q¬X|Sn|j j ||ƒSdS(Nis3non-zero flags not allowed in calls to send() on %s( RRÙRXRR RR„tSSL_ERROR_WANT_READtSSL_ERROR_WANT_WRITERÖtsend(R†R RÆRR ((s/usr/lib64/python2.7/ssl.pyRâs    cCsb|jƒ|jr)td|jƒ‚n5|dkrH|jj||ƒS|jj|||ƒSdS(Ns%sendto not allowed on instances of %s(RRÙRXRRhRÖtsendto(R†R t flags_or_addrtaddr((s/usr/lib64/python2.7/ssl.pyR÷s   cCs’|jƒ|jr{|dkr5td|jƒ‚nt|ƒ}d}x-||krv|j||ƒ}||7}qJW|Stj|||ƒSdS(Nis6non-zero flags not allowed in calls to sendall() on %s(RRÙRXRRZRR+tsendall(R†R RÆtamountR>R((s/usr/lib64/python2.7/ssl.pyRs    icCsY|jƒ|jrB|dkr5td|jƒ‚n|j|ƒS|jj||ƒSdS(Nis3non-zero flags not allowed in calls to recv() on %s(RRÙRXRRËRÖRè(R†tbuflenRÆ((s/usr/lib64/python2.7/ssl.pyRès    cCs•|jƒ|r+|dkr+t|ƒ}n|dkr@d}n|jr{|dkrktd|jƒ‚n|j||ƒS|jj|||ƒSdS(Niis8non-zero flags not allowed in calls to recv_into() on %s( RRhRZRÙRXRRËRÖt recv_into(R†RtnbytesRÆ((s/usr/lib64/python2.7/ssl.pyRs     cCs@|jƒ|jr)td|jƒ‚n|jj||ƒSdS(Ns'recvfrom not allowed on instances of %s(RRÙRXRRÖtrecvfrom(R†RRÆ((s/usr/lib64/python2.7/ssl.pyR,s   cCsC|jƒ|jr)td|jƒ‚n|jj|||ƒSdS(Ns,recvfrom_into not allowed on instances of %s(RRÙRXRRÖt recvfrom_into(R†RRRÆ((s/usr/lib64/python2.7/ssl.pyR4s   cCs(|jƒ|jr |jjƒSdSdS(Ni(RRÙtpending(R†((s/usr/lib64/python2.7/ssl.pyR=s   cCs'|jƒd|_tj||ƒdS(N(RRhRÙR+tshutdown(R†thow((s/usr/lib64/python2.7/ssl.pyR Ds  cCs;|jdkr(d|_tj|ƒn|jd8_dS(Ni(RÚRhRÙR+Rì(R†((s/usr/lib64/python2.7/ssl.pyRìIs cCs?|jr%|jjƒ}d|_|Stdt|ƒƒ‚dS(NsNo SSL wrapper around (RÙR RhRXtstr(R†ts((s/usr/lib64/python2.7/ssl.pytunwrapPs   cCsd|_tj|ƒdS(N(RhRÙR+t _real_close(R†((s/usr/lib64/python2.7/ssl.pyR%Xs cCs›|jƒ|jƒ}z3|dkr;|r;|jdƒn|jjƒWd|j|ƒX|jjr—|js~t dƒ‚nt |j ƒ|jƒndS(sPerform a TLS/SSL handshake.gNs-check_hostname needs server_hostname argument( RRâRîRhRÙRòR¶R³RŒRXRaR(R†tblockRþ((s/usr/lib64/python2.7/ssl.pyRò\s    cCsâ|jrtdƒ‚n|jr0tdƒ‚n|jj|jt|jd|ƒ|_ya|rut j ||ƒ}nd}t j ||ƒ|s³t |_|jr³|jƒq³n|SWn#ttfk rÝd|_‚nXdS(Ns!can't connect in server-side modes/attempt to connect already-connected SSLSocket!RØ(R‰RXRðR¶RñRÖR<RŒRÙR+t connect_exRhtconnectRvRŠRòRí(R†RR'trc((s/usr/lib64/python2.7/ssl.pyt _real_connectms$  '   cCs|j|tƒdS(sQConnects to remote ADDR, and then wraps the connection in an SSL channel.N(R*R<(R†R((s/usr/lib64/python2.7/ssl.pyR(„scCs|j|tƒS(sQConnects to remote ADDR, and then wraps the connection in an SSL channel.(R*Rv(R†R((s/usr/lib64/python2.7/ssl.pyR'‰scCsItj|ƒ\}}|jj|d|jd|jdtƒ}||fS(s¿Accepts a new connection from a remote client, and returns a tuple containing that new connection wrapped with a server-side SSL channel, and the address of the remote client.RŠR‹R‰(R+tacceptR¶R�RŠR‹Rv(R†tnewsockR((s/usr/lib64/python2.7/ssl.pyR+Žs    triÿÿÿÿcCs%|jd7_t|||dtƒS(s�Make and return a file-like object that works with the SSL connection. Just use the code from the socket module.iRì(RÚR,Rv(R†tmodetbufsize((s/usr/lib64/python2.7/ssl.pytmakefilešss tls-uniquecCs_|tkrtdƒ‚n|dkr?tdj|ƒƒ‚n|jdkrRdS|jjƒS(säGet channel binding data for current connection. Raise ValueError if the requested `cb_type` is not supported. Return bytes of the data or None if the data is not available (e.g. before the handshake). s Unsupported channel binding types tls-uniques({0} channel binding type not implementedN(tCHANNEL_BINDING_TYPESRXRßtformatRÙRht tls_unique_cb(R†tcb_type((s/usr/lib64/python2.7/ssl.pytget_channel_binding¥s  cCs |jdkrdS|jjƒS(s— Return a string identifying the protocol version used by the current SSL channel, or None if there is no established channel. N(RÙRhtversion(R†((s/usr/lib64/python2.7/ssl.pyR6´sN(+R8R9RxRhR<R R®RvR2R3R‡tpropertyR¶tsetterRRRRËR RRRRRRRRèRRRRR RìR$R%RòR*R(R'R+R0R5R6(((s/usr/lib64/python2.7/ssl.pyRŽsP    z                    c CsCtd|d|d|d|d|d|d|d|d |d | ƒ S( NRˆR»RºR‰R¹RÛRÜRŠR‹RÝ(RŽ( RˆR»RºR‰R¹RÛRÜRŠR‹RÝ((s/usr/lib64/python2.7/ssl.pyR�¾s   c Cs­ddlm}ddlm}d}d}y!|j|d jƒƒd}Wn'tk rvtd||fƒ‚n3X||d|ƒ}||d|f|dd!ƒSdS(s‰Return the time in seconds since the Epoch, given the timestring representing the "notBefore" or "notAfter" date from a certificate in ``"%b %d %H:%M:%S %Y %Z"`` strptime format (C locale). "notBefore" or "notAfter" dates must use UTC (RFC 5280). Month is one of: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec UTC should be specified as GMT (see ASN1_TIME_print()) iÿÿÿÿ(tstrptime(ttimegmtJantFebtMartAprtMaytJuntJultAugtSeptOcttNovtDecs %d %H:%M:%S %Y GMTiis*time data %r does not match format "%%b%s"iiiN( R;R<R=R>R?R@RARBRCRDRERF(ttimeR9tcalendarR:tindexttitleRX(t cert_timeR9R:tmonthst time_formatt month_numberttt((s/usr/lib64/python2.7/ssl.pytcert_time_to_secondsÎs ! s-----BEGIN CERTIFICATE-----s-----END CERTIFICATE-----cCs<tj|ƒjdƒ}tdtj|dƒdtdS(s[Takes a certificate in binary DER format and returns the PEM version of it as a string.R�s i@(tbase64tstandard_b64encodetdecodet PEM_HEADERttextwraptfillt PEM_FOOTER(tder_cert_bytestf((s/usr/lib64/python2.7/ssl.pytDER_cert_to_PEM_certïscCsƒ|jtƒs"tdtƒ‚n|jƒjtƒsJtdtƒ‚n|jƒttƒttƒ !}tj|j ddƒƒS(shTakes a certificate in ASCII PEM format and returns the DER-encoded version of it as a byte sequences(Invalid PEM encoding; must start with %ss&Invalid PEM encoding; must end with %stASCIItstrict( RRTRXtstriptendswithRWRZRQt decodestringR’(tpem_cert_stringtd((s/usr/lib64/python2.7/ssl.pytPEM_cert_to_DER_certøs   c Cs‘|\}}|dk r!t}nt}t|d|d|ƒ}tt|ƒƒ�4}t|j|ƒƒ�}|jtƒ} WdQXWdQXt | ƒS(s÷Retrieve the certificate from the server at the specified address, and return it as a PEM-encoded string. If 'ca_certs' is specified, validate the server cert against it. If 'ssl_version' is specified, use it in the connection attempt.R¹RkN( RhRR t_create_stdlib_contextRR4R�RRvRZ( RRÛRÜthosttportR¹R¶Rˆtsslsocktdercert((s/usr/lib64/python2.7/ssl.pytget_server_certificates     cCstj|dƒS(Ns (t_PROTOCOL_NAMESRY(t protocol_code((s/usr/lib64/python2.7/ssl.pytget_protocol_namescCs‹t|dƒr|j}nttƒ}|s3|rF|j||ƒn|j|dtƒ}y|jƒWntk r|n X|j ƒ|S(sŒA replacement for the old socket.ssl function. Designed for compability with Python 2.5 and earlier. Will disappear in Python 3.0.RÖR‰( thasattrRÖR|R®R¸RñR<RãRäRò(RˆR»RºRÿRØ((s/usr/lib64/python2.7/ssl.pytsslwrap_simples     (bRxRURBR¤Rdt collectionsRt contextlibRRRRRRRRRR R R R R RRRRRRRpRRsRRRRR$R%R&R'RtitemsRitPROTOCOL_SSLv2R�t NameErrorRhR+R,R-R.RäR¥R0R1R2R3R4R5R6RQRåtHAS_TLS_UNIQUER1RƒRµRXR7RSRaRbRcRmR{R©R´R|R·R®R<R¼RÈRÌt_get_https_context_factoryR¿RvRÕRÔRcRŽR�RPRTRWRZRbRhRkRm(((s/usr/lib64/python2.7/ssl.pytXsœ     ."        ""     3 +  9 / #   ÿº