Changeset 2956


Ignore:
Timestamp:
16/10/07 14:34:20 (12 years ago)
Author:
pjkersha
Message:

ndg.security.common/ndg/security/common/X509.py: fix to X509Stack.verifyCertChain - only reject if stack is empty AND x509Cert2Verify is not set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.common/ndg/security/common/X509.py

    r2954 r2956  
    456456        @type rejectSelfSignedCert: bool""" 
    457457         
    458         if not len(self): 
    459             raise X509StackError, "Empty stack - no cert.s to verify" 
    460458         
    461459        if x509Cert2Verify is None: 
     460            if not len(self): 
     461                raise X509StackError, \ 
     462                "Empty stack and no x509Cert2Verify set: no cert.s to verify" 
     463 
    462464            x509Cert2Verify = self[-1] 
    463465 
Note: See TracChangeset for help on using the changeset viewer.