ok
Direktori : /proc/thread-self/root/proc/self/root/usr/lib64/python2.7/site-packages/M2Crypto/ |
Current File : //proc/thread-self/root/proc/self/root/usr/lib64/python2.7/site-packages/M2Crypto/httpslib.pyc |
� z\Vc @ s� d Z d d l Z d d l Z d d l Z d d l m Z m Z d d l Z d d l Td d l m Z d d l Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( se M2Crypto support for Python's httplib. Copyright (c) 1999-2004 Ng Pheng Siong. All rights reserved.i����N( t urlsplitt urlunsplit( t *( t HTTPS_PORTt HTTPSConnectionc B sG e Z d Z e Z d d d � Z d � Z d � Z d � Z d � Z RS( sA This class allows communication via SSL using M2Crypto. c K s d | _ | j � } y | j d � Wn t k r9 n Xy | j d � Wn t k r^ n Xy | j d � Wn t k r� n X| r� t d � � n y5 | d | _ t | j t j � s� t | j � � Wn# t k r� t j d � | _ n Xt j | | | | � d S( Nt key_filet cert_filet ssl_contexts unknown keyword argumentt sslv23( t Nonet sessiont keyst removet ValueErrort ssl_ctxt isinstancet SSLt Contextt AssertionErrort KeyErrort HTTPConnectiont __init__( t selft hostt portt strictt sslR ( ( s7 /usr/lib64/python2.7/site-packages/M2Crypto/httpslib.pyR s, ( c C s d } x� t j | j | j d t j � D]� \ } } } } } d } z� yj t j | j d | �} | j d k r� | j | j � n | j | j | j f � | | _ d } d SWn t j k r� } | } n XWd | d k r� | j � n Xq( W| d k rt d � � n | � d S( Ni t familys"