Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.1
apport
apport-use-default-cert.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File apport-use-default-cert.patch of Package apport
Index: apport-0.114/apport/crashdb_impl/opensuse_crashdb.py =================================================================== --- apport-0.114.orig/apport/crashdb_impl/opensuse_crashdb.py 2009-01-13 18:58:10.000000000 +0100 +++ apport-0.114/apport/crashdb_impl/opensuse_crashdb.py 2012-12-06 17:23:42.000000000 +0100 @@ -36,7 +36,9 @@ if not self.report_baseurl: raise RuntimeError, "No report_baseurl defined" - HTTPSValidateCertificateConnection.set_cert_location(options.get('cert_location')) + cert_location = options.get('cert_location') + if cert_location: + HTTPSValidateCertificateConnection.set_cert_location(cert_location) def upload(self, report, progress_callback = None): '''Upload given problem report return a handle for it. Index: apport-0.114/apport/crashdb_impl/HTTPSValidateCertificateConnection.py =================================================================== --- apport-0.114.orig/apport/crashdb_impl/HTTPSValidateCertificateConnection.py 2009-01-13 18:58:10.000000000 +0100 +++ apport-0.114/apport/crashdb_impl/HTTPSValidateCertificateConnection.py 2012-12-07 12:06:38.000000000 +0100 @@ -24,7 +24,8 @@ "This class allows communication via SSL." default_port = httplib.HTTPS_PORT - cert_location = '/etc/ssl/certs/' + cert_location = None + default_CA_path = '/etc/ssl/certs' def __init__(self, host, port=None, strict=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): @@ -36,7 +37,9 @@ # Setup SSL context to demand a certificate ctx = SSL.Context('sslv23') ctx.set_verify(SSL.verify_peer | SSL.verify_fail_if_no_peer_cert, 10) - ctx.load_verify_locations(HTTPSValidateCertificateConnection.cert_location) + cafile = HTTPSValidateCertificateConnection.cert_location + capath = HTTPSValidateCertificateConnection.default_CA_path + ctx.load_verify_locations(cafile = cafile, capath = capath) # Create real socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor