def _load_wincerts():
        """Set _WINCERTS to an instance of wincertstore.Certfile."""
        global _WINCERTS

        certfile = CertFile()
        certfile.addstore("CA")
        certfile.addstore("ROOT")
        atexit.register(certfile.close)

        _WINCERTS = certfile
Example #2
0
    def _load_wincerts():
        """Set _WINCERTS to an instance of wincertstore.Certfile."""
        global _WINCERTS

        certfile = CertFile()
        certfile.addstore("CA")
        certfile.addstore("ROOT")
        atexit.register(certfile.close)

        _WINCERTS = certfile
Example #3
0
 def __init__(self, stores=(), certs=()):
     CertFile.__init__(self)
     for store in stores:
         self.addstore(store)
     self.addcerts(certs)
     atexit.register(self.close)
Example #4
0
 def __init__(self, stores=(), certs=()):
     CertFile.__init__(self)
     for store in stores:
         self.addstore(store)
     self.addcerts(certs)
     atexit.register(self.close)
Example #5
0
 def __init__(self, stores=(), certs=()):
     CertFile.__init__(self)
     for store in stores:
         self.addstore(store)
     self.addcerts(certs)
Example #6
0
        def __init__(self, stores=(), certs=()):
            CertFile.__init__(self)
            for store in stores:
                self.addstore(store)
            self.addcerts(certs)
>>>>>>> 2f581e39b6af1df0ce14b10b2b421d90ca31ff2c
            atexit.register(self.close)

        def close(self):
            try:
<<<<<<< HEAD
                super(CertFile, self).close()
            except OSError:
                pass

    _wincerts = CertFile()
    _wincerts.addstore('CA')
    _wincerts.addstore('ROOT')
=======
                super(MyCertFile, self).close()
            except OSError:
                pass

    _wincerts = MyCertFile(stores=['CA', 'ROOT'])
>>>>>>> 2f581e39b6af1df0ce14b10b2b421d90ca31ff2c
    return _wincerts.name


def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
<<<<<<< HEAD