[275e2f]: / src / auth.h  Maximize  Restore  History

Download this file

31 lines (25 with data), 704 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef __AUTH_H__
#define __AUTH_H__
#include "list.h"
struct authinfo{
LIST entries;
int ref_count;
char *domain;
char *user;
char *password;
};
void auth_set_default_login_name(const char *name);
struct authinfo * auth_get_authinfo(
const char *domain,
const char *server,
const char *share,
int *suitability);
void auth_release_authinfo(struct authinfo *info);
int auth_store_auth_data(
const char *server_or_domain,
const char *share_or_empty,
const char *domain,
const char *user,
const char *password);
void auth_delete_obsolete(time_t threshold);
#endif /* __AUTH_H__ */