/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
*/
#include <assert.h>
#include "autoconf.h"
#include "com_err.h"
#include "k5-int.h"
#include "stdcc.h"
#endif
#include "krb5_libinit.h"
#include "k5-platform.h"
#include "cc-int.h"
#include "kt-int.h"
#include "rc-int.h"
#include "os-proto.h"
/*
* Initialize the Kerberos v5 library.
*/
/* Possibly load-time initialization -- mutexes, etc. */
int krb5int_lib_init(void)
{
int err;
#ifdef SHOW_INITFINI_FUNCS
printf("krb5int_lib_init\n");
#endif
/* Solaris Kerberos: need to use !USE_BUNDLE_ERROR_STRINGS condition here */
#endif
if (err)
return err;
#ifndef LEAN_CLIENT
err = krb5int_kt_initialize();
if (err)
return err;
#endif /* LEAN_CLIENT */
err = krb5int_cc_initialize();
if (err)
return err;
if (err)
return err;
return 0;
}
/* Always-delayed initialization -- error table linkage, etc. */
{
return CALL_INIT_FUNCTION(krb5int_lib_init);
}
/*
* Clean up the Kerberos v5 library state
*/
void krb5int_lib_fini(void)
{
#ifdef SHOW_INITFINI_FUNCS
printf("krb5int_lib_fini: skipping\n");
#endif
return;
}
#ifdef SHOW_INITFINI_FUNCS
printf("krb5int_lib_fini\n");
#endif
#ifndef LEAN_CLIENT
#endif /* LEAN_CLIENT */
#endif
/* Solaris Kerberos: need to use !USE_BUNDLE_ERROR_STRINGS condition here */
#endif
}
/* Still exists because it went into the export list on Windows. But
since the above function should be invoked at unload time, we don't
actually want to do anything here. */
void krb5int_cleanup_library (void)
{
}