Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Optionally install baseconv.
[doldaconnect.git]
/
daemon
/
auth.c
diff --git
a/daemon/auth.c
b/daemon/auth.c
index
c5aace0
..
ce5dd12
100644
(file)
--- a/
daemon/auth.c
+++ b/
daemon/auth.c
@@
-38,7
+38,7
@@
static void authless_release(struct authhandle *auth)
{
}
{
}
-static int authless_authenticate(struct authhandle *auth, char *data)
+static int authless_authenticate(struct authhandle *auth,
struct socket *sk,
char *data)
{
return(AUTH_SUCCESS);
}
{
return(AUTH_SUCCESS);
}
@@
-112,11
+112,18
@@
struct authhandle *initauth(wchar_t *mechname, char *username)
return(auth);
}
return(auth);
}
-int authenticate(struct authhandle *handle, char *data)
+int authenticate(struct authhandle *handle,
struct socket *sk,
char *data)
{
if(handle->mech == NULL)
return(AUTH_ERR);
{
if(handle->mech == NULL)
return(AUTH_ERR);
- return(handle->mech->authenticate(handle, data));
+ return(handle->mech->authenticate(handle, sk, data));
+}
+
+int authavailable(struct authmech *mech, struct socket *sk)
+{
+ if(mech->available == NULL)
+ return(1);
+ return(mech->available(sk));
}
int authrenewcred(struct authhandle *handle)
}
int authrenewcred(struct authhandle *handle)
@@
-169,7
+176,7
@@
static struct configvar myvars[] =
/** Specifies whether insecure authentication is to be allowed. If
* you are not completely sure what you are doing, never turn this
* on without also turning on net.onlylocal. */
/** Specifies whether insecure authentication is to be allowed. If
* you are not completely sure what you are doing, never turn this
* on without also turning on net.onlylocal. */
- {CONF_VAR_BOOL, "authless", {.num =
1
}},
+ {CONF_VAR_BOOL, "authless", {.num =
0
}},
{CONF_VAR_END}
};
{CONF_VAR_END}
};