os: unexport authorization management functions
Those aren't used by modules, thus no need to export them. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1344>
This commit is contained in:
parent
bed778ee60
commit
5a9b885118
|
@ -31,6 +31,7 @@ in this Software without prior written authorization from The Open Group.
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
#include "dix/registry_priv.h"
|
#include "dix/registry_priv.h"
|
||||||
#include "os/audit.h"
|
#include "os/audit.h"
|
||||||
|
#include "os/auth.h"
|
||||||
|
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
|
|
|
@ -87,6 +87,7 @@ Equipment Corporation.
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
#include "dix/registry_priv.h"
|
#include "dix/registry_priv.h"
|
||||||
#include "os/audit.h"
|
#include "os/audit.h"
|
||||||
|
#include "os/auth.h"
|
||||||
#include "os/cmdline.h"
|
#include "os/cmdline.h"
|
||||||
|
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
|
|
|
@ -62,7 +62,7 @@ static xcb_auth_info_t auth_info;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef XCSECURITY
|
#ifndef XCSECURITY
|
||||||
static XID
|
XID
|
||||||
GenerateAuthorization(unsigned name_length,
|
GenerateAuthorization(unsigned name_length,
|
||||||
const char *name,
|
const char *name,
|
||||||
unsigned data_length,
|
unsigned data_length,
|
||||||
|
|
50
include/os.h
50
include/os.h
|
@ -320,9 +320,6 @@ OsAbort(void)
|
||||||
extern _X_EXPORT Bool
|
extern _X_EXPORT Bool
|
||||||
PrivsElevated(void);
|
PrivsElevated(void);
|
||||||
|
|
||||||
extern _X_EXPORT void
|
|
||||||
CheckUserAuthorization(void);
|
|
||||||
|
|
||||||
extern _X_EXPORT int
|
extern _X_EXPORT int
|
||||||
AddHost(ClientPtr /*client */ ,
|
AddHost(ClientPtr /*client */ ,
|
||||||
int /*family */ ,
|
int /*family */ ,
|
||||||
|
@ -378,53 +375,6 @@ DefineSelf(int /*fd */ );
|
||||||
#ifdef XDMCP
|
#ifdef XDMCP
|
||||||
extern _X_EXPORT void
|
extern _X_EXPORT void
|
||||||
AugmentSelf(void *from, int len);
|
AugmentSelf(void *from, int len);
|
||||||
|
|
||||||
extern _X_EXPORT void
|
|
||||||
RegisterAuthorizations(void);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern _X_EXPORT void
|
|
||||||
InitAuthorization(const char * /*filename */ );
|
|
||||||
|
|
||||||
/* extern int LoadAuthorization(void); */
|
|
||||||
|
|
||||||
extern _X_EXPORT int
|
|
||||||
AuthorizationFromID(XID id,
|
|
||||||
unsigned short *name_lenp,
|
|
||||||
const char **namep,
|
|
||||||
unsigned short *data_lenp, char **datap);
|
|
||||||
|
|
||||||
extern _X_EXPORT XID
|
|
||||||
CheckAuthorization(unsigned int /*namelength */ ,
|
|
||||||
const char * /*name */ ,
|
|
||||||
unsigned int /*datalength */ ,
|
|
||||||
const char * /*data */ ,
|
|
||||||
ClientPtr /*client */ ,
|
|
||||||
const char ** /*reason */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern _X_EXPORT void
|
|
||||||
ResetAuthorization(void);
|
|
||||||
|
|
||||||
extern _X_EXPORT int
|
|
||||||
RemoveAuthorization(unsigned short name_length,
|
|
||||||
const char *name,
|
|
||||||
unsigned short data_length, const char *data);
|
|
||||||
|
|
||||||
extern _X_EXPORT int
|
|
||||||
AddAuthorization(unsigned int /*name_length */ ,
|
|
||||||
const char * /*name */ ,
|
|
||||||
unsigned int /*data_length */ ,
|
|
||||||
char * /*data */ );
|
|
||||||
|
|
||||||
#ifdef XCSECURITY
|
|
||||||
extern _X_EXPORT XID
|
|
||||||
GenerateAuthorization(unsigned int /* name_length */ ,
|
|
||||||
const char * /* name */ ,
|
|
||||||
unsigned int /* data_length */ ,
|
|
||||||
const char * /* data */ ,
|
|
||||||
unsigned int * /* data_length_return */ ,
|
|
||||||
char ** /* data_return */ );
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern _X_EXPORT int
|
extern _X_EXPORT int
|
||||||
|
|
36
os/auth.h
36
os/auth.h
|
@ -53,4 +53,40 @@ void DisableLocalAccess(void);
|
||||||
|
|
||||||
void LocalAccessScopeUser(void);
|
void LocalAccessScopeUser(void);
|
||||||
|
|
||||||
|
void InitAuthorization(const char *filename);
|
||||||
|
|
||||||
|
int AuthorizationFromID(XID id,
|
||||||
|
unsigned short *name_lenp,
|
||||||
|
const char **namep,
|
||||||
|
unsigned short *data_lenp, char **datap);
|
||||||
|
|
||||||
|
XID CheckAuthorization(unsigned int namelength,
|
||||||
|
const char *name,
|
||||||
|
unsigned int datalength,
|
||||||
|
const char *data,
|
||||||
|
ClientPtr client,
|
||||||
|
const char **reason);
|
||||||
|
|
||||||
|
void ResetAuthorization(void);
|
||||||
|
|
||||||
|
int RemoveAuthorization(unsigned short name_length,
|
||||||
|
const char *name,
|
||||||
|
unsigned short data_length, const char *data);
|
||||||
|
|
||||||
|
int AddAuthorization(unsigned int name_length,
|
||||||
|
const char *name,
|
||||||
|
unsigned int data_length,
|
||||||
|
char *data);
|
||||||
|
|
||||||
|
XID GenerateAuthorization(unsigned int name_length,
|
||||||
|
const char *name,
|
||||||
|
unsigned int data_length,
|
||||||
|
const char *data,
|
||||||
|
unsigned int *data_length_return,
|
||||||
|
char **data_return);
|
||||||
|
|
||||||
|
void RegisterAuthorizations(void);
|
||||||
|
|
||||||
|
void CheckUserAuthorization(void);
|
||||||
|
|
||||||
#endif /* _XSERVER_OS_AUTH_H */
|
#endif /* _XSERVER_OS_AUTH_H */
|
||||||
|
|
|
@ -39,6 +39,9 @@ from The Open Group.
|
||||||
|
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xauth.h>
|
#include <X11/Xauth.h>
|
||||||
|
|
||||||
|
#include "os/auth.h"
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "osdep.h"
|
#include "osdep.h"
|
||||||
|
|
|
@ -43,6 +43,9 @@ from The Open Group.
|
||||||
#define TRANS_SERVER
|
#define TRANS_SERVER
|
||||||
#define TRANS_REOPEN
|
#define TRANS_REOPEN
|
||||||
#include <X11/Xtrans/Xtrans.h>
|
#include <X11/Xtrans/Xtrans.h>
|
||||||
|
|
||||||
|
#include "os/auth.h"
|
||||||
|
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "osdep.h"
|
#include "osdep.h"
|
||||||
#include "xdmcp.h"
|
#include "xdmcp.h"
|
||||||
|
|
|
@ -39,6 +39,9 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xmd.h>
|
#include <X11/Xmd.h>
|
||||||
|
|
||||||
|
#include "os/auth.h"
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "osdep.h"
|
#include "osdep.h"
|
||||||
#include "xdmcp.h"
|
#include "xdmcp.h"
|
||||||
|
|
Loading…
Reference in New Issue