1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-01 18:59:37 +02:00

- fixed proxy support when using m2crypto

This commit is contained in:
Marcus Huewe
2010-01-08 22:20:40 +01:00
parent d4877bbe51
commit 52b22b19a5
2 changed files with 151 additions and 59 deletions

View File

@@ -352,7 +352,7 @@ def init_basicauth(config):
break
ctx = oscssl.mySSLContext()
if ctx.load_verify_locations(capath=capath, cafile=cafile) != 1: raise Exception('No CA certificates found')
opener = m2urllib2.build_opener(ctx, urllib2.HTTPCookieProcessor(cookiejar), authhandler)
opener = m2urllib2.build_opener(ctx, oscssl.myHTTPSHandler(ctx), urllib2.HTTPCookieProcessor(cookiejar), authhandler)
else:
import sys
print >>sys.stderr, "WARNING: SSL certificate checks disabled. Connection is insecure!\n"