summaryrefslogtreecommitdiff
path: root/src/sm_manager.c
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@code-monkey.de>2007-05-13 01:43:49 +0200
committerTilman Sauerbeck <tilman@code-monkey.de>2007-05-13 01:43:49 +0200
commit48d23e452780f327439a859fa941b1598eb249c8 (patch)
treecfac7a919906808166b5605135d284e38a14a0a9 /src/sm_manager.c
parent57ea148fdbf047a012b361acdc7954e70679dad3 (diff)
Removed some global writable variables.
Diffstat (limited to 'src/sm_manager.c')
-rw-r--r--src/sm_manager.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/sm_manager.c b/src/sm_manager.c
index 57f53b5..f2b4cd1 100644
--- a/src/sm_manager.c
+++ b/src/sm_manager.c
@@ -42,6 +42,9 @@ in this Software without prior written authorization from The Open Group.
#undef shutdown
#endif
+extern IcePaAuthStatus _IcePaMagicCookie1Proc ();
+extern void _SmsProcessMessage ();
+
static Status
@@ -123,6 +126,15 @@ int errorLength;
char *errorStringRet;
{
+ const char *auth_names[] = {"MIT-MAGIC-COOKIE-1"};
+ IcePaAuthProc auth_procs[] = {_IcePaMagicCookie1Proc};
+ int auth_count = 1;
+
+ IcePaVersionRec versions[] = {
+ {SmProtoMajor, SmProtoMinor, _SmsProcessMessage}
+ };
+ int version_count = 1;
+
if (errorStringRet && errorLength > 0)
*errorStringRet = '\0';
@@ -142,8 +154,8 @@ char *errorStringRet;
{
if ((_SmsOpcode = IceRegisterForProtocolReply ("XSMP",
- vendor, release, _SmVersionCount, _SmsVersions,
- _SmAuthCount, _SmAuthNames, _SmsAuthProcs, hostBasedAuthProc,
+ vendor, release, version_count, versions,
+ auth_count, auth_names, auth_procs, hostBasedAuthProc,
_SmsProtocolSetupProc,
NULL, /* IceProtocolActivateProc - we don't care about
when the Protocol Reply is sent, because the