1/* $NetBSD: client_glue.c,v 1.1.1.1 2011/04/13 18:15:29 elric Exp $ */ 2 3/* 4 * Copyright (c) 1997 Kungliga Tekniska Högskolan 5 * (Royal Institute of Technology, Stockholm, Sweden). 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: 11 * 12 * 1. Redistributions of source code must retain the above copyright 13 * notice, this list of conditions and the following disclaimer. 14 * 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. 18 * 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. 22 * 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. 34 */ 35 36#include "kadm5_locl.h" 37 38__RCSID("$NetBSD: client_glue.c,v 1.1.1.1 2011/04/13 18:15:29 elric Exp $"); 39 40kadm5_ret_t 41kadm5_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) 48{ 49 return kadm5_c_init_with_password(client_name, 50 password, 51 service_name, 52 realm_params, 53 struct_version, 54 api_version, 55 server_handle); 56} 57 58kadm5_ret_t 59kadm5_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) 67{ 68 return kadm5_c_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); 76} 77 78kadm5_ret_t 79kadm5_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) 86{ 87 return kadm5_c_init_with_skey(client_name, 88 keytab, 89 service_name, 90 realm_params, 91 struct_version, 92 api_version, 93 server_handle); 94} 95 96kadm5_ret_t 97kadm5_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) 105{ 106 return kadm5_c_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); 114} 115 116kadm5_ret_t 117kadm5_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) 124{ 125 return kadm5_c_init_with_creds(client_name, 126 ccache, 127 service_name, 128 realm_params, 129 struct_version, 130 api_version, 131 server_handle); 132} 133 134kadm5_ret_t 135kadm5_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) 143{ 144 return kadm5_c_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); 152} 153