Path: blob/main/crypto/heimdal/lib/kadm5/client_glue.c
34878 views
/*1* Copyright (c) 1997 Kungliga Tekniska Högskolan2* (Royal Institute of Technology, Stockholm, Sweden).3* All rights reserved.4*5* Redistribution and use in source and binary forms, with or without6* modification, are permitted provided that the following conditions7* are met:8*9* 1. Redistributions of source code must retain the above copyright10* notice, this list of conditions and the following disclaimer.11*12* 2. Redistributions in binary form must reproduce the above copyright13* notice, this list of conditions and the following disclaimer in the14* documentation and/or other materials provided with the distribution.15*16* 3. Neither the name of the Institute nor the names of its contributors17* may be used to endorse or promote products derived from this software18* without specific prior written permission.19*20* THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND21* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE22* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE23* ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE24* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL25* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS26* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)27* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT28* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY29* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF30* SUCH DAMAGE.31*/3233#include "kadm5_locl.h"3435RCSID("$Id$");3637kadm5_ret_t38kadm5_init_with_password(const char *client_name,39const char *password,40const char *service_name,41kadm5_config_params *realm_params,42unsigned long struct_version,43unsigned long api_version,44void **server_handle)45{46return kadm5_c_init_with_password(client_name,47password,48service_name,49realm_params,50struct_version,51api_version,52server_handle);53}5455kadm5_ret_t56kadm5_init_with_password_ctx(krb5_context context,57const char *client_name,58const char *password,59const char *service_name,60kadm5_config_params *realm_params,61unsigned long struct_version,62unsigned long api_version,63void **server_handle)64{65return kadm5_c_init_with_password_ctx(context,66client_name,67password,68service_name,69realm_params,70struct_version,71api_version,72server_handle);73}7475kadm5_ret_t76kadm5_init_with_skey(const char *client_name,77const char *keytab,78const char *service_name,79kadm5_config_params *realm_params,80unsigned long struct_version,81unsigned long api_version,82void **server_handle)83{84return kadm5_c_init_with_skey(client_name,85keytab,86service_name,87realm_params,88struct_version,89api_version,90server_handle);91}9293kadm5_ret_t94kadm5_init_with_skey_ctx(krb5_context context,95const char *client_name,96const char *keytab,97const char *service_name,98kadm5_config_params *realm_params,99unsigned long struct_version,100unsigned long api_version,101void **server_handle)102{103return kadm5_c_init_with_skey_ctx(context,104client_name,105keytab,106service_name,107realm_params,108struct_version,109api_version,110server_handle);111}112113kadm5_ret_t114kadm5_init_with_creds(const char *client_name,115krb5_ccache ccache,116const char *service_name,117kadm5_config_params *realm_params,118unsigned long struct_version,119unsigned long api_version,120void **server_handle)121{122return kadm5_c_init_with_creds(client_name,123ccache,124service_name,125realm_params,126struct_version,127api_version,128server_handle);129}130131kadm5_ret_t132kadm5_init_with_creds_ctx(krb5_context context,133const char *client_name,134krb5_ccache ccache,135const char *service_name,136kadm5_config_params *realm_params,137unsigned long struct_version,138unsigned long api_version,139void **server_handle)140{141return kadm5_c_init_with_creds_ctx(context,142client_name,143ccache,144service_name,145realm_params,146struct_version,147api_version,148server_handle);149}150151152