File: //proc/self/root/usr/lib/python2.4/site-packages/M2Crypto/SSL/Checker.pyc
mò
üäìPc @ s» d Z d k l Z l Z l Z d k Z d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d
„ ƒ YZ
d f d „ ƒ YZ e d
j o d k
Z
e
i ƒ n d S( s{
SSL peer certificate checking routines
Copyright (c) 2004-2007 Open Source Applications Foundation.
All rights reserved.
( s utils EVPs m2Nt SSLVerificationErrorc B s t Z RS( N( t __name__t
__module__( ( ( t8 /usr/lib/python2.4/site-packages/M2Crypto/SSL/Checker.pyR s t
NoCertificatec B s t Z RS( N( R R ( ( ( R R s t WrongCertificatec B s t Z RS( N( R R ( ( ( R R s t WrongHostc B s t Z d d „ Z d „ Z RS( Nt
commonNamec C sI | d j o t d ƒ ‚ n t i | ƒ | | _ | | _ | | _ 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 fieldNamet
ValueErrorR t __init__t selft expectedHostt
actualHost( R R
R R ( ( R R s
c C s d | i | i | i f S( Ns<