1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 09:16:16 +02:00
github.com_openSUSE_osc/osc
Oleg Girko c62c9f54a0 Add support for TLS SNI if M2Crypto supports it.
Currently osc can't access API URLs which share the same IP address
with other SSL-enabled sites, complaining about certificate
not matching hostname.

This change solves this problem by instructing M2Crypto.SSL.Connection
to send the desired hostname to https server using TLS SNI extension,
thus allowing the server to present the right certificate and choose
the right virtual site.

This is useful for those who can't afford to have a separate IP address
for OBS API.

For TLS SNI to work correctly, M2Crypto should be patched:
https://bugzilla.osafoundation.org/show_bug.cgi?id=13073
Some distributions (like Fedora) already include this patch.

For unpatched M2Crypto osc degrades to operation without TLS SNI.

Signed-off-by: Oleg Girko <ol@infoserver.lv>
2015-08-13 11:11:42 +01:00
..
util - RpmQuery.rpmvercmp: support tilde ('~') 2015-07-03 14:22:00 +02:00
__init__.py add vim mode lines to avoid evil tab characters :-) 2010-02-25 09:53:45 +01:00
.gitignore convert svn:ignore to gitignore 2009-12-03 19:19:53 +01:00
babysitter.py - babysitter: catch URLGrabError exception 2014-06-08 22:32:35 +02:00
build.py Support prefer-pkg for live-build 2015-08-12 16:29:22 +02:00
checker.py Resolve PEP8 issue W291 2014-08-12 15:01:16 +02:00
cmdln.py Added readline support to cmdln-module. 2015-01-09 13:33:31 +01:00
commandline.py Merge pull request #148 from lnussel/master 2015-08-13 07:50:58 +02:00
conf.py Add support for non-root paths in API URLs. 2015-05-14 16:46:10 +01:00
core.py show review comments in an own line. Before they started in the same line, but reached on typical 2015-08-13 08:07:34 +02:00
fetch.py - fixed fullfilename calculation in the Pac class 2015-06-16 17:37:40 +02:00
meter.py python3 compatibility: print function 2013-04-16 10:51:41 +02:00
OscConfigParser.py - OscConfigParser: added "proper" parameter to the has_option method 2014-06-04 15:29:50 +02:00
oscerr.py support new package instances on branching when using -N parameter 2015-07-21 13:03:07 +02:00
oscssl.py Add support for TLS SNI if M2Crypto supports it. 2015-08-13 11:11:42 +01:00
oscsslexcp.py - remove shebang line to make rpmlint happy 2010-03-21 22:57:06 +01:00