ok
Direktori : /usr/lib64/python2.7/site-packages/M2Crypto/SSL/ |
Current File : //usr/lib64/python2.7/site-packages/M2Crypto/SSL/Checker.pyo |
� z\Vc @ s� d Z d d d d d g Z d d l m Z m Z m Z d d l Z d d l Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d d d � � YZ e d k r� d d l Z e j � n d S( s� SSL peer certificate checking routines Copyright (c) 2004-2007 Open Source Applications Foundation. All rights reserved. Copyright 2008 Heikki Toivonen. All rights reserved. t SSLVerificationErrort NoCertificatet WrongCertificatet WrongHostt Checkeri����( t utilt EVPt m2Nc B s e Z RS( ( t __name__t __module__( ( ( s: /usr/lib64/python2.7/site-packages/M2Crypto/SSL/Checker.pyR s c B s e Z RS( ( R R ( ( ( s: /usr/lib64/python2.7/site-packages/M2Crypto/SSL/Checker.pyR s c B s e Z RS( ( R R ( ( ( s: /usr/lib64/python2.7/site-packages/M2Crypto/SSL/Checker.pyR s c B s e Z d d � Z d � Z RS( t commonNamec C sG | d k r t d � � n t j | � | | _ | | _ | | _ d S( sz This exception will be raised if the certificate returned by the peer was issued for a different host than we tried to connect to. This could be due to a server misconfiguration or an active attack. @param expectedHost: The name of the host we expected to find in the certificate. @param actualHost: The name of the host we actually found in the certificate. @param fieldName: The field name where we noticed the error. This should be either 'commonName' or 'subjectAltName'. R t subjectAltNames@ Unknown fieldName, should be either commonName or subjectAltNameN( s commonNames subjectAltName( t ValueErrorR t __init__t expectedHostt actualHostt fieldName( t selfR R R ( ( s: /usr/lib64/python2.7/site-packages/M2Crypto/SSL/Checker.pyR s c C sA d | j | j | j f } t | t � r= | j d � } n | S( Ns<