os: auth: factor out auth proto names into defines
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
73abb7150d
commit
e89006d015
|
@ -64,7 +64,7 @@ struct protocol {
|
||||||
|
|
||||||
static struct protocol protocols[] = {
|
static struct protocol protocols[] = {
|
||||||
{
|
{
|
||||||
.name = "MIT-MAGIC-COOKIE-1",
|
.name = XAUTH_PROTO_MIT,
|
||||||
.Add = MitAddCookie,
|
.Add = MitAddCookie,
|
||||||
.Check = MitCheckCookie,
|
.Check = MitCheckCookie,
|
||||||
.Reset = MitResetCookie,
|
.Reset = MitResetCookie,
|
||||||
|
@ -74,7 +74,7 @@ static struct protocol protocols[] = {
|
||||||
},
|
},
|
||||||
#ifdef HASXDMAUTH
|
#ifdef HASXDMAUTH
|
||||||
{
|
{
|
||||||
.name = "XDM-AUTHORIZATION-1",
|
.name = XAUTH_PROTO_XDM,
|
||||||
.Add = XdmAddCookie,
|
.Add = XdmAddCookie,
|
||||||
.Check = XdmCheckCookie,
|
.Check = XdmCheckCookie,
|
||||||
.Reset = XdmResetCookie,
|
.Reset = XdmResetCookie,
|
||||||
|
|
|
@ -5,6 +5,9 @@
|
||||||
|
|
||||||
#include "dix.h"
|
#include "dix.h"
|
||||||
|
|
||||||
|
#define XAUTH_PROTO_MIT "MIT-MAGIC-COOKIE-1"
|
||||||
|
#define XAUTH_PROTO_XDM "XDM-AUTHORIZATION-1"
|
||||||
|
|
||||||
#define AuthInitArgs void
|
#define AuthInitArgs void
|
||||||
typedef void (*AuthInitFunc) (AuthInitArgs);
|
typedef void (*AuthInitFunc) (AuthInitArgs);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue