/usr/lib/python2.6/site-packages/glanceclient/common
NameSizeModeActions
base.py11810644editdlrm
base.pyc7490644editdlrm
exceptions.py1740644editdlrm
exceptions.pyc2090644editdlrm
http.py128820644editdlrm
http.pyc123110644editdlrm
https.py132530644editdlrm
https.pyc124390644editdlrm
progressbar.py31730644editdlrm
progressbar.pyc34900644editdlrm
utils.py154120644editdlrm
utils.pyc165880644editdlrm
__init__.py00644editdlrm
__init__.pyc1600644editdlrm
Edit: /usr/lib/python2.6/site-packages/glanceclient/common/https.pyc (12439B)
Ñò eZdZd„Zd„Zd„Zdd„Zd„ZRS(s¦This adapter will be used just when ssl compression should be disabled. The init method overwrites the default https pool by setting glanceclient's one. cOs0ti}t|dR;t request_urlR6tPY2Rt safe_encode(R@trequesttproxiesturl((sF/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/common/https.pyRDšs c Cs—|ii}ti|ƒ}|ipd}|iiddƒd}t|||}|iii i i ƒz ||ii|i ||fR;tget_connectiontKeyErrorRRW(R@RIRH((sF/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/common/https.pyRX°s cCs=tt|ƒi||||ƒ|d|_|d|_dS(Nii(R>R;t cert_verifytca_certstinsecure(R@tconnRItverifytcert((sF/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/common/https.pyRZ¼s N( t__name__t __module__t__doc__R?RDRWR*RXRZ(((sF/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/common/https.pyR;s     R=cBseZdZdZd„ZRS(sˆ HTTPSConnectionPool will be instantiated when a new connection is requested to the HTTPSAdapter. This implementation overwrites the _new_conn method and returns an instances of glanceclient's VerifiedHTTPSConnection which handles no compression. ssl_compression is hard-coded to False because this will be used just when the user sets --no-ssl-compression. s glance+httpscCsR|id7_td|id|id|id|id|id|idtƒS( NiRRLtkey_filet cert_filetcacertR\tssl_compression( tnum_connectionstVerifiedHTTPSConnectionRRLRcRdR[R\tFalse(R@((sF/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/common/https.pyt _new_connÑs     (R`RaRbRSRj(((sF/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/common/https.pyR=Âs tOpenSSLConnectionDelegatorcBs)eZdZd„Zd„Zd„ZRS(s An OpenSSL.SSL.Connection delegator. Supplies an additional 'makefile' method which httplib requires and is not present in OpenSSL.SSL.Connection. Note: Since it is not possible to inherit from OpenSSL.SSL.Connection a delegator must be used. cOst||Ž|_dS(N(t ConnectionR(R@RARB((sF/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/common/https.pyR?åscCst|i|ƒS(N(tgetattrR(R@R"((sF/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/common/https.pyt __getattr__èscOsti|i||ŽS(N(Rt _fileobjectR(R@RARB((sF/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/common/https.pytmakefileës(R`RaRbR?RnRp(((sF/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/common/https.pyRkÜs  RhcBsDeZdZdZdddddeed„Zd„Zd„Z RS(sÇ Extended HTTPSConnection which uses the OpenSSL library for enhanced SSL support. Note: Much of this functionality can eventually be replaced with native Python 3.3 code. s}ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:eCDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSSc Csêtiotttif} ntttif} y‡ti|||d|d|ƒ||_ ||_ ||_ ||_ | |_ ||_|djodn t|ƒ|_|iƒWn*| j o} tit| ƒƒ‚nXdS(NRcRd(R6tPY3t TypeErrortFileNotFoundErrortssltSSLErrortIOErrorR R?RcRdttimeoutR\t is_verifiedRfR*R.Ret set_contextRtSSLConfigurationError( R@RRLRcRdReRwR\Rftexcp_lstte((sF/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/common/https.pyR?üs"       #cCs@tiitiiƒ|_|ii|iƒ|itjo|ii dƒn|i t j o)|ii tii td|iƒƒn|ii tiid„ƒ|ioºy|ii|iƒWn7tj o+}d|i|f}ti|ƒ‚nX|idjoUy|ii|iƒWqgtj o+}d|i|f}ti|ƒ‚qgXqkn|ioUy|ii|iƒWqÊtj o+}d|i|f}ti|ƒ‚qÊXn|io[y|iit|iƒƒWq<tj o+}d|i|f}ti|ƒ‚q<Xn|iiƒdS( sSet up the OpenSSL context.iRcWstS((R(RA((sF/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/common/https.pyt+ss Unable to load cert from "%s" %ss9No key file specified and unable to load key from "%s" %ssUnable to load key from "%s" %ssUnable to load CA from "%s" %sN(tOpenSSLR tContextt SSLv23_METHODtcontexttset_cipher_listtCIPHERSRfRit set_optionsR\Rt set_verifyt VERIFY_PEERRRt VERIFY_NONERdtuse_certificate_filet ExceptionRRzRcR*tuse_privatekey_fileRetload_verify_locationsR:tset_default_verify_paths(R@R|R((sF/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/common/https.pyRysF    cCs ti|i|idtiƒ}|oV|dd}|tijotititiƒ}q–tititiƒ}ntititiƒ}|idj o/|i ti ti t i d|idƒƒnt|i|ƒ|_|ii|i|ifƒdS(sp Connect to an SSL port using the OpenSSL library and apply per-connection parameters. itLLN(Rt getaddrinfoRRLt SOCK_STREAMtAF_INET6tAF_INETRwR*t setsockoptt SOL_SOCKETt SO_RCVTIMEOtstructtpackRkRtsocktconnect(R@tresultt socket_familyR—((sF/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/common/https.pyR˜Ls N( R`RaRbRƒR*RiRR?RyR˜(((sF/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/common/https.pyRhïs   .(-RRtR•R~trequestsRRtrequests.packages.urllib3RRt ImportErrorturllib3t oslo_utilsRR6t six.movesRtglanceclient.commonRteventletRtis_monkey_patchedteventlet.green.httplibR teventlet.green.OpenSSL.SSLR Rlteventlet.greenioR t getsockoptR R t glanceclientRR*RRRR:t HTTPAdapterR;R=tobjectRkRh(((sF/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/common/https.pytsJ          * 3