tauth fixes - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit baf3dc26f74e59a7fe0ffc1325aeac5f33d63a1f
(DIR) parent ed670c4503a41a1f6d0da858bcb9af3efc8b73f3
(HTM) Author: rsc <devnull@localhost>
Date: Tue, 8 Feb 2005 21:04:13 +0000
auth fixes
Diffstat:
M include/auth.h | 9 +++++++--
M include/authsrv.h | 1 +
2 files changed, 8 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/include/auth.h b/include/auth.h
t@@ -8,6 +8,7 @@ extern "C" {
#pragma src "/sys/src/libauth"
#pragma lib "libauth.a"
*/
+AUTOLIB(auth)
/*
* Interface for typical callers.
t@@ -20,6 +21,8 @@ typedef struct MSchapreply MSchapreply;
typedef struct UserPasswd UserPasswd;
typedef struct AuthRpc AuthRpc;
+struct CFid;
+
enum
{
MAXCHLEN= 256, /* max challenge length */
t@@ -43,6 +46,7 @@ enum
struct AuthRpc
{
int afd;
+ struct CFid *afid;
char ibuf[AuthRpcMax];
char obuf[AuthRpcMax];
char *arg;
t@@ -67,7 +71,6 @@ struct Chalstate
int nresp;
/* for implementation only */
- int afd; /* to factotum */
AuthRpc *rpc; /* to factotum */
char userbuf[MAXNAMELEN]; /* temp space if needed */
int userinchal; /* user was sent to obtain challenge */
t@@ -131,6 +134,8 @@ char *_strfindattr(Attr*, char*);
extern AuthInfo* fauth_proxy(int, AuthRpc *rpc, AuthGetkey *getkey, char *params);
extern AuthInfo* auth_proxy(int fd, AuthGetkey *getkey, char *fmt, ...);
+extern AuthInfo* fsfauth_proxy(struct CFid*, AuthRpc *rpc, AuthGetkey *getkey, char *params);
+extern AuthInfo* fsauth_proxy(struct CFid*, AuthGetkey *getkey, char *fmt, ...);
extern int auth_getkey(char*);
extern int (*amount_getkey)(char*);
extern void auth_freeAI(AuthInfo *ai);
t@@ -142,7 +147,7 @@ extern void auth_freechal(Chalstate*);
extern AuthInfo* auth_userpasswd(char *user, char *passwd);
extern UserPasswd* auth_getuserpasswd(AuthGetkey *getkey, char*, ...);
extern AuthInfo* auth_getinfo(AuthRpc *rpc);
-extern AuthRpc* auth_allocrpc(int afd);
+extern AuthRpc* auth_allocrpc(void);
extern Attr* auth_attr(AuthRpc *rpc);
extern void auth_freerpc(AuthRpc *rpc);
extern uint auth_rpc(AuthRpc *rpc, char *verb, void *a, int n);
(DIR) diff --git a/include/authsrv.h b/include/authsrv.h
t@@ -7,6 +7,7 @@ extern "C" {
#pragma src "/sys/src/libauthsrv"
#pragma lib "libauthsrv.a"
*/
+AUTOLIB(authsrv)
/*
* Interface for talking to authentication server.