Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
LSH
lsh
Commits
93674f7f
Commit
93674f7f
authored
Oct 30, 1998
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reintroduced the unix_service type.
Rev: src/password.h:1.4
parent
46905e26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
src/password.h
src/password.h
+23
-2
No files found.
src/password.h
View file @
93674f7f
/* password.h
/* password.h
*
*
* System dependant password related functions.
* System dependant password related functions.
*
* $Id$
*/
*/
/* lsh, an implementation of the ssh protocol
/* lsh, an implementation of the ssh protocol
...
@@ -44,16 +46,34 @@ struct unix_user
...
@@ -44,16 +46,34 @@ struct unix_user
/* These strings include a terminating NUL-character,
/* These strings include a terminating NUL-character,
* for compatibility with library and system calls. */
* for compatibility with library and system calls. */
struct
lsh_string
*
user
name
;
struct
lsh_string
*
name
;
struct
lsh_string
*
passwd
;
/* Crypted passwd */
struct
lsh_string
*
passwd
;
/* Crypted passwd */
struct
lsh_string
*
home
;
struct
lsh_string
*
home
;
struct
lsh_string
*
shell
;
};
};
struct
unix_user
*
lookup_user
(
struct
lsh_string
*
name
,
int
free
);
struct
unix_user
*
lookup_user
(
struct
lsh_string
*
name
,
int
free
);
int
verify_password
(
struct
unix_user
*
user
,
struct
lsh_string
*
password
,
int
free
);
int
verify_password
(
struct
unix_user
*
user
,
struct
lsh_string
*
password
,
int
free
);
struct
userauth
*
make_password_userauth
(
void
);
struct
userauth
*
make_password_userauth
(
void
);
struct
unix_service
{
struct
lsh_object
header
;
struct
ssh_service
*
(
*
login
)(
struct
unix_service
*
closure
,
struct
unix_user
*
user
);
};
#define LOGIN(s, u) ((s)->login((s), (u)))
struct
userauth
*
make_unix_userauth
(
struct
alist
*
services
);
int
change_uid
(
struct
unix_user
*
user
);
int
change_dir
(
struct
unix_user
*
user
);
#if 0
struct login_method
struct login_method
{
{
struct lsh_object header;
struct lsh_object header;
...
@@ -68,5 +88,6 @@ struct login_method
...
@@ -68,5 +88,6 @@ struct login_method
struct userauth *make_unix_userauth(struct login_method *login,
struct userauth *make_unix_userauth(struct login_method *login,
struct alist *services);
struct alist *services);
struct login_method *make_unix_login(void);
struct login_method *make_unix_login(void);
#endif
#endif
/* LSH_PASSWORD_H_INCLUDED */
#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