Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
LSH
lsh
Commits
3a97ae5e
Commit
3a97ae5e
authored
Oct 24, 1998
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New type login_method.
Rev: src/password.h:1.3
parent
1771a101
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
src/password.h
src/password.h
+14
-9
No files found.
src/password.h
View file @
3a97ae5e
...
...
@@ -40,28 +40,33 @@ struct unix_user
struct
lsh_object
header
;
uid_t
uid
;
#if 0
gid_t
gid
;
/* These strings include a terminating NUL-character,
* for compatibility with library and system calls. */
struct
lsh_string
*
username
;
#endif
struct
lsh_string
*
passwd
;
/* Crypted passwd */
struct
lsh_string
*
home
;
};
struct
unix_user
*
lookup_user
(
struct
lsh_string
*
name
);
int
verify_password
(
struct
unix_user
*
user
,
struct
lsh_string
*
password
);
struct
unix_user
*
lookup_user
(
struct
lsh_string
*
name
,
int
free
);
int
verify_password
(
struct
unix_user
*
user
,
struct
lsh_string
*
password
,
int
free
);
struct
userauth
*
make_password_userauth
(
void
);
struct
unix_service
struct
login_method
{
struct
lsh_object
header
;
struct
ssh_service
*
(
*
login
)(
struct
unix_service
*
closure
,
struct
unix_user
*
user
);
struct
ssh_service
*
(
*
login
)(
struct
login_method
*
closure
,
struct
unix_user
*
user
,
struct
ssh_service
*
service
);
};
#define LOGIN(
s
, u) ((
s
)->login((
s
), (u)))
#define LOGIN(
m
, u
, s
) ((
m
)->login((
m
), (u)
, (s)
))
struct
userauth
*
make_unix_userauth
(
struct
alist
*
services
);
struct
userauth
*
make_unix_userauth
(
struct
login_method
*
login
,
struct
alist
*
services
);
struct
login_method
*
make_unix_login
(
void
);
#endif
/* LSH_PASSWORD_H_INCLUDED */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment