os: move rpcauth prototypes to separate header
The rpc authentication handling isn't really OS specific, and only few sites actually need to call it, so at least it's prototypes are better off in some separate header. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1311>
This commit is contained in:
parent
8c4a015cc2
commit
664c3b6ba8
|
@ -191,6 +191,7 @@ SOFTWARE.
|
|||
#include "osdep.h"
|
||||
|
||||
#include "xace.h"
|
||||
#include "rpcauth.h"
|
||||
|
||||
Bool defeatAccessControl = FALSE;
|
||||
|
||||
|
|
|
@ -48,6 +48,8 @@ from The Open Group.
|
|||
#endif
|
||||
#include <stdlib.h> /* for arc4random_buf() */
|
||||
|
||||
#include "rpcauth.h"
|
||||
|
||||
struct protocol {
|
||||
unsigned short name_length;
|
||||
const char *name;
|
||||
|
|
10
os/osdep.h
10
os/osdep.h
|
@ -171,16 +171,6 @@ extern int XdmRemoveCookie(AuthRemCArgs);
|
|||
extern int XdmResetCookie(AuthRstCArgs);
|
||||
#endif
|
||||
|
||||
/* in rpcauth.c */
|
||||
#ifdef SECURE_RPC
|
||||
extern void SecureRPCInit(AuthInitArgs);
|
||||
extern XID SecureRPCCheck(AuthCheckArgs);
|
||||
extern int SecureRPCAdd(AuthAddCArgs);
|
||||
extern int SecureRPCFromID(AuthFromIDArgs);
|
||||
extern int SecureRPCRemove(AuthRemCArgs);
|
||||
extern int SecureRPCReset(AuthRstCArgs);
|
||||
#endif
|
||||
|
||||
#ifdef XDMCP
|
||||
/* in xdmcp.c */
|
||||
extern void XdmcpUseMsg(void);
|
||||
|
|
|
@ -43,6 +43,7 @@ from The Open Group.
|
|||
#include "os.h"
|
||||
#include "osdep.h"
|
||||
#include "dixstruct.h"
|
||||
#include "rpcauth.h"
|
||||
|
||||
#include <rpc/rpc.h>
|
||||
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
#ifndef _XSERVER_OS_RPCAUTH_H
|
||||
#define _XSERVER_OS_RPCAUTH_H
|
||||
|
||||
#include "osdep.h"
|
||||
|
||||
void SecureRPCInit(AuthInitArgs);
|
||||
XID SecureRPCCheck(AuthCheckArgs);
|
||||
int SecureRPCAdd(AuthAddCArgs);
|
||||
int SecureRPCFromID(AuthFromIDArgs);
|
||||
int SecureRPCRemove(AuthRemCArgs);
|
||||
int SecureRPCReset(AuthRstCArgs);
|
||||
|
||||
#endif /* _XSERVER_OS_RPCAUTH_H */
|
Loading…
Reference in New Issue