Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
0ed5c491
...
0ed5c491cdab5916aa52fbfe22d7ecb5f230ac4d
authored
2006-10-16 14:50:00 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(enum mu_auth_key_type): New data type.
(mu_get_auth): New function.
1 parent
c565bb56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
include/mailutils/mu_auth.h
include/mailutils/mu_auth.h
View file @
0ed5c49
...
...
@@ -21,7 +21,8 @@
#include <mailutils/types.h>
struct
mu_auth_data
{
struct
mu_auth_data
{
/* These are from struct passwd */
char
*
name
;
/* user name */
char
*
passwd
;
/* user password */
...
...
@@ -40,7 +41,8 @@ typedef int (*mu_auth_fp) (struct mu_auth_data **data,
void
*
func_data
,
void
*
call_data
);
struct
mu_auth_module
{
struct
mu_auth_module
{
char
*
name
;
struct
argp
*
argp
;
mu_auth_fp
authenticate
;
...
...
@@ -51,9 +53,20 @@ struct mu_auth_module {
void
*
auth_by_uid_data
;
};
enum
mu_auth_key_type
{
mu_auth_key_name
,
mu_auth_key_uid
};
extern
int
mu_auth_runlist
(
mu_list_t
flist
,
struct
mu_auth_data
**
return_data
,
const
void
*
key
,
void
*
data
);
extern
int
mu_get_auth
(
struct
mu_auth_data
**
auth
,
enum
mu_auth_key_type
type
,
const
void
*
key
);
extern
struct
mu_auth_data
*
mu_get_auth_by_name
(
const
char
*
username
);
...
...
Please
register
or
sign in
to post a comment