#include "server.h"
#include "citserver.h"
#include "support.h"
-#include "dynloader.h"
+#include "serv_extensions.h"
#include "user_ops.h"
#include "md5.h"
#include "tools.h"
if (strlen(pw) != (MD5_HEXSTRING_SIZE-1))
{
- cprintf("%d Auth string of length %d is the wrong length (should be %d).\n", ERROR, strlen(pw), MD5_HEXSTRING_SIZE-1);
+ cprintf("%d Auth string of length %ld is the wrong length (should be %d).\n", ERROR, (long)strlen(pw), MD5_HEXSTRING_SIZE-1);
return;
}
- make_apop_string(CC->usersupp.password, CC->cs_nonce, hexstring);
+ make_apop_string(CC->usersupp.password, CC->cs_nonce, hexstring, sizeof hexstring);
if (!strcmp(hexstring, pw))
{
-char *Dynamic_Module_Init(void)
+char *serv_pas2_init(void)
{
CtdlRegisterProtoHook(cmd_pas2, "PAS2", "APOP-based login");
return "$Id$";