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#include "svn_auth.h"
31#include "svn_client.h"
32
33void
34svn_client_get_simple_prompt_provider
35  (svn_auth_provider_object_t **provider,
36   svn_auth_simple_prompt_func_t prompt_func,
37   void *prompt_baton,
38   int retry_limit,
39   apr_pool_t *pool)
40{
41  svn_auth_get_simple_prompt_provider(provider, prompt_func, prompt_baton,
42                                      retry_limit, pool);
43}
44
45void
46svn_client_get_username_prompt_provider
47  (svn_auth_provider_object_t **provider,
48   svn_auth_username_prompt_func_t prompt_func,
49   void *prompt_baton,
50   int retry_limit,
51   apr_pool_t *pool)
52{
53  svn_auth_get_username_prompt_provider(provider, prompt_func, prompt_baton,
54                                        retry_limit, pool);
55}
56
57
58
59void svn_client_get_simple_provider(svn_auth_provider_object_t **provider,
60                                    apr_pool_t *pool)
61{
62  svn_auth_get_simple_provider2(provider, NULL, NULL, pool);
63}
64
65#if defined(WIN32) && !defined(__MINGW32__)
66void
67svn_client_get_windows_simple_provider(svn_auth_provider_object_t **provider,
68                                       apr_pool_t *pool)
69{
70  svn_auth_get_windows_simple_provider(provider, pool);
71}
72#endif /* WIN32 */
73
74void svn_client_get_username_provider(svn_auth_provider_object_t **provider,
75                                      apr_pool_t *pool)
76{
77  svn_auth_get_username_provider(provider, pool);
78}
79
80void
81svn_client_get_ssl_server_trust_file_provider
82  (svn_auth_provider_object_t **provider, apr_pool_t *pool)
83{
84  svn_auth_get_ssl_server_trust_file_provider(provider, pool);
85}
86
87void
88svn_client_get_ssl_client_cert_file_provider
89  (svn_auth_provider_object_t **provider, apr_pool_t *pool)
90{
91  svn_auth_get_ssl_client_cert_file_provider(provider, pool);
92}
93
94void
95svn_client_get_ssl_client_cert_pw_file_provider
96  (svn_auth_provider_object_t **provider, apr_pool_t *pool)
97{
98  svn_auth_get_ssl_client_cert_pw_file_provider2(provider, NULL, NULL, pool);
99}
100
101void
102svn_client_get_ssl_server_trust_prompt_provider
103  (svn_auth_provider_object_t **provider,
104   svn_auth_ssl_server_trust_prompt_func_t prompt_func,
105   void *prompt_baton,
106   apr_pool_t *pool)
107{
108  svn_auth_get_ssl_server_trust_prompt_provider(provider, prompt_func,
109                                                prompt_baton, pool);
110}
111
112void
113svn_client_get_ssl_client_cert_prompt_provider
114  (svn_auth_provider_object_t **provider,
115   svn_auth_ssl_client_cert_prompt_func_t prompt_func,
116   void *prompt_baton,
117   int retry_limit,
118   apr_pool_t *pool)
119{
120  svn_auth_get_ssl_client_cert_prompt_provider(provider, prompt_func,
121                                               prompt_baton, retry_limit,
122                                               pool);
123}
124
125void
126svn_client_get_ssl_client_cert_pw_prompt_provider
127  (svn_auth_provider_object_t **provider,
128   svn_auth_ssl_client_cert_pw_prompt_func_t prompt_func,
129   void *prompt_baton,
130   int retry_limit,
131   apr_pool_t *pool)
132{
133  svn_auth_get_ssl_client_cert_pw_prompt_provider(provider, prompt_func,
134                                                  prompt_baton, retry_limit,
135                                                  pool);
136}
137