1 /* $NetBSD: server_glue.c,v 1.1.1.2 2014/04/24 12:45:49 pettai Exp $ */
4 * Copyright (c) 1997 Kungliga Tekniska Högskolan
5 * (Royal Institute of Technology, Stockholm, Sweden).
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * 3. Neither the name of the Institute nor the names of its contributors
20 * may be used to endorse or promote products derived from this software
21 * without specific prior written permission.
23 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
24 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 #include "kadm5_locl.h"
41 kadm5_init_with_password(const char *client_name
,
43 const char *service_name
,
44 kadm5_config_params
*realm_params
,
45 unsigned long struct_version
,
46 unsigned long api_version
,
49 return kadm5_s_init_with_password(client_name
,
59 kadm5_init_with_password_ctx(krb5_context context
,
60 const char *client_name
,
62 const char *service_name
,
63 kadm5_config_params
*realm_params
,
64 unsigned long struct_version
,
65 unsigned long api_version
,
68 return kadm5_s_init_with_password_ctx(context
,
79 kadm5_init_with_skey(const char *client_name
,
81 const char *service_name
,
82 kadm5_config_params
*realm_params
,
83 unsigned long struct_version
,
84 unsigned long api_version
,
87 return kadm5_s_init_with_skey(client_name
,
97 kadm5_init_with_skey_ctx(krb5_context context
,
98 const char *client_name
,
100 const char *service_name
,
101 kadm5_config_params
*realm_params
,
102 unsigned long struct_version
,
103 unsigned long api_version
,
104 void **server_handle
)
106 return kadm5_s_init_with_skey_ctx(context
,
117 kadm5_init_with_creds(const char *client_name
,
119 const char *service_name
,
120 kadm5_config_params
*realm_params
,
121 unsigned long struct_version
,
122 unsigned long api_version
,
123 void **server_handle
)
125 return kadm5_s_init_with_creds(client_name
,
135 kadm5_init_with_creds_ctx(krb5_context context
,
136 const char *client_name
,
138 const char *service_name
,
139 kadm5_config_params
*realm_params
,
140 unsigned long struct_version
,
141 unsigned long api_version
,
142 void **server_handle
)
144 return kadm5_s_init_with_creds_ctx(context
,