krb5_libinit.c revision 54925bf60766fbb4f1f2d7c843721406a7b7a3fb
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <assert.h>
#include "autoconf.h"
#include "com_err.h"
#include "krb5.h"
#if 0 /* SUNW14resync */
#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;
#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)
{
return;
#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)
{
}