Remove building with NOCRYPTO option
[minix.git] / crypto / external / bsd / heimdal / dist / lib / kadm5 / server_glue.c
blobda07ea8519023fd5326a70501b6657e22406daac
1 /* $NetBSD: server_glue.c,v 1.1.1.2 2014/04/24 12:45:49 pettai Exp $ */
3 /*
4 * Copyright (c) 1997 Kungliga Tekniska Högskolan
5 * (Royal Institute of Technology, Stockholm, Sweden).
6 * All rights reserved.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
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
33 * SUCH DAMAGE.
36 #include "kadm5_locl.h"
38 __RCSID("NetBSD");
40 kadm5_ret_t
41 kadm5_init_with_password(const char *client_name,
42 const char *password,
43 const char *service_name,
44 kadm5_config_params *realm_params,
45 unsigned long struct_version,
46 unsigned long api_version,
47 void **server_handle)
49 return kadm5_s_init_with_password(client_name,
50 password,
51 service_name,
52 realm_params,
53 struct_version,
54 api_version,
55 server_handle);
58 kadm5_ret_t
59 kadm5_init_with_password_ctx(krb5_context context,
60 const char *client_name,
61 const char *password,
62 const char *service_name,
63 kadm5_config_params *realm_params,
64 unsigned long struct_version,
65 unsigned long api_version,
66 void **server_handle)
68 return kadm5_s_init_with_password_ctx(context,
69 client_name,
70 password,
71 service_name,
72 realm_params,
73 struct_version,
74 api_version,
75 server_handle);
78 kadm5_ret_t
79 kadm5_init_with_skey(const char *client_name,
80 const char *keytab,
81 const char *service_name,
82 kadm5_config_params *realm_params,
83 unsigned long struct_version,
84 unsigned long api_version,
85 void **server_handle)
87 return kadm5_s_init_with_skey(client_name,
88 keytab,
89 service_name,
90 realm_params,
91 struct_version,
92 api_version,
93 server_handle);
96 kadm5_ret_t
97 kadm5_init_with_skey_ctx(krb5_context context,
98 const char *client_name,
99 const char *keytab,
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,
107 client_name,
108 keytab,
109 service_name,
110 realm_params,
111 struct_version,
112 api_version,
113 server_handle);
116 kadm5_ret_t
117 kadm5_init_with_creds(const char *client_name,
118 krb5_ccache ccache,
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,
126 ccache,
127 service_name,
128 realm_params,
129 struct_version,
130 api_version,
131 server_handle);
134 kadm5_ret_t
135 kadm5_init_with_creds_ctx(krb5_context context,
136 const char *client_name,
137 krb5_ccache ccache,
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,
145 client_name,
146 ccache,
147 service_name,
148 realm_params,
149 struct_version,
150 api_version,
151 server_handle);