1/*
2 * compat_providers.c: wrapper providers backwards compatibility
3 *
4 * ====================================================================
5 *    Licensed to the Apache Software Foundation (ASF) under one
6 *    or more contributor license agreements.  See the NOTICE file
7 *    distributed with this work for additional information
8 *    regarding copyright ownership.  The ASF licenses this file
9 *    to you under the Apache License, Version 2.0 (the
10 *    "License"); you may not use this file except in compliance
11 *    with the License.  You may obtain a copy of the License at
12 *
13 *      http://www.apache.org/licenses/LICENSE-2.0
14 *
15 *    Unless required by applicable law or agreed to in writing,
16 *    software distributed under the License is distributed on an
17 *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18 *    KIND, either express or implied.  See the License for the
19 *    specific language governing permissions and limitations
20 *    under the License.
21 * ====================================================================
22 */
23
24/* ==================================================================== */
25
26
27
28/*** Includes. ***/
29
30/* We define this here to remove any further warnings about the usage of
31   deprecated functions in this file. */
32#define SVN_DEPRECATED
33
34#include "svn_auth.h"
35#include "svn_client.h"
36
37void
38svn_client_get_simple_prompt_provider
39  (svn_auth_provider_object_t **provider,
40   svn_auth_simple_prompt_func_t prompt_func,
41   void *prompt_baton,
42   int retry_limit,
43   apr_pool_t *pool)
44{
45  svn_auth_get_simple_prompt_provider(provider, prompt_func, prompt_baton,
46                                      retry_limit, pool);
47}
48
49void
50svn_client_get_username_prompt_provider
51  (svn_auth_provider_object_t **provider,
52   svn_auth_username_prompt_func_t prompt_func,
53   void *prompt_baton,
54   int retry_limit,
55   apr_pool_t *pool)
56{
57  svn_auth_get_username_prompt_provider(provider, prompt_func, prompt_baton,
58                                        retry_limit, pool);
59}
60
61
62
63void svn_client_get_simple_provider(svn_auth_provider_object_t **provider,
64                                    apr_pool_t *pool)
65{
66  svn_auth_get_simple_provider2(provider, NULL, NULL, pool);
67}
68
69#if defined(WIN32) && !defined(__MINGW32__)
70void
71svn_client_get_windows_simple_provider(svn_auth_provider_object_t **provider,
72                                       apr_pool_t *pool)
73{
74  svn_auth_get_windows_simple_provider(provider, pool);
75}
76#endif /* WIN32 */
77
78void svn_client_get_username_provider(svn_auth_provider_object_t **provider,
79                                      apr_pool_t *pool)
80{
81  svn_auth_get_username_provider(provider, pool);
82}
83
84void
85svn_client_get_ssl_server_trust_file_provider
86  (svn_auth_provider_object_t **provider, apr_pool_t *pool)
87{
88  svn_auth_get_ssl_server_trust_file_provider(provider, pool);
89}
90
91void
92svn_client_get_ssl_client_cert_file_provider
93  (svn_auth_provider_object_t **provider, apr_pool_t *pool)
94{
95  svn_auth_get_ssl_client_cert_file_provider(provider, pool);
96}
97
98void
99svn_client_get_ssl_client_cert_pw_file_provider
100  (svn_auth_provider_object_t **provider, apr_pool_t *pool)
101{
102  svn_auth_get_ssl_client_cert_pw_file_provider2(provider, NULL, NULL, pool);
103}
104
105void
106svn_client_get_ssl_server_trust_prompt_provider
107  (svn_auth_provider_object_t **provider,
108   svn_auth_ssl_server_trust_prompt_func_t prompt_func,
109   void *prompt_baton,
110   apr_pool_t *pool)
111{
112  svn_auth_get_ssl_server_trust_prompt_provider(provider, prompt_func,
113                                                prompt_baton, pool);
114}
115
116void
117svn_client_get_ssl_client_cert_prompt_provider
118  (svn_auth_provider_object_t **provider,
119   svn_auth_ssl_client_cert_prompt_func_t prompt_func,
120   void *prompt_baton,
121   int retry_limit,
122   apr_pool_t *pool)
123{
124  svn_auth_get_ssl_client_cert_prompt_provider(provider, prompt_func,
125                                               prompt_baton, retry_limit,
126                                               pool);
127}
128
129void
130svn_client_get_ssl_client_cert_pw_prompt_provider
131  (svn_auth_provider_object_t **provider,
132   svn_auth_ssl_client_cert_pw_prompt_func_t prompt_func,
133   void *prompt_baton,
134   int retry_limit,
135   apr_pool_t *pool)
136{
137  svn_auth_get_ssl_client_cert_pw_prompt_provider(provider, prompt_func,
138                                                  prompt_baton, retry_limit,
139                                                  pool);
140}
141