1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-03-29 18:40:03 +01:00

appname should be osc for ssl support

This commit is contained in:
Ludwig Nussel 2010-01-19 13:31:07 +01:00
parent aee78f6150
commit f2f948388e
2 changed files with 2 additions and 1 deletions

View File

@ -299,6 +299,7 @@ def init_basicauth(config):
try:
import oscssl
oscssl.myHTTPSConnection.appname = 'osc'
oscssl.myProxyHTTPSConnection.appname = 'osc'
from M2Crypto import m2urllib2
except Exception, e:
print e

View File

@ -272,7 +272,7 @@ def verify_certificate(connection):
# Maybe it changed to something valid.
if not connection.sock.verify_ok():
tc = TrustedCertStore(connection.getHost(), connection.getPort(), 'generic', cert)
tc = TrustedCertStore(connection.getHost(), connection.getPort(), connection.appname, cert)
if tc.is_known():