/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <assert.h>
#include "autoconf.h"
#include "com_err.h"
#include "k5-int.h"
#if 0 /* Solaris Kerberos */
#include "krb5_err.h"
#include "kv5m_err.h"
#include "asn1_err.h"
#include "kdb5_err.h"
#endif
#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
#endif
if (err)
return err;
err = krb5int_kt_initialize();
if (err)
return err;
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
#endif
#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)
{
}