~ubuntu-branches/ubuntu/quantal/m2crypto/quantal

« back to all changes in this revision

Viewing changes to M2Crypto/SSL/Context.py

  • Committer: Bazaar Package Importer
  • Author(s): Dima Barsky
  • Date: 2007-05-24 21:14:36 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070524211436-73w3oonappxy8k4a
Tags: 0.17-1
* New upstream release
* Acknowledge NMU (Closes: #380861)
* Changed section to python (Closes: #425875)

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
                       (one certificate per file).
125
125
        @type capath:  str
126
126
        """
127
 
        assert not (cafile is None and capath is None), "cafile and capath are None."
 
127
        if cafile is None and capath is None:
 
128
            raise ValueError("cafile and capath can not both be None.")
128
129
        return m2.ssl_ctx_load_verify_locations(self.ctx, cafile, capath)
129
130
 
130
131
    # Deprecated.