Show More
@@ -44,8 +44,18 b' def _create_auth_baton(pool):' | |||
|
44 | 44 | svn.client.get_ssl_server_trust_file_provider(pool), |
|
45 | 45 | ] |
|
46 | 46 | # Platform-dependant authentication methods |
|
47 | if hasattr(svn.client, 'get_windows_simple_provider'): | |
|
48 | providers.append(svn.client.get_windows_simple_provider(pool)) | |
|
47 | getprovider = getattr(svn.core, 'svn_auth_get_platform_specific_provider', | |
|
48 | None) | |
|
49 | if getprovider: | |
|
50 | # Available in svn >= 1.6 | |
|
51 | for name in ('gnome_keyring', 'keychain', 'kwallet', 'windows'): | |
|
52 | for type in ('simple', 'ssl_client_cert_pw', 'ssl_server_trust'): | |
|
53 | p = getprovider(name, type, pool) | |
|
54 | if p: | |
|
55 | providers.append(p) | |
|
56 | else: | |
|
57 | if hasattr(svn.client, 'get_windows_simple_provider'): | |
|
58 | providers.append(svn.client.get_windows_simple_provider(pool)) | |
|
49 | 59 | |
|
50 | 60 | return svn.core.svn_auth_open(providers, pool) |
|
51 | 61 |
General Comments 0
You need to be logged in to leave comments.
Login now