conversion from 8 spaces to 4 spaces per tab
This commit is contained in:
+36
-36
@@ -29,51 +29,51 @@ void
|
||||
xauth_init(void)
|
||||
{
|
||||
#ifdef XAUTH_DEFAULT_LIB
|
||||
xauth_module.handle = dlopen(XAUTH_DEFAULT_LIB, RTLD_NOW);
|
||||
xauth_module.handle = dlopen(XAUTH_DEFAULT_LIB, RTLD_NOW);
|
||||
|
||||
if (xauth_module.handle != NULL)
|
||||
{
|
||||
DBG(DBG_CONTROL,
|
||||
DBG_log("xauth module '%s' loading'", XAUTH_DEFAULT_LIB)
|
||||
)
|
||||
xauth_module.get_secret = (bool (*) (const xauth_t*))
|
||||
dlsym(xauth_module.handle, "get_secret");
|
||||
DBG(DBG_CONTROL,
|
||||
if (xauth_module.get_secret != NULL)
|
||||
{
|
||||
DBG_log("xauth module: found get_secret() function");
|
||||
}
|
||||
)
|
||||
xauth_module.verify_secret = (bool (*) (const xauth_peer_t*, const xauth_t*))
|
||||
dlsym(xauth_module.handle, "verify_secret");
|
||||
DBG(DBG_CONTROL,
|
||||
if (xauth_module.verify_secret != NULL)
|
||||
{
|
||||
DBG_log("xauth module: found verify_secret() function");
|
||||
}
|
||||
)
|
||||
}
|
||||
if (xauth_module.handle != NULL)
|
||||
{
|
||||
DBG(DBG_CONTROL,
|
||||
DBG_log("xauth module '%s' loading'", XAUTH_DEFAULT_LIB)
|
||||
)
|
||||
xauth_module.get_secret = (bool (*) (const xauth_t*))
|
||||
dlsym(xauth_module.handle, "get_secret");
|
||||
DBG(DBG_CONTROL,
|
||||
if (xauth_module.get_secret != NULL)
|
||||
{
|
||||
DBG_log("xauth module: found get_secret() function");
|
||||
}
|
||||
)
|
||||
xauth_module.verify_secret = (bool (*) (const xauth_peer_t*, const xauth_t*))
|
||||
dlsym(xauth_module.handle, "verify_secret");
|
||||
DBG(DBG_CONTROL,
|
||||
if (xauth_module.verify_secret != NULL)
|
||||
{
|
||||
DBG_log("xauth module: found verify_secret() function");
|
||||
}
|
||||
)
|
||||
}
|
||||
#endif
|
||||
/* any null function pointers will be filled in by default functions */
|
||||
xauth_defaults();
|
||||
/* any null function pointers will be filled in by default functions */
|
||||
xauth_defaults();
|
||||
}
|
||||
|
||||
void
|
||||
xauth_finalize(void)
|
||||
{
|
||||
#ifdef XAUTH_DEFAULT_LIB
|
||||
if (xauth_module.handle != NULL)
|
||||
{
|
||||
if (dlclose(xauth_module.handle))
|
||||
if (xauth_module.handle != NULL)
|
||||
{
|
||||
plog("failed to unload xauth module");
|
||||
if (dlclose(xauth_module.handle))
|
||||
{
|
||||
plog("failed to unload xauth module");
|
||||
}
|
||||
else
|
||||
{
|
||||
DBG(DBG_CONTROL,
|
||||
DBG_log("xauth module unloaded")
|
||||
)
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DBG(DBG_CONTROL,
|
||||
DBG_log("xauth module unloaded")
|
||||
)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user