#include <ctype.h>
#include <string.h>
#include <errno.h>
-#include "sysdep_decls.h"
#include "citadel.h"
#include "server.h"
#include "citserver.h"
#include "support.h"
-#include "serv_extensions.h"
#include "user_ops.h"
#include "md5.h"
#include "tools.h"
+#include "ctdl_module.h"
+
+
void cmd_pas2(char *argbuf)
{
- char pw[SIZ];
+ char pw[256];
char hexstring[MD5_HEXSTRING_SIZE];
return;
}
- extract(pw, argbuf, 0);
+ extract_token(pw, argbuf, 0, '|', sizeof pw);
if (getuser(&CC->user, CC->curr_user))
{
-char *serv_pas2_init(void)
+CTDL_MODULE_INIT(pas2)
{
CtdlRegisterProtoHook(cmd_pas2, "PAS2", "APOP-based login");
+
+ /* return our Subversion id for the Log */
return "$Id$";
}