Use function pointer trampoline for easier dual use (without radiation-hardening capability).

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3948 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-11-11 21:21:47 +00:00
parent a00258bda6
commit 7d293dc9fb
8 changed files with 159 additions and 65 deletions

View File

@@ -38,8 +38,43 @@
#include "kadm5_locl.h"
/* $Id$ */
RCSID("$Id$");
#define __CALL(FUNC) kadm5 ## _s_ ## FUNC
kadm5_ret_t
kadm5_init_with_password(char *client_name,
char *pass,
char *service_name,
kadm5_config_params *realm_params,
unsigned long struct_version,
unsigned long api_version,
void **server_handle)
{
return kadm5_s_init_with_password(client_name,
pass,
service_name,
realm_params,
struct_version,
api_version,
server_handle);
}
kadm5_ret_t
kadm5_init_with_password_ctx(krb5_context context,
char *client_name,
char *pass,
char *service_name,
kadm5_config_params *realm_params,
unsigned long struct_version,
unsigned long api_version,
void **server_handle)
{
return kadm5_s_init_with_password_ctx(context,
client_name,
pass,
service_name,
realm_params,
struct_version,
api_version,
server_handle);
}
#include "common_glue.c"