/usr/lib/python2.6/site-packages/ndg/httpsclient
NameSizeModeActions
test/-0755rm
https.py48340644editdlrm
https.pyc50620644editdlrm
ssl_context_util.py34580644editdlrm
ssl_context_util.pyc40410644editdlrm
ssl_peer_verification.py96610644editdlrm
ssl_peer_verification.pyc91640644editdlrm
ssl_socket.py93440644editdlrm
ssl_socket.pyc123320644editdlrm
subj_alt_name.py61310644editdlrm
subj_alt_name.pyc68580644editdlrm
urllib2_build_opener.py26890644editdlrm
urllib2_build_opener.pyc26280644editdlrm
utils.py157360644editdlrm
utils.pyc132160644editdlrm
__init__.py3900644editdlrm
__init__.pyc6250644editdlrm
Edit: /usr/lib/python2.6/site-packages/ndg/httpsclient/https.pyc (5062B)
Ñò ˜KVc @s%dZdZdZdZdZdZdZddkZddkZddk Z e i d d jo4dd k l Z dd k l Z dd klZn1dd kl Z dd kl Z dd klZddklZddklZeieƒZde fd„ƒYZdefd„ƒYZdS(s¯ndg_httpsclient HTTPS module containing PyOpenSSL implementation of httplib.HTTPSConnection PyOpenSSL utility to make a httplib-like interface suitable for use with urllib2 sP J Kershaw (STFC)s09/12/11s2(C) 2012 Science and Technology Facilities Councils-BSD - see LICENSE file in top-level directorysPhilip.Kershaw@stfc.ac.uks$Id$iÿÿÿÿNii(t HTTPS_PORT(tHTTPConnection(tAbstractHTTPHandler(tSSL(t SSLSockettHTTPSConnectioncBsGeZdZeZeiZdde i dd„Z d„Z d„Z RS(sTThis class allows communication via SSL using PyOpenSSL. It is based on httplib.HTTPSConnection, modified to use PyOpenSSL. Note: This uses the constructor inherited from HTTPConnection to allow it to be used with httplib and HTTPSContextHandler. To use the class directly with an SSL context set ssl_context after construction. @cvar default_port: default port for this class (443) @type default_port: int @cvar default_ssl_method: default SSL method used if no SSL context is explicitly set - defaults to version 2/3. @type default_ssl_method: int cCs{ti|||||ƒt|dƒp d|_n|dj o4t|tiƒptd|ƒ‚n||_ndS(Nt ssl_contextsLExpecting OpenSSL.SSL.Context type for "ssl_context" keyword; got %r instead( Rt__init__thasattrtNoneRt isinstanceRtContextt TypeError(tselfthosttporttstrictttimeoutR((s9/usr/lib/python2.6/site-packages/ndg/httpsclient/https.pyR5s  cCsÐt|ddƒo:t|itiƒptd|iƒ‚n|i}nti|iiƒ}t i |i |i f|i ƒ}t|ddƒo||_|iƒnt||ƒ|_|iiƒdS(s.Create SSL socket and connect to peer RsNExpecting OpenSSL.SSL.Context type for "ssl_context" attribute; got %r insteadt _tunnel_hostN(tgetattrR R RRR R t __class__tdefault_ssl_methodtsockettcreate_connectionRRRtsockt_tunnelRtset_connect_state(R RR((s9/usr/lib/python2.6/site-packages/ndg/httpsclient/https.pytconnectCs ! cCs(t|idƒo|iiƒndS(s)Close socket and shut down SSL connectiontcloseN(RRR(R ((s9/usr/lib/python2.6/site-packages/ndg/httpsclient/https.pyR[sN(t__name__t __module__t__doc__Rt default_portRt SSLv23_METHODRR Rt_GLOBAL_DEFAULT_TIMEOUTRRR(((s9/usr/lib/python2.6/site-packages/ndg/httpsclient/https.pyR$s   tHTTPSContextHandlercBs,eZdZeiZdd„Zd„ZRS(sSHTTPS handler that allows a SSL context to be set for the SSL connections. icCsjti||ƒ|dj o4t|tiƒptd|ƒ‚n||_ntitiƒ|_dS(sµ @param ssl_context:SSL context @type ssl_context: OpenSSL.SSL.Context @param debuglevel: debug level for HTTPSHandler @type debuglevel: int sLExpecting OpenSSL.SSL.Context type for "ssl_context" keyword; got %r insteadN( RRR R RR R Rt TLSv1_METHOD(R Rt debuglevel((s9/usr/lib/python2.6/site-packages/ndg/httpsclient/https.pyRgs  cCs2tdttfh|id6ƒ}|i||ƒS(scOpens HTTPS request @param req: HTTP request @return: HTTP Response object tCustomHTTPSContextConnectionR(ttypeRtobjectRtdo_open(R treqtcustomHTTPSContextConnection((s9/usr/lib/python2.6/site-packages/ndg/httpsclient/https.pyt https_openys (RRRRt do_request_t https_requestRR,(((s9/usr/lib/python2.6/site-packages/ndg/httpsclient/https.pyR#as  (Rt __author__t__date__t __copyright__t __license__t __contact__t __revision__tloggingRtsyst version_infot http.clientRRturllib.requestRthttplibturllib2tOpenSSLRtndg.httpsclient.ssl_socketRt getLoggerRtlogRR#(((s9/usr/lib/python2.6/site-packages/ndg/httpsclient/https.pyts*   =