1 |
|
|
2 |
/* Copyright (C) 1999 Beau Kuiper |
/* Copyright (C) 1999 Beau Kuiper |
3 |
|
|
4 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
20 |
|
|
21 |
/* This file contains code to autheticate for disabled users */ |
/* This file contains code to autheticate for disabled users */ |
22 |
|
|
23 |
void *disableauth_gethandle(FTPSTATE *peer, TOKENSET *tset, char *username, int *err) |
void *disableauth_gethandle(FTPSTATE * peer, |
24 |
|
TOKENSET * tset, |
25 |
|
char *username, |
26 |
|
int *err) |
27 |
{ |
{ |
28 |
*err = AUTH_ERROR; |
*err = AUTH_ERROR; |
29 |
return(NULL); |
return (NULL); |
30 |
} |
} |
31 |
|
|
32 |
void disableauth_freehandle(void *handle) |
void disableauth_freehandle(void *handle) |
33 |
{ |
{ |
34 |
} |
} |
35 |
|
|
36 |
int disableauth_checkpasswd(void *h, char *password, char **errmsg) |
int disableauth_checkpasswd(void *h, |
37 |
|
char *password, |
38 |
|
char **errmsg) |
39 |
{ |
{ |
40 |
return FALSE; |
return FALSE; |
41 |
} |
} |
42 |
|
|
43 |
PERMSTRUCT disableauth_commands = |
PERMSTRUCT disableauth_commands = { |
|
{ |
|
44 |
disableauth_checkpasswd, |
disableauth_checkpasswd, |
45 |
NULL, |
NULL, |
46 |
NULL, |
NULL, |