Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
825af183
Unverified
Commit
825af183
authored
Apr 22, 2015
by
Mihai Moldovan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sunweaver-pr/libxdmcp-cleanup' into arctica-3.6.x
Attributes GH PR #15:
https://github.com/ArcticaProject/nx-libs/pull/15
parents
a5bb8882
49fc383a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
57 changed files
with
28 additions
and
2935 deletions
+28
-2935
control
debian/control
+15
-24
libnx-x11-6.symbols
debian/libnx-x11-6.symbols
+4
-4
libnx-xdmcp-dev.install.in
debian/libnx-xdmcp-dev.install.in
+0
-2
libnx-xdmcp6.install.in
debian/libnx-xdmcp6.install.in
+0
-1
libnx-xdmcp6.symbols
debian/libnx-xdmcp6.symbols
+0
-46
rules
debian/rules
+0
-1
README
nx-X11/config/cf/README
+0
-6
X11.tmpl
nx-X11/config/cf/X11.tmpl
+0
-30
Imakefile
nx-X11/lib/Imakefile
+1
-6
Imakefile
nx-X11/lib/X11/Imakefile
+1
-10
A8Eq.c
nx-X11/lib/Xdmcp/A8Eq.c
+0
-50
AA16.c
nx-X11/lib/Xdmcp/AA16.c
+0
-51
AA32.c
nx-X11/lib/Xdmcp/AA32.c
+0
-51
AA8.c
nx-X11/lib/Xdmcp/AA8.c
+0
-51
Alloc.c
nx-X11/lib/Xdmcp/Alloc.c
+0
-66
AofA8.c
nx-X11/lib/Xdmcp/AofA8.c
+0
-51
CA8.c
nx-X11/lib/Xdmcp/CA8.c
+0
-49
CmpKey.c
nx-X11/lib/Xdmcp/CmpKey.c
+0
-49
DA16.c
nx-X11/lib/Xdmcp/DA16.c
+0
-46
DA32.c
nx-X11/lib/Xdmcp/DA32.c
+0
-45
DA8.c
nx-X11/lib/Xdmcp/DA8.c
+0
-45
DAofA8.c
nx-X11/lib/Xdmcp/DAofA8.c
+0
-51
DecKey.c
nx-X11/lib/Xdmcp/DecKey.c
+0
-49
Fill.c
nx-X11/lib/Xdmcp/Fill.c
+0
-102
Flush.c
nx-X11/lib/Xdmcp/Flush.c
+0
-83
GenKey.c
nx-X11/lib/Xdmcp/GenKey.c
+0
-74
Imakefile
nx-X11/lib/Xdmcp/Imakefile
+0
-121
IncKey.c
nx-X11/lib/Xdmcp/IncKey.c
+0
-49
RA16.c
nx-X11/lib/Xdmcp/RA16.c
+0
-72
RA32.c
nx-X11/lib/Xdmcp/RA32.c
+0
-72
RA8.c
nx-X11/lib/Xdmcp/RA8.c
+0
-72
RAofA8.c
nx-X11/lib/Xdmcp/RAofA8.c
+0
-75
RC16.c
nx-X11/lib/Xdmcp/RC16.c
+0
-52
RC32.c
nx-X11/lib/Xdmcp/RC32.c
+0
-56
RC8.c
nx-X11/lib/Xdmcp/RC8.c
+0
-47
RHead.c
nx-X11/lib/Xdmcp/RHead.c
+0
-48
RR.c
nx-X11/lib/Xdmcp/RR.c
+0
-43
RaA16.c
nx-X11/lib/Xdmcp/RaA16.c
+0
-51
RaA32.c
nx-X11/lib/Xdmcp/RaA32.c
+0
-51
RaA8.c
nx-X11/lib/Xdmcp/RaA8.c
+0
-51
RaAoA8.c
nx-X11/lib/Xdmcp/RaAoA8.c
+0
-51
Unwrap.c
nx-X11/lib/Xdmcp/Unwrap.c
+0
-95
WA16.c
nx-X11/lib/Xdmcp/WA16.c
+0
-51
WA32.c
nx-X11/lib/Xdmcp/WA32.c
+0
-51
WA8.c
nx-X11/lib/Xdmcp/WA8.c
+0
-51
WAofA8.c
nx-X11/lib/Xdmcp/WAofA8.c
+0
-51
WC16.c
nx-X11/lib/Xdmcp/WC16.c
+0
-50
WC32.c
nx-X11/lib/Xdmcp/WC32.c
+0
-53
WC8.c
nx-X11/lib/Xdmcp/WC8.c
+0
-49
Whead.c
nx-X11/lib/Xdmcp/Whead.c
+0
-64
Wrap.c
nx-X11/lib/Xdmcp/Wrap.c
+0
-133
Wrap.h
nx-X11/lib/Xdmcp/Wrap.h
+0
-19
Wraphelp.README.crypto
nx-X11/lib/Xdmcp/Wraphelp.README.crypto
+0
-64
Wraphelp.c
nx-X11/lib/Xdmcp/Wraphelp.c
+0
-0
Xdmcp.h
nx-X11/lib/Xdmcp/Xdmcp.h
+0
-190
Imakefile
nx-X11/programs/Xserver/Imakefile
+4
-4
nx-libs.spec
nx-libs.spec
+3
-56
No files found.
debian/control
View file @
825af183
...
@@ -16,6 +16,7 @@ Build-Depends:
...
@@ -16,6 +16,7 @@ Build-Depends:
libxml2-dev,
libxml2-dev,
libxpm-dev,
libxpm-dev,
libxfont-dev,
libxfont-dev,
libxdmcp-dev,
autoconf,
autoconf,
pkg-config,
pkg-config,
x11proto-core-dev,
x11proto-core-dev,
...
@@ -367,19 +368,16 @@ Multi-Arch: same
...
@@ -367,19 +368,16 @@ Multi-Arch: same
Pre-Depends:
Pre-Depends:
${misc:Pre-Depends},
${misc:Pre-Depends},
Depends:
Depends:
${shlibs:Depends},
${misc:Depends},
${misc:Depends},
Breaks: nxlibs (<= 3.5.1),
Description: nx-X11 Display Manager Control Protocol library (dummy package)
libnx-x11 (<< 2:3.5.0.29-0x2go2~),
Description: nx-X11 Display Manager Control Protocol library
NX is a software suite which implements very efficient
NX is a software suite which implements very efficient
compression of the X11 protocol. This increases performance when
compression of the X11 protocol. This increases performance when
using X applications over a network, especially a slow one.
using X applications over a network, especially a slow one.
.
.
nx-X11 Display Manager Control Protocol library
This package removes the obsoleted libNX_Xdmcp.so.6 library. With
recent versions of NX, the system-wide installed libXdmcp gets used.
.
.
This package provides the main interface to the nx-X11 display manager control
This package can be safely removed.
protocol library, which allows for remote logins to display managers.
Package: libnx-xdmcp-dev
Package: libnx-xdmcp-dev
Provides: libnx-xdmcp6-dev
Provides: libnx-xdmcp6-dev
...
@@ -387,21 +385,17 @@ Section: libdevel
...
@@ -387,21 +385,17 @@ Section: libdevel
Architecture: any
Architecture: any
Multi-Arch: same
Multi-Arch: same
Depends:
Depends:
libnx-xdmcp6 (= ${binary:Version}),
${misc:Depends},
${misc:Depends},
Breaks: nxlibs (<= 3.5.1),
Description: nx-X11 Display Manager Control Protocol library (dummy package)
libnx-x11-dev (<< 2:3.5.0.29-0x2go2~),
Description: nx-X11 Display Manager Control Protocol library (development headers)
NX is a software suite which implements very efficient
NX is a software suite which implements very efficient
compression of the X11 protocol. This increases performance when
compression of the X11 protocol. This increases performance when
using X applications over a network, especially a slow one.
using X applications over a network, especially a slow one.
.
.
nx-X11 Display Manager Control Protocol library
This package removes the obsoleted headers for the libNX_Xdmcp.so.6
.
library. With recent versions of NX, the system-wide installed libXdmcp
This package provides the main interface to the nx-X11 display manager control
gets used.
protocol library, which allows for remote logins to display managers.
.
.
This package c
ontains the development headers for this library
.
This package c
an be safely removed
.
Package: libnx-xdmcp6-dbg
Package: libnx-xdmcp6-dbg
Architecture: any
Architecture: any
...
@@ -409,21 +403,18 @@ Multi-Arch: same
...
@@ -409,21 +403,18 @@ Multi-Arch: same
Pre-Depends:
Pre-Depends:
${misc:Pre-Depends},
${misc:Pre-Depends},
Depends:
Depends:
libnx-xdmcp6 (= ${binary:Version}),
${misc:Depends},
${misc:Depends},
Section: debug
Section: debug
Breaks: nx-x11-dbg (<< 2:3.5.0.29-0x2go2~),
Description: nx-X11 Display Manager Control Protocol library (dummy package)
Description: nx-X11 Display Manager Control Protocol library (debug package)
NX is a software suite which implements very efficient
NX is a software suite which implements very efficient
compression of the X11 protocol. This increases performance when
compression of the X11 protocol. This increases performance when
using X applications over a network, especially a slow one.
using X applications over a network, especially a slow one.
.
.
nx-X11 Display Manager Control Protocol library
This package removes the obsoleted debug symbols for the libNX_Xdmcp.so.6
.
library. With recent versions of NX, the system-wide installed libXdmcp
This package provides the main interface to the nx-X11 display manager control
gets used.
protocol library, which allows for remote logins to display managers.
.
.
This package c
ontains debug symbols for this library
.
This package c
an be safely removed
.
Package: libnx-xext6
Package: libnx-xext6
Architecture: any
Architecture: any
...
...
debian/libnx-x11-6.symbols
View file @
825af183
...
@@ -547,7 +547,7 @@ libNX_X11.so.6 libnx-x11-6 #MINVER#
...
@@ -547,7 +547,7 @@ libNX_X11.so.6 libnx-x11-6 #MINVER#
XcmsTekHVCWhiteShiftColors@Base 3.5.0.29
XcmsTekHVCWhiteShiftColors@Base 3.5.0.29
XcmsUNDEFINEDColorSpace@Base 3.5.0.29
XcmsUNDEFINEDColorSpace@Base 3.5.0.29
XcmsVisualOfCCC@Base 3.5.0.29
XcmsVisualOfCCC@Base 3.5.0.29
XdmcpWrap@Base 3.5.0.29
#MISSING: 2:3.5.99.0-0~build1#
XdmcpWrap@Base 3.5.0.29
XkbAddDeviceLedInfo@Base 3.5.0.29
XkbAddDeviceLedInfo@Base 3.5.0.29
XkbAddGeomColor@Base 3.5.0.29
XkbAddGeomColor@Base 3.5.0.29
XkbAddGeomDoodad@Base 3.5.0.29
XkbAddGeomDoodad@Base 3.5.0.29
...
@@ -956,9 +956,9 @@ libNX_X11.so.6 libnx-x11-6 #MINVER#
...
@@ -956,9 +956,9 @@ libNX_X11.so.6 libnx-x11-6 #MINVER#
_XcmsTekHVC_prefix@Base 3.5.0.29
_XcmsTekHVC_prefix@Base 3.5.0.29
_XcmsUnresolveColor@Base 3.5.0.29
_XcmsUnresolveColor@Base 3.5.0.29
_Xdebug@Base 3.5.0.29
_Xdebug@Base 3.5.0.29
_XdmcpAuthDoIt@Base 3.5.0.29
#MISSING: 2:3.5.99.0-0~build1#
_XdmcpAuthDoIt@Base 3.5.0.29
_XdmcpAuthSetup@Base 3.5.0.29
#MISSING: 2:3.5.99.0-0~build1#
_XdmcpAuthSetup@Base 3.5.0.29
_XdmcpWrapperToOddParity@Base 3.5.0.29
#MISSING: 2:3.5.99.0-0~build1#
_XdmcpWrapperToOddParity@Base 3.5.0.29
_Xevent_to_mask@Base 3.5.0.29
_Xevent_to_mask@Base 3.5.0.29
_Xglobal_lock@Base 3.5.0.29
_Xglobal_lock@Base 3.5.0.29
_Xi18n_lock@Base 3.5.0.29
_Xi18n_lock@Base 3.5.0.29
...
...
debian/libnx-xdmcp-dev.install.in
deleted
100644 → 0
View file @
a5bb8882
usr/lib/*/libNX_Xdmcp.so
usr/include/*/nx/X11/Xdmcp.h
debian/libnx-xdmcp6.install.in
deleted
100644 → 0
View file @
a5bb8882
usr/lib/*/libNX_Xdmcp.so.*
debian/libnx-xdmcp6.symbols
deleted
100644 → 0
View file @
a5bb8882
libNX_Xdmcp.so.6 libnx-xdmcp6 #MINVER#
Xalloc@Base 3.5.0.29
XdmcpARRAY8Equal@Base 3.5.0.29
XdmcpAllocARRAY16@Base 3.5.0.29
XdmcpAllocARRAY32@Base 3.5.0.29
XdmcpAllocARRAY8@Base 3.5.0.29
XdmcpAllocARRAYofARRAY8@Base 3.5.0.29
XdmcpCompareKeys@Base 3.5.0.29
XdmcpCopyARRAY8@Base 3.5.0.29
XdmcpDecrementKey@Base 3.5.0.29
XdmcpDisposeARRAY16@Base 3.5.0.29
XdmcpDisposeARRAY32@Base 3.5.0.29
XdmcpDisposeARRAY8@Base 3.5.0.29
XdmcpDisposeARRAYofARRAY8@Base 3.5.0.29
XdmcpFill@Base 3.5.0.29
XdmcpFlush@Base 3.5.0.29
XdmcpGenerateKey@Base 3.5.0.29
XdmcpIncrementKey@Base 3.5.0.29
XdmcpReadARRAY16@Base 3.5.0.29
XdmcpReadARRAY32@Base 3.5.0.29
XdmcpReadARRAY8@Base 3.5.0.29
XdmcpReadARRAYofARRAY8@Base 3.5.0.29
XdmcpReadCARD16@Base 3.5.0.29
XdmcpReadCARD32@Base 3.5.0.29
XdmcpReadCARD8@Base 3.5.0.29
XdmcpReadHeader@Base 3.5.0.29
XdmcpReadRemaining@Base 3.5.0.29
XdmcpReallocARRAY16@Base 3.5.0.29
XdmcpReallocARRAY32@Base 3.5.0.29
XdmcpReallocARRAY8@Base 3.5.0.29
XdmcpReallocARRAYofARRAY8@Base 3.5.0.29
XdmcpUnwrap@Base 3.5.0.29
XdmcpWrap@Base 3.5.0.29
XdmcpWriteARRAY16@Base 3.5.0.29
XdmcpWriteARRAY32@Base 3.5.0.29
XdmcpWriteARRAY8@Base 3.5.0.29
XdmcpWriteARRAYofARRAY8@Base 3.5.0.29
XdmcpWriteCARD16@Base 3.5.0.29
XdmcpWriteCARD32@Base 3.5.0.29
XdmcpWriteCARD8@Base 3.5.0.29
XdmcpWriteHeader@Base 3.5.0.29
Xfree@Base 3.5.0.29
Xrealloc@Base 3.5.0.29
_XdmcpAuthDoIt@Base 3.5.0.29
_XdmcpAuthSetup@Base 3.5.0.29
_XdmcpWrapperToOddParity@Base 3.5.0.29
debian/rules
View file @
825af183
...
@@ -83,7 +83,6 @@ override_dh_strip:
...
@@ -83,7 +83,6 @@ override_dh_strip:
dh_strip -plibnx-xau6 --dbg-package=libnx-xau6-dbg
dh_strip -plibnx-xau6 --dbg-package=libnx-xau6-dbg
dh_strip -plibnx-xcomposite1 --dbg-package=libnx-xcomposite1-dbg
dh_strip -plibnx-xcomposite1 --dbg-package=libnx-xcomposite1-dbg
dh_strip -plibnx-xdamage1 --dbg-package=libnx-xdamage1-dbg
dh_strip -plibnx-xdamage1 --dbg-package=libnx-xdamage1-dbg
dh_strip -plibnx-xdmcp6 --dbg-package=libnx-xdmcp6-dbg
dh_strip -plibnx-xext6 --dbg-package=libnx-xext6-dbg
dh_strip -plibnx-xext6 --dbg-package=libnx-xext6-dbg
dh_strip -plibnx-xfixes3 --dbg-package=libnx-xfixes3-dbg
dh_strip -plibnx-xfixes3 --dbg-package=libnx-xfixes3-dbg
dh_strip -plibnx-xinerama1 --dbg-package=libnx-xinerama1-dbg
dh_strip -plibnx-xinerama1 --dbg-package=libnx-xinerama1-dbg
...
...
nx-X11/config/cf/README
View file @
825af183
...
@@ -204,7 +204,6 @@ X11.tmpl provides defaults for the following variables:
...
@@ -204,7 +204,6 @@ X11.tmpl provides defaults for the following variables:
DebugLibX11 build libX11_d.a
DebugLibX11 build libX11_d.a
DebugLibXau build libXau_d.a
DebugLibXau build libXau_d.a
DebugLibXaw build libXaw_d.a
DebugLibXaw build libXaw_d.a
DebugLibXdmcp build libXdmcp_d.a
DebugLibXext build libXext_d.a
DebugLibXext build libXext_d.a
DebugLibXi build libXi_d.a
DebugLibXi build libXi_d.a
DebugLibXmu build libXmu_d.a
DebugLibXmu build libXmu_d.a
...
@@ -253,7 +252,6 @@ X11.tmpl provides defaults for the following variables:
...
@@ -253,7 +252,6 @@ X11.tmpl provides defaults for the following variables:
NormalLibX11 build libX11.a
NormalLibX11 build libX11.a
NormalLibXau build libXau.a
NormalLibXau build libXau.a
NormalLibXaw build libXaw.a
NormalLibXaw build libXaw.a
NormalLibXdmcp build libXdmcp.a
NormalLibXext build libXext.a
NormalLibXext build libXext.a
NormalLibXi build libXi.a
NormalLibXi build libXi.a
NormalLibXmu build libXmu.a
NormalLibXmu build libXmu.a
...
@@ -269,7 +267,6 @@ X11.tmpl provides defaults for the following variables:
...
@@ -269,7 +267,6 @@ X11.tmpl provides defaults for the following variables:
ProfileLibX11 build libX11_p.a
ProfileLibX11 build libX11_p.a
ProfileLibXau build libXau_p.a
ProfileLibXau build libXau_p.a
ProfileLibXaw build libXaw_p.a
ProfileLibXaw build libXaw_p.a
ProfileLibXdmcp build libXdmcp_p.a
ProfileLibXext build libXext_p.a
ProfileLibXext build libXext_p.a
ProfileLibXi build libXi_p.a
ProfileLibXi build libXi_p.a
ProfileLibXmu build libXmu_p.a
ProfileLibXmu build libXmu_p.a
...
@@ -291,7 +288,6 @@ X11.tmpl provides defaults for the following variables:
...
@@ -291,7 +288,6 @@ X11.tmpl provides defaults for the following variables:
SharedLibX11 boolean for making sharable libX11.so
SharedLibX11 boolean for making sharable libX11.so
SharedLibXau boolean for making sharable libXau.so
SharedLibXau boolean for making sharable libXau.so
SharedLibXaw boolean for making sharable libXaw.so
SharedLibXaw boolean for making sharable libXaw.so
SharedLibXdmcp boolean for making sharable libXdmcp.so
SharedLibXext boolean for making sharable libXext.so
SharedLibXext boolean for making sharable libXext.so
SharedLibXi boolean for making sharable libXi.so
SharedLibXi boolean for making sharable libXi.so
SharedLibXmu boolean for making sharable libXmu.so
SharedLibXmu boolean for making sharable libXmu.so
...
@@ -384,8 +380,6 @@ An <os>Lib.tmpl file provides defaults for the following variables:
...
@@ -384,8 +380,6 @@ An <os>Lib.tmpl file provides defaults for the following variables:
SharedXauRev version number for libXau.so
SharedXauRev version number for libXau.so
SharedXawReqs required libs for libXaw.so
SharedXawReqs required libs for libXaw.so
SharedXawRev version number for libXaw.so
SharedXawRev version number for libXaw.so
SharedXdmcpReqs required libs for libXdmcp.so
SharedXdmcpRev version number for libXdmcp.so
SharedXextReqs required libs for libXext.so
SharedXextReqs required libs for libXext.so
SharedXextRev version number for libXext.so
SharedXextRev version number for libXext.so
SharedXiReqs required libs for libXi.so
SharedXiReqs required libs for libXi.so
...
...
nx-X11/config/cf/X11.tmpl
View file @
825af183
...
@@ -171,10 +171,6 @@ XORGRELSTRING = XorgManVersionString
...
@@ -171,10 +171,6 @@ XORGRELSTRING = XorgManVersionString
#define BuildXauLib (BuildLibraries || BuildLibrariesForXServers)
#define BuildXauLib (BuildLibraries || BuildLibrariesForXServers)
#endif
#endif
#define UseInstalledXauLib (defined(UseInstalled) || !BuildXauLib)
#define UseInstalledXauLib (defined(UseInstalled) || !BuildXauLib)
#ifndef BuildXdmcpLib
#define BuildXdmcpLib (BuildLibraries || BuildLibrariesForXServers)
#endif
#define UseInstalledXdmcpLib (defined(UseInstalled) || !BuildXdmcpLib)
#ifndef BuildMITMiscExt
#ifndef BuildMITMiscExt
#define BuildMITMiscExt YES
#define BuildMITMiscExt YES
#endif
#endif
...
@@ -2442,32 +2438,6 @@ ProjectUnsharedLibReferences(XAUTH,NX_Xau,$(XAUTHSRC),$(USRLIBDIR))
...
@@ -2442,32 +2438,6 @@ ProjectUnsharedLibReferences(XAUTH,NX_Xau,$(XAUTHSRC),$(USRLIBDIR))
#endif
#endif
#endif
#endif
#ifndef SharedLibXdmcp
#define SharedLibXdmcp YES
#endif
#ifndef NormalLibXdmcp
#define NormalLibXdmcp (!SharedLibXdmcp | ForceNormalLib)
#endif
#ifndef DebugLibXdmcp
#define DebugLibXdmcp NO /* debugged XDMCP library */
#endif
#ifndef ProfileLibXdmcp
#define ProfileLibXdmcp NO /* profiled XDMCP library */
#endif
XDMCPLIBSRC = $(LIBSRC)/Xdmcp
#if SharedLibXdmcp
#ifndef SharedXdmcpRev
#define SharedXdmcpRev 6.0
#endif
SharedLibReferences(XDMCP,NX_Xdmcp,$(XDMCPLIBSRC),SOXDMCPREV,SharedXdmcpRev)
#else
#if !UseInstalledXdmcpLib
ProjectUnsharedLibReferences(XDMCP,NX_Xdmcp,$(XDMCPLIBSRC),XBuildLibDir)
#else
ProjectUnsharedLibReferences(XDMCP,NX_Xdmcp,$(XDMCPLIBSRC),$(USRLIBDIR))
#endif
#endif
#ifndef SharedLibXmu
#ifndef SharedLibXmu
#define SharedLibXmu HasSharedLibraries
#define SharedLibXmu HasSharedLibraries
#endif
#endif
...
...
nx-X11/lib/Imakefile
View file @
825af183
...
@@ -165,10 +165,6 @@ XALIBDIR = Xa
...
@@ -165,10 +165,6 @@ XALIBDIR = Xa
XAULIBDIR = Xau
XAULIBDIR = Xau
#endif
#endif
#if BuildXdmcpLib
XDMCPLIBDIR = Xdmcp
#endif
#if BuildX11Lib
#if BuildX11Lib
X11LIBDIR = X11
X11LIBDIR = X11
#endif
#endif
...
@@ -183,7 +179,7 @@ XTSTLIBDIR = Xtst
...
@@ -183,7 +179,7 @@ XTSTLIBDIR = Xtst
#endif
#endif
LINTSUBDIRS = $(XAULIBDIR) $(X
DMCPLIBDIR) $(X
11LIBDIR) \
LINTSUBDIRS = $(XAULIBDIR) $(X11LIBDIR) \
$(OLDXLIBDIR) $(ICELIBDIR) $(SMLIBDIR) $(XEXTLIBDIR) $(XTLIBDIR) \
$(OLDXLIBDIR) $(ICELIBDIR) $(SMLIBDIR) $(XEXTLIBDIR) $(XTLIBDIR) \
$(SSLIBDIR) $(XF86MISCLIBDIR) $(XF86VMLIBDIR) $(XF86DGALIBDIR) \
$(SSLIBDIR) $(XF86MISCLIBDIR) $(XF86VMLIBDIR) $(XF86DGALIBDIR) \
$(XF86RUSHLIBDIR) $(XMULIBDIR) $(XMUULIBDIR) $(XPMLIBDIR) \
$(XF86RUSHLIBDIR) $(XMULIBDIR) $(XMUULIBDIR) $(XPMLIBDIR) \
...
@@ -204,4 +200,3 @@ MakeSubdirs($(SUBDIRS))
...
@@ -204,4 +200,3 @@ MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
MakeLintLibSubdirs($(LINTSUBDIRS))
MakeLintLibSubdirs($(LINTSUBDIRS))
MakeLintSubdirs($(LINTSUBDIRS),install.ln,install.ln)
MakeLintSubdirs($(LINTSUBDIRS),install.ln,install.ln)
nx-X11/lib/X11/Imakefile
View file @
825af183
...
@@ -120,8 +120,6 @@ EXTRA_LIBRARIES = /**/
...
@@ -120,8 +120,6 @@ EXTRA_LIBRARIES = /**/
#endif
#endif
#if HasXdmAuth
#if HasXdmAuth
XDMAUTHDEFS = -DHASXDMAUTH
XDMAUTHDEFS = -DHASXDMAUTH
XDMAUTHOBJS = Wrap.o Wraphelp.o
XDMAUTHSRCS = Wrap.c Wraphelp.c
#endif
#endif
#if BuildXKBlib
#if BuildXKBlib
XKB_DEFINES = -DXKB
XKB_DEFINES = -DXKB
...
@@ -593,7 +591,7 @@ SRCS2 = \
...
@@ -593,7 +591,7 @@ SRCS2 = \
Withdraw.c \
Withdraw.c \
WMGeom.c \
WMGeom.c \
WMProps.c \
WMProps.c \
$(AUTHSRCS) $(
XDMAUTHSRCS) $(
K5SRCS) $(THRSTUBSRCS)
$(AUTHSRCS) $(K5SRCS) $(THRSTUBSRCS)
OBJS2 = \
OBJS2 = \
Macros.o \
Macros.o \
...
@@ -716,7 +714,6 @@ OBJS2 = \
...
@@ -716,7 +714,6 @@ OBJS2 = \
WMGeom.o \
WMGeom.o \
WMProps.o \
WMProps.o \
$(AUTHOBJS) \
$(AUTHOBJS) \
$(XDMAUTHOBJS) \
$(K5OBJS) \
$(K5OBJS) \
$(THRSTUBOBJS)
$(THRSTUBOBJS)
...
@@ -1069,7 +1066,6 @@ LinkFile(x11trans.c,$(TRANSCOMMSRC)/transport.c)
...
@@ -1069,7 +1066,6 @@ LinkFile(x11trans.c,$(TRANSCOMMSRC)/transport.c)
SpecialCLibObjectRule(ximtrans,$(ICONFIGFILES),$(TRANS_INCLUDES) $(CONN_DEFINES) $(SOCK_DEFINES) $(XTRANS_XIM_DEFINES) $(POLL_DEFINES))
SpecialCLibObjectRule(ximtrans,$(ICONFIGFILES),$(TRANS_INCLUDES) $(CONN_DEFINES) $(SOCK_DEFINES) $(XTRANS_XIM_DEFINES) $(POLL_DEFINES))
LinkFile(ximtrans.c,$(TRANSCOMMSRC)/transport.c)
LinkFile(ximtrans.c,$(TRANSCOMMSRC)/transport.c)
SpecialCLibObjectRule(OpenDis,$(ICONFIGFILES),$(BC_DEFINES) $(OPEN_DEFINES) $(XTRANS_X_DEFINES) $(XKB_DEFINES))
SpecialCLibObjectRule(OpenDis,$(ICONFIGFILES),$(BC_DEFINES) $(OPEN_DEFINES) $(XTRANS_X_DEFINES) $(XKB_DEFINES))
SpecialCLibObjectRule(Wrap,$(ICONFIGFILES),$(XDMAUTHDEFS))
SpecialCLibObjectRule(XlibInt,$(ICONFIGFILES),$(CONN_DEFINES) $(POLL_DEFINES) $(XTRANS_X_DEFINES))
SpecialCLibObjectRule(XlibInt,$(ICONFIGFILES),$(CONN_DEFINES) $(POLL_DEFINES) $(XTRANS_X_DEFINES))
SpecialCLibObjectRule(Font,$(ICONFIGFILES),$(SHM_DEFINES) $(XF86BIGFONT_DEFINES))
SpecialCLibObjectRule(Font,$(ICONFIGFILES),$(SHM_DEFINES) $(XF86BIGFONT_DEFINES))
SpecialCLibObjectRule(FontInfo,$(ICONFIGFILES),$(SHM_DEFINES) $(XF86BIGFONT_DEFINES))
SpecialCLibObjectRule(FontInfo,$(ICONFIGFILES),$(SHM_DEFINES) $(XF86BIGFONT_DEFINES))
...
@@ -1116,11 +1112,6 @@ LinkSourceFile(AuRead.c,$(XAUTHSRC))
...
@@ -1116,11 +1112,6 @@ LinkSourceFile(AuRead.c,$(XAUTHSRC))
#if HasKrb5
#if HasKrb5
LinkSourceFile(k5encode.c,$(XAUTHSRC))
LinkSourceFile(k5encode.c,$(XAUTHSRC))
#endif
#endif
#if HasXdmAuth
LinkSourceFile(Wrap.h,$(XDMCPLIBSRC))
LinkSourceFile(Wrap.c,$(XDMCPLIBSRC))
LinkSourceFile(Wraphelp.c,$(XDMCPLIBSRC))
#endif
#ifdef QNX4Architecture
#ifdef QNX4Architecture
LOCAL_LDFLAGS=-F
LOCAL_LDFLAGS=-F
...
...
nx-X11/lib/Xdmcp/A8Eq.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: A8Eq.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpARRAY8Equal
(
array1
,
array2
)
ARRAY8Ptr
array1
,
array2
;
{
int
i
;
if
(
array1
->
length
!=
array2
->
length
)
return
FALSE
;
for
(
i
=
0
;
i
<
(
int
)
array1
->
length
;
i
++
)
if
(
array1
->
data
[
i
]
!=
array2
->
data
[
i
])
return
FALSE
;
return
TRUE
;
}
nx-X11/lib/Xdmcp/AA16.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: AA16.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/AA16.c,v 1.3 2001/01/17 19:42:43 dawes Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpAllocARRAY16
(
ARRAY16Ptr
array
,
int
length
)
{
CARD16Ptr
newData
;
newData
=
(
CARD16Ptr
)
Xalloc
(
length
*
sizeof
(
CARD16
));
if
(
!
newData
)
return
FALSE
;
array
->
length
=
length
;
array
->
data
=
newData
;
return
TRUE
;
}
nx-X11/lib/Xdmcp/AA32.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: AA32.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/AA32.c,v 1.3 2001/01/17 19:42:43 dawes Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpAllocARRAY32
(
ARRAY32Ptr
array
,
int
length
)
{
CARD32Ptr
newData
;
newData
=
(
CARD32Ptr
)
Xalloc
(
length
*
sizeof
(
CARD32
));
if
(
!
newData
)
return
FALSE
;
array
->
length
=
length
;
array
->
data
=
newData
;
return
TRUE
;
}
nx-X11/lib/Xdmcp/AA8.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: AA8.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/AA8.c,v 1.3 2001/01/17 19:42:43 dawes Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpAllocARRAY8
(
ARRAY8Ptr
array
,
int
length
)
{
CARD8Ptr
newData
;
newData
=
(
CARD8Ptr
)
Xalloc
(
length
*
sizeof
(
CARD8
));
if
(
!
newData
)
return
FALSE
;
array
->
length
=
length
;
array
->
data
=
newData
;
return
TRUE
;
}
nx-X11/lib/Xdmcp/Alloc.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: Alloc.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/Alloc.c,v 3.4 2001/07/25 15:04:50 dawes Exp $ */
/* stubs for use when Xalloc, Xrealloc and Xfree are not defined */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
#include <stdlib.h>
void
*
Xalloc
(
unsigned
long
amount
)
{
if
(
amount
==
0
)
amount
=
1
;
return
malloc
(
amount
);
}
void
*
Xrealloc
(
void
*
old
,
unsigned
long
amount
)
{
if
(
amount
==
0
)
amount
=
1
;
if
(
!
old
)
return
malloc
(
amount
);
return
realloc
((
char
*
)
old
,
amount
);
}
void
Xfree
(
void
*
old
)
{
if
(
old
)
free
((
char
*
)
old
);
}
nx-X11/lib/Xdmcp/AofA8.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: AofA8.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/AofA8.c,v 1.3 2001/01/17 19:42:43 dawes Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpAllocARRAYofARRAY8
(
ARRAYofARRAY8Ptr
array
,
int
length
)
{
ARRAY8Ptr
newData
;
newData
=
(
ARRAY8Ptr
)
Xalloc
(
length
*
sizeof
(
ARRAY8
));
if
(
!
newData
)
return
FALSE
;
array
->
length
=
length
;
array
->
data
=
newData
;
return
TRUE
;
}
nx-X11/lib/Xdmcp/CA8.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: CA8.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
#include <X11/Xfuncs.h>
int
XdmcpCopyARRAY8
(
src
,
dst
)
ARRAY8Ptr
src
,
dst
;
{
dst
->
length
=
src
->
length
;
dst
->
data
=
(
CARD8
*
)
Xalloc
(
dst
->
length
*
sizeof
(
CARD8
));
if
(
!
dst
->
data
)
return
FALSE
;
memmove
(
dst
->
data
,
src
->
data
,
src
->
length
*
sizeof
(
CARD8
));
return
TRUE
;
}
nx-X11/lib/Xdmcp/CmpKey.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: CmpKey.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/CmpKey.c,v 1.3 2001/01/17 19:42:43 dawes Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpCompareKeys
(
XdmAuthKeyPtr
a
,
XdmAuthKeyPtr
b
)
{
int
i
;
for
(
i
=
0
;
i
<
8
;
i
++
)
if
(
a
->
data
[
i
]
!=
b
->
data
[
i
])
return
FALSE
;
return
TRUE
;
}
nx-X11/lib/Xdmcp/DA16.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: DA16.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/DA16.c,v 1.5 2001/01/17 19:42:43 dawes Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
void
XdmcpDisposeARRAY16
(
ARRAY16Ptr
array
)
{
if
(
array
->
data
!=
NULL
)
Xfree
(
array
->
data
);
array
->
length
=
0
;
array
->
data
=
NULL
;
}
nx-X11/lib/Xdmcp/DA32.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: DA32.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
void
XdmcpDisposeARRAY32
(
array
)
ARRAY32Ptr
array
;
{
if
(
array
->
data
!=
NULL
)
Xfree
(
array
->
data
);
array
->
length
=
0
;
array
->
data
=
NULL
;
}
nx-X11/lib/Xdmcp/DA8.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: DA8.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
void
XdmcpDisposeARRAY8
(
array
)
ARRAY8Ptr
array
;
{
if
(
array
->
data
!=
NULL
)
Xfree
(
array
->
data
);
array
->
length
=
0
;
array
->
data
=
NULL
;
}
nx-X11/lib/Xdmcp/DAofA8.c
deleted
100644 → 0
View file @
a5bb8882
/* $Xdotorg: $
* $Xorg: DAofA8.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
void
XdmcpDisposeARRAYofARRAY8
(
array
)
ARRAYofARRAY8Ptr
array
;
{
int
i
;
if
(
array
->
data
!=
NULL
)
{
for
(
i
=
0
;
i
<
(
int
)
array
->
length
;
i
++
)
XdmcpDisposeARRAY8
(
&
array
->
data
[
i
]);
Xfree
(
array
->
data
);
}
array
->
length
=
0
;
array
->
data
=
NULL
;
}
nx-X11/lib/Xdmcp/DecKey.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: DecKey.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/DecKey.c,v 1.3 2001/01/17 19:42:43 dawes Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
void
XdmcpDecrementKey
(
XdmAuthKeyPtr
key
)
{
int
i
;
i
=
7
;
while
(
key
->
data
[
i
]
--
==
0
)
if
(
--
i
<
0
)
break
;
}
nx-X11/lib/Xdmcp/Fill.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: Fill.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/Fill.c,v 3.8 2001/07/23 13:15:42 dawes Exp $ */
#ifdef WIN32
#define _WILLWINSOCK_
#endif
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
#ifdef STREAMSCONN
#include <tiuser.h>
#else
#ifdef WIN32
#include <X11/Xwinsock.h>
#else
#ifndef Lynx
#include <sys/socket.h>
#else
#include <socket.h>
#endif
/* !Lynx */
#endif
#endif
int
XdmcpFill
(
fd
,
buffer
,
from
,
fromlen
)
int
fd
;
XdmcpBufferPtr
buffer
;
XdmcpNetaddr
from
;
/* return */
int
*
fromlen
;
/* return */
{
BYTE
*
newBuf
;
#ifdef STREAMSCONN
struct
t_unitdata
dataunit
;
int
gotallflag
,
result
;
#endif
if
(
buffer
->
size
<
XDM_MAX_MSGLEN
)
{
newBuf
=
(
BYTE
*
)
Xalloc
(
XDM_MAX_MSGLEN
);
if
(
newBuf
)
{
Xfree
(
buffer
->
data
);
buffer
->
data
=
newBuf
;
buffer
->
size
=
XDM_MAX_MSGLEN
;
}
}
buffer
->
pointer
=
0
;
#ifdef STREAMSCONN
dataunit
.
addr
.
buf
=
from
;
dataunit
.
addr
.
maxlen
=
*
fromlen
;
dataunit
.
opt
.
maxlen
=
0
;
/* don't care to know about options */
dataunit
.
udata
.
buf
=
(
char
*
)
buffer
->
data
;
dataunit
.
udata
.
maxlen
=
buffer
->
size
;
result
=
t_rcvudata
(
fd
,
&
dataunit
,
&
gotallflag
);
if
(
result
<
0
)
{
return
FALSE
;
}
buffer
->
count
=
dataunit
.
udata
.
len
;
*
fromlen
=
dataunit
.
addr
.
len
;
#else
buffer
->
count
=
recvfrom
(
fd
,
(
char
*
)
buffer
->
data
,
buffer
->
size
,
0
,
(
struct
sockaddr
*
)
from
,
(
void
*
)
fromlen
);
#endif
if
(
buffer
->
count
<
6
)
{
buffer
->
count
=
0
;
return
FALSE
;
}
return
TRUE
;
}
nx-X11/lib/Xdmcp/Flush.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: Flush.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/Flush.c,v 3.7 2001/07/23 13:15:42 dawes Exp $ */
#ifdef WIN32
#define _WILLWINSOCK_
#endif
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
#ifdef STREAMSCONN
#include <tiuser.h>
#else
#ifdef WIN32
#include <X11/Xwinsock.h>
#else
#ifndef Lynx
#include <sys/socket.h>
#else
#include <socket.h>
#endif
/* !Lynx */
#endif
#endif
int
XdmcpFlush
(
fd
,
buffer
,
to
,
tolen
)
int
fd
;
XdmcpBufferPtr
buffer
;
XdmcpNetaddr
to
;
int
tolen
;
{
int
result
;
#ifdef STREAMSCONN
struct
t_unitdata
dataunit
;
dataunit
.
addr
.
buf
=
to
;
dataunit
.
addr
.
len
=
tolen
;
dataunit
.
opt
.
len
=
0
;
/* default options */
dataunit
.
udata
.
buf
=
(
char
*
)
buffer
->
data
;
dataunit
.
udata
.
len
=
buffer
->
pointer
;
result
=
t_sndudata
(
fd
,
&
dataunit
);
if
(
result
<
0
)
return
FALSE
;
#else
result
=
sendto
(
fd
,
(
char
*
)
buffer
->
data
,
buffer
->
pointer
,
0
,
(
struct
sockaddr
*
)
to
,
tolen
);
if
(
result
!=
buffer
->
pointer
)
return
FALSE
;
#endif
return
TRUE
;
}
nx-X11/lib/Xdmcp/GenKey.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: GenKey.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/GenKey.c,v 3.7 2001/07/25 15:04:50 dawes Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
static
void
getbits
(
long
data
,
unsigned
char
*
dst
)
{
dst
[
0
]
=
(
data
)
&
0xff
;
dst
[
1
]
=
(
data
>>
8
)
&
0xff
;
dst
[
2
]
=
(
data
>>
16
)
&
0xff
;
dst
[
3
]
=
(
data
>>
24
)
&
0xff
;
}
#define Time_t time_t
#include <stdlib.h>
#if defined(SYSV) || defined(SVR4)
#define srandom srand48
#define random lrand48
#endif
#ifdef WIN32
#include <process.h>
#define srandom srand
#define random rand
#define getpid(x) _getpid(x)
#endif
void
XdmcpGenerateKey
(
XdmAuthKeyPtr
key
)
{
long
lowbits
,
highbits
;
srandom
((
int
)
getpid
()
^
time
((
Time_t
*
)
0
));
lowbits
=
random
();
highbits
=
random
();
getbits
(
lowbits
,
key
->
data
);
getbits
(
highbits
,
key
->
data
+
4
);
}
nx-X11/lib/Xdmcp/Imakefile
deleted
100644 → 0
View file @
a5bb8882
XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:45:48 cpqbld Exp $
XCOMM $XdotOrg: xc/lib/Xdmcp/Imakefile,v 1.3 2005/09/22 23:54:18 alanc Exp $
XCOMM $XFree86: xc/lib/Xdmcp/Imakefile,v 3.4 1999/04/17 09:08:12 dawes Exp $
#define DoNormalLib NormalLibXdmcp
#define DoSharedLib SharedLibXdmcp
#define DoExtraLib SharedLibXdmcp
#define DoDebugLib DebugLibXdmcp
#define DoProfileLib ProfileLibXdmcp
#define LibName NX_Xdmcp
#define SoRev SOXDMCPREV
#define IncSubdir X11
#ifdef SharedXdmcpReqs
REQUIREDLIBS = SharedXdmcpReqs
#endif
#if HasXdmAuth
AUTHDEFS = -DHASXDMAUTH
AUTHSRCS = Wrap.c Unwrap.c Wraphelp.c
AUTHOBJS = Wrap.o Unwrap.o Wraphelp.o
#endif
DEFINES = $(AUTHDEFS)
HEADERS = Xdmcp.h
SRCS = \
A8Eq.c \
AA8.c \
AA16.c \
AA32.c \
AofA8.c \
CA8.c \
DA8.c \
DA16.c \
DA32.c \
DAofA8.c \
Fill.c \
Flush.c \
RA8.c \
RA16.c \
RA32.c \
RAofA8.c \
RC8.c \
RC16.c \
RC32.c \
RHead.c \
RR.c \
RaA8.c \
RaA16.c \
RaA32.c \
RaAoA8.c \
WA8.c \
WA16.c \
WA32.c \
WAofA8.c \
WC8.c \
WC16.c \
WC32.c \
Whead.c \
Alloc.c \
CmpKey.c \
DecKey.c \
GenKey.c \
IncKey.c \
$(AUTHSRCS)
OBJS = \
A8Eq.o \
AA8.o \
AA16.o \
AA32.o \
AofA8.o \
CA8.o \
DA8.o \
DA16.o \
DA32.o \
DAofA8.o \
Fill.o \
Flush.o \
RA8.o \
RA16.o \
RA32.o \
RAofA8.o \
RC8.o \
RC16.o \
RC32.o \
RHead.o \
RR.o \
RaA8.o \
RaA16.o \
RaA32.o \
RaAoA8.o \
WA8.o \
WA16.o \
WA32.o \
WAofA8.o \
WC8.o \
WC16.o \
WC32.o \
Whead.o \
Alloc.o \
CmpKey.o \
DecKey.o \
GenKey.o \
IncKey.o \
$(AUTHOBJS)
#include <Library.tmpl>
#ifdef WraphelpSourceRule
WraphelpSourceRule()
#endif
SpecialCLibObjectRule(Fill,$(ICONFIGFILES),$(CONNECTION_FLAGS))
SpecialCLibObjectRule(Flush,$(ICONFIGFILES),$(CONNECTION_FLAGS))
DependTarget()
nx-X11/lib/Xdmcp/IncKey.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: IncKey.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/IncKey.c,v 1.3 2001/01/17 19:42:43 dawes Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
void
XdmcpIncrementKey
(
XdmAuthKeyPtr
key
)
{
int
i
;
i
=
7
;
while
(
++
key
->
data
[
i
]
==
0
)
if
(
--
i
<
0
)
break
;
}
nx-X11/lib/Xdmcp/RA16.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: RA16.c,v 1.5 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpReadARRAY16
(
buffer
,
array
)
XdmcpBufferPtr
buffer
;
ARRAY16Ptr
array
;
{
int
i
;
if
(
!
XdmcpReadCARD8
(
buffer
,
&
array
->
length
))
{
/* Must set array->data to NULL to guarantee safe call of
* XdmcpDisposeARRAY*(array) (which calls Xfree(array->data));
* see defect 7329 */
array
->
data
=
0
;
return
FALSE
;
}
if
(
!
array
->
length
)
{
array
->
data
=
NULL
;
return
TRUE
;
}
array
->
data
=
(
CARD16
*
)
Xalloc
(
array
->
length
*
sizeof
(
CARD16
));
if
(
!
array
->
data
)
return
FALSE
;
for
(
i
=
0
;
i
<
(
int
)
array
->
length
;
i
++
)
{
if
(
!
XdmcpReadCARD16
(
buffer
,
&
array
->
data
[
i
]))
{
Xfree
(
array
->
data
);
array
->
data
=
NULL
;
array
->
length
=
0
;
return
FALSE
;
}
}
return
TRUE
;
}
nx-X11/lib/Xdmcp/RA32.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: RA32.c,v 1.5 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpReadARRAY32
(
buffer
,
array
)
XdmcpBufferPtr
buffer
;
ARRAY32Ptr
array
;
{
int
i
;
if
(
!
XdmcpReadCARD8
(
buffer
,
&
array
->
length
))
{
/* Must set array->data to NULL to guarantee safe call of
* XdmcpDisposeARRAY*(array) (which calls Xfree(array->data));
* see defect 7329 */
array
->
data
=
0
;
return
FALSE
;
}
if
(
!
array
->
length
)
{
array
->
data
=
NULL
;
return
TRUE
;
}
array
->
data
=
(
CARD32
*
)
Xalloc
(
array
->
length
*
sizeof
(
CARD32
));
if
(
!
array
->
data
)
return
FALSE
;
for
(
i
=
0
;
i
<
(
int
)
array
->
length
;
i
++
)
{
if
(
!
XdmcpReadCARD32
(
buffer
,
&
array
->
data
[
i
]))
{
Xfree
(
array
->
data
);
array
->
data
=
NULL
;
array
->
length
=
0
;
return
FALSE
;
}
}
return
TRUE
;
}
nx-X11/lib/Xdmcp/RA8.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: RA8.c,v 1.5 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpReadARRAY8
(
buffer
,
array
)
XdmcpBufferPtr
buffer
;
ARRAY8Ptr
array
;
{
int
i
;
if
(
!
XdmcpReadCARD16
(
buffer
,
&
array
->
length
))
{
/* Must set array->data to NULL to guarantee safe call of
* XdmcpDisposeARRAY*(array) (which calls Xfree(array->data));
* see defect 7329 */
array
->
data
=
0
;
return
FALSE
;
}
if
(
!
array
->
length
)
{
array
->
data
=
NULL
;
return
TRUE
;
}
array
->
data
=
(
CARD8
*
)
Xalloc
(
array
->
length
*
sizeof
(
CARD8
));
if
(
!
array
->
data
)
return
FALSE
;
for
(
i
=
0
;
i
<
(
int
)
array
->
length
;
i
++
)
{
if
(
!
XdmcpReadCARD8
(
buffer
,
&
array
->
data
[
i
]))
{
Xfree
(
array
->
data
);
array
->
data
=
NULL
;
array
->
length
=
0
;
return
FALSE
;
}
}
return
TRUE
;
}
nx-X11/lib/Xdmcp/RAofA8.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: RAofA8.c,v 1.6 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpReadARRAYofARRAY8
(
buffer
,
array
)
XdmcpBufferPtr
buffer
;
ARRAYofARRAY8Ptr
array
;
{
int
i
;
if
(
!
XdmcpReadCARD8
(
buffer
,
&
array
->
length
))
{
/* Must set array->data to NULL to guarantee safe call of
* XdmcpDisposeARRAY*(array) (which calls Xfree(array->data));
* see defect 7329 */
array
->
data
=
0
;
return
FALSE
;
}
if
(
!
array
->
length
)
{
array
->
data
=
NULL
;
return
TRUE
;
}
array
->
data
=
(
ARRAY8
*
)
Xalloc
(
array
->
length
*
sizeof
(
ARRAY8
));
if
(
!
array
->
data
)
return
FALSE
;
for
(
i
=
0
;
i
<
(
int
)
array
->
length
;
i
++
)
{
if
(
!
XdmcpReadARRAY8
(
buffer
,
&
array
->
data
[
i
]))
{
/* All arrays allocated thus far in the loop must be freed
* if there is an error in the read.
* See Defect 7328 */
array
->
length
=
i
;
XdmcpDisposeARRAYofARRAY8
(
array
);
return
FALSE
;
}
}
return
TRUE
;
}
nx-X11/lib/Xdmcp/RC16.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: RC16.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpReadCARD16
(
buffer
,
valuep
)
XdmcpBufferPtr
buffer
;
CARD16Ptr
valuep
;
{
CARD8
high
,
low
;
if
(
XdmcpReadCARD8
(
buffer
,
&
high
)
&&
XdmcpReadCARD8
(
buffer
,
&
low
))
{
*
valuep
=
(((
CARD16
)
high
)
<<
8
)
|
((
CARD16
)
low
);
return
TRUE
;
}
return
FALSE
;
}
nx-X11/lib/Xdmcp/RC32.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: RC32.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpReadCARD32
(
buffer
,
valuep
)
XdmcpBufferPtr
buffer
;
CARD32Ptr
valuep
;
{
CARD8
byte0
,
byte1
,
byte2
,
byte3
;
if
(
XdmcpReadCARD8
(
buffer
,
&
byte0
)
&&
XdmcpReadCARD8
(
buffer
,
&
byte1
)
&&
XdmcpReadCARD8
(
buffer
,
&
byte2
)
&&
XdmcpReadCARD8
(
buffer
,
&
byte3
))
{
*
valuep
=
(((
CARD32
)
byte0
)
<<
24
)
|
(((
CARD32
)
byte1
)
<<
16
)
|
(((
CARD32
)
byte2
)
<<
8
)
|
(((
CARD32
)
byte3
));
return
TRUE
;
}
return
FALSE
;
}
nx-X11/lib/Xdmcp/RC8.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: RC8.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpReadCARD8
(
buffer
,
valuep
)
XdmcpBufferPtr
buffer
;
CARD8Ptr
valuep
;
{
if
(
buffer
->
pointer
>=
buffer
->
count
)
return
FALSE
;
*
valuep
=
(
CARD8
)
buffer
->
data
[
buffer
->
pointer
++
];
return
TRUE
;
}
nx-X11/lib/Xdmcp/RHead.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: RHead.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpReadHeader
(
buffer
,
header
)
XdmcpBufferPtr
buffer
;
XdmcpHeaderPtr
header
;
{
if
(
XdmcpReadCARD16
(
buffer
,
&
header
->
version
)
&&
XdmcpReadCARD16
(
buffer
,
&
header
->
opcode
)
&&
XdmcpReadCARD16
(
buffer
,
&
header
->
length
))
return
TRUE
;
return
FALSE
;
}
nx-X11/lib/Xdmcp/RR.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: RR.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpReadRemaining
(
buffer
)
XdmcpBufferPtr
buffer
;
{
return
buffer
->
count
-
buffer
->
pointer
;
}
nx-X11/lib/Xdmcp/RaA16.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: RaA16.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/RaA16.c,v 1.3 2001/01/17 19:42:44 dawes Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpReallocARRAY16
(
ARRAY16Ptr
array
,
int
length
)
{
CARD16Ptr
newData
;
newData
=
(
CARD16Ptr
)
Xrealloc
(
array
->
data
,
length
*
sizeof
(
CARD16
));
if
(
!
newData
)
return
FALSE
;
array
->
length
=
length
;
array
->
data
=
newData
;
return
TRUE
;
}
nx-X11/lib/Xdmcp/RaA32.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: RaA32.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/RaA32.c,v 1.3 2001/01/17 19:42:44 dawes Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpReallocARRAY32
(
ARRAY32Ptr
array
,
int
length
)
{
CARD32Ptr
newData
;
newData
=
(
CARD32Ptr
)
Xrealloc
(
array
->
data
,
length
*
sizeof
(
CARD32
));
if
(
!
newData
)
return
FALSE
;
array
->
length
=
length
;
array
->
data
=
newData
;
return
TRUE
;
}
nx-X11/lib/Xdmcp/RaA8.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: RaA8.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/RaA8.c,v 1.3 2001/01/17 19:42:44 dawes Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpReallocARRAY8
(
ARRAY8Ptr
array
,
int
length
)
{
CARD8Ptr
newData
;
newData
=
(
CARD8Ptr
)
Xrealloc
(
array
->
data
,
length
*
sizeof
(
CARD8
));
if
(
!
newData
)
return
FALSE
;
array
->
length
=
length
;
array
->
data
=
newData
;
return
TRUE
;
}
nx-X11/lib/Xdmcp/RaAoA8.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: RaAoA8.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/RaAoA8.c,v 1.3 2001/01/17 19:42:44 dawes Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpReallocARRAYofARRAY8
(
ARRAYofARRAY8Ptr
array
,
int
length
)
{
ARRAY8Ptr
newData
;
newData
=
(
ARRAY8Ptr
)
Xrealloc
(
array
->
data
,
length
*
sizeof
(
ARRAY8
));
if
(
!
newData
)
return
FALSE
;
array
->
length
=
length
;
array
->
data
=
newData
;
return
TRUE
;
}
nx-X11/lib/Xdmcp/Unwrap.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: Unwrap.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/Unwrap.c,v 1.3 2001/01/17 19:42:44 dawes Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
#ifdef HASXDMAUTH
/*
* The following function exists only to demonstrate the
* desired functional interface for this routine. You will
* need to add the appropriate algorithm if you wish to
* use XDM-AUTHENTICATION-1/XDM-AUTHORIZATION-1.
*
* The interface for this routine is quite simple. All three
* arguments are arrays of 8 unsigned characters, the first two
* are 64 bits of useful data, the last is 56 bits of useful
* data packed into 8 bytes, using the low 7 bits of each
* byte, filling the high bit with odd parity.
*
* Examine the XDMCP specification for the correct algorithm
*/
#include "Wrap.h"
void
XdmcpUnwrap
(
unsigned
char
*
input
,
unsigned
char
*
wrapper
,
unsigned
char
*
output
,
int
bytes
)
{
int
i
,
j
,
k
;
unsigned
char
tmp
[
8
];
unsigned
char
blocks
[
2
][
8
];
unsigned
char
expand_wrapper
[
8
];
auth_wrapper_schedule
schedule
;
_XdmcpWrapperToOddParity
(
wrapper
,
expand_wrapper
);
_XdmcpAuthSetup
(
expand_wrapper
,
schedule
);
k
=
0
;
for
(
j
=
0
;
j
<
bytes
;
j
+=
8
)
{
if
(
bytes
-
j
<
8
)
return
;
/* bad input length */
for
(
i
=
0
;
i
<
8
;
i
++
)
blocks
[
k
][
i
]
=
input
[
j
+
i
];
_XdmcpAuthDoIt
((
unsigned
char
*
)
(
input
+
j
),
(
unsigned
char
*
)
tmp
,
schedule
,
0
);
/* block chaining */
k
=
(
k
==
0
)
?
1
:
0
;
for
(
i
=
0
;
i
<
8
;
i
++
)
{
if
(
j
==
0
)
output
[
j
+
i
]
=
tmp
[
i
];
else
output
[
j
+
i
]
=
tmp
[
i
]
^
blocks
[
k
][
i
];
}
}
}
#endif
/* HASXDMAUTH */
nx-X11/lib/Xdmcp/WA16.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: WA16.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpWriteARRAY16
(
buffer
,
array
)
XdmcpBufferPtr
buffer
;
ARRAY16Ptr
array
;
{
int
i
;
if
(
!
XdmcpWriteCARD8
(
buffer
,
array
->
length
))
return
FALSE
;
for
(
i
=
0
;
i
<
(
int
)
array
->
length
;
i
++
)
if
(
!
XdmcpWriteCARD16
(
buffer
,
array
->
data
[
i
]))
return
FALSE
;
return
TRUE
;
}
nx-X11/lib/Xdmcp/WA32.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: WA32.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpWriteARRAY32
(
buffer
,
array
)
XdmcpBufferPtr
buffer
;
ARRAY32Ptr
array
;
{
int
i
;
if
(
!
XdmcpWriteCARD8
(
buffer
,
array
->
length
))
return
FALSE
;
for
(
i
=
0
;
i
<
(
int
)
array
->
length
;
i
++
)
if
(
!
XdmcpWriteCARD32
(
buffer
,
array
->
data
[
i
]))
return
FALSE
;
return
TRUE
;
}
nx-X11/lib/Xdmcp/WA8.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: WA8.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpWriteARRAY8
(
buffer
,
array
)
XdmcpBufferPtr
buffer
;
ARRAY8Ptr
array
;
{
int
i
;
if
(
!
XdmcpWriteCARD16
(
buffer
,
array
->
length
))
return
FALSE
;
for
(
i
=
0
;
i
<
(
int
)
array
->
length
;
i
++
)
if
(
!
XdmcpWriteCARD8
(
buffer
,
array
->
data
[
i
]))
return
FALSE
;
return
TRUE
;
}
nx-X11/lib/Xdmcp/WAofA8.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: WAofA8.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpWriteARRAYofARRAY8
(
buffer
,
array
)
XdmcpBufferPtr
buffer
;
ARRAYofARRAY8Ptr
array
;
{
int
i
;
if
(
!
XdmcpWriteCARD8
(
buffer
,
array
->
length
))
return
FALSE
;
for
(
i
=
0
;
i
<
(
int
)
array
->
length
;
i
++
)
if
(
!
XdmcpWriteARRAY8
(
buffer
,
&
array
->
data
[
i
]))
return
FALSE
;
return
TRUE
;
}
nx-X11/lib/Xdmcp/WC16.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: WC16.c,v 1.4 2001/02/09 02:03:48 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/WC16.c,v 1.4 2001/01/17 19:42:44 dawes Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpWriteCARD16
(
XdmcpBufferPtr
buffer
,
unsigned
value
)
{
if
(
!
XdmcpWriteCARD8
(
buffer
,
value
>>
8
))
return
FALSE
;
if
(
!
XdmcpWriteCARD8
(
buffer
,
value
&
0xff
))
return
FALSE
;
return
TRUE
;
}
nx-X11/lib/Xdmcp/WC32.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: WC32.c,v 1.4 2001/02/09 02:03:49 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/WC32.c,v 1.4 2001/01/17 19:42:44 dawes Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpWriteCARD32
(
XdmcpBufferPtr
buffer
,
unsigned
value
)
{
if
(
!
XdmcpWriteCARD8
(
buffer
,
value
>>
24
))
return
FALSE
;
if
(
!
XdmcpWriteCARD8
(
buffer
,
(
value
>>
16
)
&
0xff
))
return
FALSE
;
if
(
!
XdmcpWriteCARD8
(
buffer
,
(
value
>>
8
)
&
0xff
))
return
FALSE
;
if
(
!
XdmcpWriteCARD8
(
buffer
,
value
&
0xff
))
return
FALSE
;
return
TRUE
;
}
nx-X11/lib/Xdmcp/WC8.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: WC8.c,v 1.4 2001/02/09 02:03:49 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/WC8.c,v 1.4 2001/01/17 19:42:44 dawes Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpWriteCARD8
(
XdmcpBufferPtr
buffer
,
unsigned
value
)
{
if
(
buffer
->
pointer
>=
buffer
->
size
)
return
FALSE
;
buffer
->
data
[
buffer
->
pointer
++
]
=
(
BYTE
)
value
;
return
TRUE
;
}
nx-X11/lib/Xdmcp/Whead.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: Whead.c,v 1.4 2001/02/09 02:03:49 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/Whead.c,v 1.3 2001/01/17 19:42:44 dawes Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
int
XdmcpWriteHeader
(
XdmcpBufferPtr
buffer
,
XdmcpHeaderPtr
header
)
{
BYTE
*
newData
;
if
((
int
)
buffer
->
size
<
6
+
(
int
)
header
->
length
)
{
newData
=
(
BYTE
*
)
Xalloc
(
XDM_MAX_MSGLEN
*
sizeof
(
BYTE
));
if
(
!
newData
)
return
FALSE
;
Xfree
((
unsigned
long
*
)(
buffer
->
data
));
buffer
->
data
=
newData
;
buffer
->
size
=
XDM_MAX_MSGLEN
;
}
buffer
->
pointer
=
0
;
if
(
!
XdmcpWriteCARD16
(
buffer
,
header
->
version
))
return
FALSE
;
if
(
!
XdmcpWriteCARD16
(
buffer
,
header
->
opcode
))
return
FALSE
;
if
(
!
XdmcpWriteCARD16
(
buffer
,
header
->
length
))
return
FALSE
;
return
TRUE
;
}
nx-X11/lib/Xdmcp/Wrap.c
deleted
100644 → 0
View file @
a5bb8882
/*
* $Xorg: Wrap.c,v 1.4 2001/02/09 02:03:49 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* *
* Author: Keith Packard, MIT X Consortium
*/
/* $XFree86: xc/lib/Xdmcp/Wrap.c,v 1.3 2001/01/17 19:42:44 dawes Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xos.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
#ifdef HASXDMAUTH
/*
* The following function exists only to demonstrate the
* desired functional interface for this routine. You will
* need to add the appropriate algorithm if you wish to
* use XDM-AUTHENTICATION-1/XDM-AUTHORIZATION-1.
*
* Examine the XDMCP specification for the correct algorithm
*/
#include "Wrap.h"
void
XdmcpWrap
(
unsigned
char
*
input
,
unsigned
char
*
wrapper
,
unsigned
char
*
output
,
int
bytes
)
{
int
i
,
j
;
int
len
;
unsigned
char
tmp
[
8
];
unsigned
char
expand_wrapper
[
8
];
auth_wrapper_schedule
schedule
;
_XdmcpWrapperToOddParity
(
wrapper
,
expand_wrapper
);
_XdmcpAuthSetup
(
expand_wrapper
,
schedule
);
for
(
j
=
0
;
j
<
bytes
;
j
+=
8
)
{
len
=
8
;
if
(
bytes
-
j
<
len
)
len
=
bytes
-
j
;
/* block chaining */
for
(
i
=
0
;
i
<
len
;
i
++
)
{
if
(
j
==
0
)
tmp
[
i
]
=
input
[
i
];
else
tmp
[
i
]
=
input
[
j
+
i
]
^
output
[
j
-
8
+
i
];
}
for
(;
i
<
8
;
i
++
)
{
if
(
j
==
0
)
tmp
[
i
]
=
0
;
else
tmp
[
i
]
=
0
^
output
[
j
-
8
+
i
];
}
_XdmcpAuthDoIt
(
tmp
,
(
output
+
j
),
schedule
,
1
);
}
}
/*
* Given a 56 bit wrapper in XDMCP format, create a 56
* bit wrapper in 7-bits + odd parity format
*/
static
int
OddParity
(
unsigned
char
c
)
{
c
=
c
^
(
c
>>
4
);
c
=
c
^
(
c
>>
2
);
c
=
c
^
(
c
>>
1
);
return
~
c
&
0x1
;
}
/*
* Spread the 56 bit wrapper among 8 bytes, using the upper 7 bits
* of each byte, and storing an odd parity bit in the low bit
*/
void
_XdmcpWrapperToOddParity
(
unsigned
char
*
in
,
unsigned
char
*
out
)
{
int
ashift
,
bshift
;
int
i
;
unsigned
char
c
;
ashift
=
7
;
bshift
=
1
;
for
(
i
=
0
;
i
<
7
;
i
++
)
{
c
=
((
in
[
i
]
<<
ashift
)
|
(
in
[
i
+
1
]
>>
bshift
))
&
0x7f
;
out
[
i
]
=
(
c
<<
1
)
|
OddParity
(
c
);
ashift
--
;
bshift
++
;
}
c
=
in
[
i
];
out
[
i
]
=
(
c
<<
1
)
|
OddParity
(
c
);
}
#endif
nx-X11/lib/Xdmcp/Wrap.h
deleted
100644 → 0
View file @
a5bb8882
/* $XdotOrg: xc/lib/Xdmcp/Wrap.h,v 1.6 2005/07/03 07:00:56 daniels Exp $ */
/* $Xorg: Wrap.h,v 1.3 2000/08/17 19:45:50 cpqbld Exp $ */
/*
* header file for compatibility with something useful
*/
/* $XFree86: xc/lib/Xdmcp/Wrap.h,v 1.3 2001/01/17 19:42:44 dawes Exp $ */
typedef
unsigned
char
auth_cblock
[
8
];
/* block size */
typedef
struct
auth_ks_struct
{
auth_cblock
_
;
}
auth_wrapper_schedule
[
16
];
extern
void
_XdmcpWrapperToOddParity
(
unsigned
char
*
in
,
unsigned
char
*
out
);
#ifdef HASXDMAUTH
extern
void
_XdmcpAuthSetup
(
auth_cblock
key
,
auth_wrapper_schedule
schedule
);
extern
void
_XdmcpAuthDoIt
(
auth_cblock
input
,
auth_cblock
output
,
auth_wrapper_schedule
schedule
,
int
edflag
);
#endif
nx-X11/lib/Xdmcp/Wraphelp.README.crypto
deleted
100644 → 0
View file @
a5bb8882
Export Requirements.
You may not export or re-export this software or any copy or
adaptation in violation of any applicable laws or regulations.
Without limiting the generality of the foregoing, hardware, software,
technology or services provided under this license agreement may not
be exported, reexported, transferred or downloaded to or within (or to
a national resident of) countries under U.S. economic embargo
including the following countries:
Cuba, Iran, Libya, North Korea, Sudan and Syria. This list is subject
to change.
Hardware, software, technology or services may not be exported,
reexported, transferred or downloaded to persons or entities listed on
the U.S. Department of Commerce Denied Persons List, Entity List of
proliferation concern or on any U.S. Treasury Department Designated
Nationals exclusion list, or to parties directly or indirectly
involved in the development or production of nuclear, chemical,
biological weapons or in missile technology programs as specified in
the U.S. Export Administration Regulations (15 CFR 744).
By accepting this license agreement you confirm that you are not
located in (or a national resident of) any country under U.S. economic
embargo, not identified on any U.S. Department of Commerce Denied
Persons List, Entity List or Treasury Department Designated Nationals
exclusion list, and not directly or indirectly involved in the
development or production of nuclear, chemical, biological weapons or
in missile technology programs as specified in the U.S. Export
Administration Regulations.
Software available on this web site contains cryptography and is
therefore subject to US government export control under the
U.S. Export Administration Regulations ("EAR"). EAR Part 740.13(e)
allows the export and reexport of publicly available encryption source
code that is not subject to payment of license fee or royalty
payment. Object code resulting from the compiling of such source code
may also be exported and reexported under this provision if publicly
available and not subject to a fee or payment other than reasonable
and customary fees for reproduction and distribution. This kind of
encryption source code and the corresponding object code may be
exported or reexported without prior U.S. government export license
authorization provided that the U.S. government is notified about the
Internet location of the software.
The open source software available on this web site is publicly
available without license fee or royalty payment, and all binary
software is compiled from the source code. The U.S. government has
been notified about this site and the location site for the source
code. Therefore, the source code and compiled object code may be
downloaded and exported under U.S. export license exception (without a
U.S. export license) in accordance with the further restrictions
outlined above regarding embargoed countries, restricted persons and
restricted end uses.
Local Country Import Requirements. The software you are about to
download contains cryptography technology. Some countries regulate the
import, use and/or export of certain products with cryptography. The
X.org Foundation makes no claims as to the applicability of local
country import, use and/or export regulations in relation to the
download of this product. If you are located outside the U.S. and
Canada you are advised to consult your local country regulations to
insure compliance.
nx-X11/lib/Xdmcp/Wraphelp.c
deleted
100644 → 0
View file @
a5bb8882
This diff is collapsed.
Click to expand it.
nx-X11/lib/Xdmcp/Xdmcp.h
deleted
100644 → 0
View file @
a5bb8882
/* $XdotOrg: xc/lib/Xdmcp/Xdmcp.h,v 1.3 2005/07/03 07:00:56 daniels Exp $ */
/* $Xorg: Xdmcp.h,v 1.7 2001/04/13 14:43:00 steve Exp $ */
/*
* Copyright 1989 Network Computing Devices, Inc., Mountain View, California.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted, provided
* that the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the name of N.C.D. not be used in advertising or
* publicity pertaining to distribution of the software without specific,
* written prior permission. N.C.D. makes no representations about the
* suitability of this software for any purpose. It is provided "as is"
* without express or implied warranty.
*
*/
/* $XFree86: xc/lib/Xdmcp/Xdmcp.h,v 3.7 2003/07/09 15:27:29 tsi Exp $ */
#ifndef _XDMCP_H_
#define _XDMCP_H_
#include <X11/Xmd.h>
#include <X11/Xfuncproto.h>
_XFUNCPROTOBEGIN
#define XDM_PROTOCOL_VERSION 1
#define XDM_UDP_PORT 177
/* IANA has assigned FF0X:0:0:0:0:0:0:12B as the permanently assigned
* multicast addresses for XDMCP, where X in the prefix may be replaced
* by any valid scope identifier, such as 1 for Node-Local, 2 for Link-Local,
* 5 for Site-Local, and so on. We set the default here to the Link-Local
* version to most closely match the old IPv4 subnet broadcast behavior.
* Both xdm and X -query allow specifying a different address if a different
* scope is defined.
*/
#define XDM_DEFAULT_MCAST_ADDR6 "ff02:0:0:0:0:0:0:12b"
#define XDM_MAX_MSGLEN 8192
#define XDM_MIN_RTX 2
#define XDM_MAX_RTX 32
#define XDM_RTX_LIMIT 7
#define XDM_KA_RTX_LIMIT 4
#define XDM_DEF_DORMANCY (3 * 60)
/* 3 minutes */
#define XDM_MAX_DORMANCY (24 * 60 * 60)
/* 24 hours */
typedef
enum
{
BROADCAST_QUERY
=
1
,
QUERY
,
INDIRECT_QUERY
,
FORWARD_QUERY
,
WILLING
,
UNWILLING
,
REQUEST
,
ACCEPT
,
DECLINE
,
MANAGE
,
REFUSE
,
FAILED
,
KEEPALIVE
,
ALIVE
}
xdmOpCode
;
typedef
enum
{
XDM_QUERY
,
XDM_BROADCAST
,
XDM_INDIRECT
,
XDM_COLLECT_QUERY
,
XDM_COLLECT_BROADCAST_QUERY
,
XDM_COLLECT_INDIRECT_QUERY
,
XDM_START_CONNECTION
,
XDM_AWAIT_REQUEST_RESPONSE
,
XDM_AWAIT_MANAGE_RESPONSE
,
XDM_MANAGE
,
XDM_RUN_SESSION
,
XDM_OFF
,
XDM_AWAIT_USER_INPUT
,
XDM_KEEPALIVE
,
XDM_AWAIT_ALIVE_RESPONSE
,
#if defined(IPv6) && defined(AF_INET6)
XDM_MULTICAST
,
XDM_COLLECT_MULTICAST_QUERY
,
#endif
XDM_KEEP_ME_LAST
}
xdmcp_states
;
#ifdef NOTDEF
/* table of hosts */
#define XDM_MAX_STR_LEN 21
#define XDM_MAX_HOSTS 20
struct
xdm_host_table
{
struct
sockaddr_in
sockaddr
;
char
name
[
XDM_MAX_STR_LEN
];
char
status
[
XDM_MAX_STR_LEN
];
};
#endif
/* NOTDEF */
typedef
CARD8
*
CARD8Ptr
;
typedef
CARD16
*
CARD16Ptr
;
typedef
CARD32
*
CARD32Ptr
;
typedef
struct
_ARRAY8
{
CARD16
length
;
CARD8Ptr
data
;
}
ARRAY8
,
*
ARRAY8Ptr
;
typedef
struct
_ARRAY16
{
CARD8
length
;
CARD16Ptr
data
;
}
ARRAY16
,
*
ARRAY16Ptr
;
typedef
struct
_ARRAY32
{
CARD8
length
;
CARD32Ptr
data
;
}
ARRAY32
,
*
ARRAY32Ptr
;
typedef
struct
_ARRAYofARRAY8
{
CARD8
length
;
ARRAY8Ptr
data
;
}
ARRAYofARRAY8
,
*
ARRAYofARRAY8Ptr
;
typedef
struct
_XdmcpHeader
{
CARD16
version
,
opcode
,
length
;
}
XdmcpHeader
,
*
XdmcpHeaderPtr
;
typedef
struct
_XdmcpBuffer
{
BYTE
*
data
;
int
size
;
/* size of buffer pointed by to data */
int
pointer
;
/* current index into data */
int
count
;
/* bytes read from network into data */
}
XdmcpBuffer
,
*
XdmcpBufferPtr
;
typedef
struct
_XdmAuthKey
{
BYTE
data
[
8
];
}
XdmAuthKeyRec
,
*
XdmAuthKeyPtr
;
/* implementation-independent network address structure.
Equiv to sockaddr* for sockets and netbuf* for STREAMS. */
typedef
char
*
XdmcpNetaddr
;
extern
int
XdmcpWriteARRAY16
(
XdmcpBufferPtr
buffer
,
ARRAY16Ptr
array
);
extern
int
XdmcpWriteARRAY32
(
XdmcpBufferPtr
buffer
,
ARRAY32Ptr
array
);
extern
int
XdmcpWriteARRAY8
(
XdmcpBufferPtr
buffer
,
ARRAY8Ptr
array
);
extern
int
XdmcpWriteARRAYofARRAY8
(
XdmcpBufferPtr
buffer
,
ARRAYofARRAY8Ptr
array
);
extern
int
XdmcpWriteCARD16
(
XdmcpBufferPtr
buffer
,
unsigned
value
);
extern
int
XdmcpWriteCARD32
(
XdmcpBufferPtr
buffer
,
unsigned
value
);
extern
int
XdmcpWriteCARD8
(
XdmcpBufferPtr
buffer
,
unsigned
value
);
extern
int
XdmcpWriteHeader
(
XdmcpBufferPtr
buffer
,
XdmcpHeaderPtr
header
);
extern
int
XdmcpFlush
(
int
fd
,
XdmcpBufferPtr
buffer
,
XdmcpNetaddr
to
,
int
tolen
);
extern
int
XdmcpReadARRAY16
(
XdmcpBufferPtr
buffer
,
ARRAY16Ptr
array
);
extern
int
XdmcpReadARRAY32
(
XdmcpBufferPtr
buffer
,
ARRAY32Ptr
array
);
extern
int
XdmcpReadARRAY8
(
XdmcpBufferPtr
buffer
,
ARRAY8Ptr
array
);
extern
int
XdmcpReadARRAYofARRAY8
(
XdmcpBufferPtr
buffer
,
ARRAYofARRAY8Ptr
array
);
extern
int
XdmcpReadCARD16
(
XdmcpBufferPtr
buffer
,
CARD16Ptr
valuep
);
extern
int
XdmcpReadCARD32
(
XdmcpBufferPtr
buffer
,
CARD32Ptr
valuep
);
extern
int
XdmcpReadCARD8
(
XdmcpBufferPtr
buffer
,
CARD8Ptr
valuep
);
extern
int
XdmcpReadHeader
(
XdmcpBufferPtr
buffer
,
XdmcpHeaderPtr
header
);
extern
int
XdmcpFill
(
int
fd
,
XdmcpBufferPtr
buffer
,
XdmcpNetaddr
from
,
int
*
fromlen
);
extern
int
XdmcpReadRemaining
(
XdmcpBufferPtr
buffer
);
extern
void
XdmcpDisposeARRAY8
(
ARRAY8Ptr
array
);
extern
void
XdmcpDisposeARRAY16
(
ARRAY16Ptr
array
);
extern
void
XdmcpDisposeARRAY32
(
ARRAY32Ptr
array
);
extern
void
XdmcpDisposeARRAYofARRAY8
(
ARRAYofARRAY8Ptr
array
);
extern
int
XdmcpCopyARRAY8
(
ARRAY8Ptr
src
,
ARRAY8Ptr
dst
);
extern
int
XdmcpARRAY8Equal
(
ARRAY8Ptr
array1
,
ARRAY8Ptr
array2
);
extern
void
XdmcpGenerateKey
(
XdmAuthKeyPtr
key
);
extern
void
XdmcpIncrementKey
(
XdmAuthKeyPtr
key
);
extern
void
XdmcpDecrementKey
(
XdmAuthKeyPtr
key
);
#ifdef HASXDMAUTH
extern
void
XdmcpWrap
(
unsigned
char
*
input
,
unsigned
char
*
wrapper
,
unsigned
char
*
output
,
int
bytes
);
extern
void
XdmcpUnwrap
(
unsigned
char
*
input
,
unsigned
char
*
wrapper
,
unsigned
char
*
output
,
int
bytes
);
#endif
#ifndef TRUE
#define TRUE 1
#define FALSE 0
#endif
#if !defined(Xalloc) && !defined(xalloc) && !defined(Xrealloc)
extern
void
*
Xalloc
(
unsigned
long
amount
);
extern
void
*
Xrealloc
(
void
*
old
,
unsigned
long
amount
);
extern
void
Xfree
(
void
*
old
);
#endif
extern
int
XdmcpCompareKeys
(
XdmAuthKeyPtr
a
,
XdmAuthKeyPtr
b
);
extern
int
XdmcpAllocARRAY16
(
ARRAY16Ptr
array
,
int
length
);
extern
int
XdmcpAllocARRAY32
(
ARRAY32Ptr
array
,
int
length
);
extern
int
XdmcpAllocARRAY8
(
ARRAY8Ptr
array
,
int
length
);
extern
int
XdmcpAllocARRAYofARRAY8
(
ARRAYofARRAY8Ptr
array
,
int
length
);
extern
int
XdmcpReallocARRAY16
(
ARRAY16Ptr
array
,
int
length
);
extern
int
XdmcpReallocARRAY32
(
ARRAY32Ptr
array
,
int
length
);
extern
int
XdmcpReallocARRAY8
(
ARRAY8Ptr
array
,
int
length
);
extern
int
XdmcpReallocARRAYofARRAY8
(
ARRAYofARRAY8Ptr
array
,
int
length
);
_XFUNCPROTOEND
#endif
/* _XDMCP_H_ */
nx-X11/programs/Xserver/Imakefile
View file @
825af183
...
@@ -204,7 +204,7 @@ INSTPGMFLAGS =
...
@@ -204,7 +204,7 @@ INSTPGMFLAGS =
#if BuildLBX
#if BuildLBX
ZLIB = GzipLibrary
ZLIB = GzipLibrary
#endif
#endif
OS = os/LibraryTargetName(os) $(DEPXAUTHLIB)
$(DEPXDMCPLIB)
OS = os/LibraryTargetName(os) $(DEPXAUTHLIB)
BSDEMUL = $(DEPXBSDLIB)
BSDEMUL = $(DEPXBSDLIB)
#if DoLoadableServer
#if DoLoadableServer
MFB = mfb/ModuleLibraryTargetName(mfb)
MFB = mfb/ModuleLibraryTargetName(mfb)
...
@@ -440,17 +440,17 @@ $(NXAGENTOBJS) $(NXAGENTLIBS) $(NXAGENTSYSLIBS):: $(NXAGENTDIRS)
...
@@ -440,17 +440,17 @@ $(NXAGENTOBJS) $(NXAGENTLIBS) $(NXAGENTSYSLIBS):: $(NXAGENTDIRS)
#if defined(SunArchitecture)
#if defined(SunArchitecture)
NXAGENTNXLIBS = -L ../../../nxcomp -L ../../../nxcompext -L ../../../nxcompshad \
NXAGENTNXLIBS = -L ../../../nxcomp -L ../../../nxcompext -L ../../../nxcompshad \
-lXcomp -lXcompext -lXcompshad -lrt -L/usr/sfw/lib -lNX_Xrender -lNX_Xfixes -lXfont \
-lXcomp -lXcompext -lXcompshad -lrt -L/usr/sfw/lib -lNX_Xrender -lNX_Xfixes -lXfont \
-L../../../nx-X11/exports/lib -lNX_Xtst -lNX_Xdamage -lNX_Xrandr -lNX_Xcomposite -l
NX_
Xdmcp \
-L../../../nx-X11/exports/lib -lNX_Xtst -lNX_Xdamage -lNX_Xrandr -lNX_Xcomposite -lXdmcp \
`pkg-config --libs libxml-2.0`
`pkg-config --libs libxml-2.0`
#elif defined(cygwinArchitecture)
#elif defined(cygwinArchitecture)
NXAGENTNXLIBS = -L ../../../nxcomp -L ../../../nxcompext \
NXAGENTNXLIBS = -L ../../../nxcomp -L ../../../nxcompext \
-lXcomp -lXcompext -lNX_Xrender -lX11 -lNX_Xext -lNX_Xcomposite -lNX_Xfixes -lXfont \
-lXcomp -lXcompext -lNX_Xrender -lX11 -lNX_Xext -lNX_Xcomposite -lNX_Xfixes -lXfont \
-L ../../../nxcompshad -lXcompshad -L../../../nx-X11/exports/lib -lNX_Xtst -l
NX_
Xdmcp \
-L ../../../nxcompshad -lXcompshad -L../../../nx-X11/exports/lib -lNX_Xtst -lXdmcp \
`pkg-config --libs libxml-2.0`
`pkg-config --libs libxml-2.0`
#else
#else
NXAGENTNXLIBS = -L ../../../nxcomp -L ../../../nxcompext -L ../../../nxcompshad \
NXAGENTNXLIBS = -L ../../../nxcomp -L ../../../nxcompext -L ../../../nxcompshad \
-lXcomp -lXcompext -lXcompshad -lNX_Xrender -lNX_X11 -lNX_Xext -lNX_Xfixes -lXfont \
-lXcomp -lXcompext -lXcompshad -lNX_Xrender -lNX_X11 -lNX_Xext -lNX_Xfixes -lXfont \
-L../../../nx-X11/exports/lib -lNX_Xtst -lNX_Xdamage -lNX_Xrandr -lNX_Xcomposite -lNX_Xinerama -l
NX_
Xdmcp \
-L../../../nx-X11/exports/lib -lNX_Xtst -lNX_Xdamage -lNX_Xrandr -lNX_Xcomposite -lNX_Xinerama -lXdmcp \
`pkg-config --libs libxml-2.0`
`pkg-config --libs libxml-2.0`
#endif
#endif
...
...
nx-libs.spec
View file @
825af183
...
@@ -33,6 +33,7 @@ BuildRequires: pkgconfig(x11)
...
@@ -33,6 +33,7 @@ BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xpm)
BuildRequires: pkgconfig(xpm)
BuildRequires: pkgconfig(xfont)
BuildRequires: pkgconfig(xfont)
BuildRequires: pkgconfig(xdmcp)
%else
%else
BuildRequires: libexpat-devel
BuildRequires: libexpat-devel
BuildRequires: libpng-devel
BuildRequires: libpng-devel
...
@@ -41,6 +42,7 @@ BuildRequires: xorg-x11-libX11-devel
...
@@ -41,6 +42,7 @@ BuildRequires: xorg-x11-libX11-devel
BuildRequires: xorg-x11-libXext-devel
BuildRequires: xorg-x11-libXext-devel
BuildRequires: xorg-x11-libXpm-devel
BuildRequires: xorg-x11-libXpm-devel
BuildRequires: xorg-x11-libXfont-devel
BuildRequires: xorg-x11-libXfont-devel
BuildRequires: xorg-x11-libXdmcp-devel
%endif
%endif
BuildRequires: xorg-x11-util-devel
BuildRequires: xorg-x11-util-devel
%endif
%endif
...
@@ -50,6 +52,7 @@ BuildRequires: expat-devel
...
@@ -50,6 +52,7 @@ BuildRequires: expat-devel
BuildRequires: libpng-devel
BuildRequires: libpng-devel
BuildRequires: libxml2-devel
BuildRequires: libxml2-devel
BuildRequires: libXfont-devel
BuildRequires: libXfont-devel
BuildRequires: libXdmcp-devel
%endif
%endif
# For imake
# For imake
...
@@ -214,50 +217,6 @@ The X Damage Extension allows applications to track modified regions
...
@@ -214,50 +217,6 @@ The X Damage Extension allows applications to track modified regions
of drawables.
of drawables.
%package -n libNX_Xdmcp-devel
Group: Development/Libraries
Summary: Development files for the NXDM Control Protocol library
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: libNX_Xdmcp6%{?_isa} = %{version}-%{release}
Requires: nx-proto-devel%{?_isa} = %{version}-%{release}
%description -n libNX_Xdmcp-devel
NX is a software suite which implements very efficient compression of
the X11 protocol. This increases performance when using X
applications over a network, especially a slow one.
The X Display Manager Control Protocol (XDMCP) provides a uniform
mechanism for an autonomous display to request login service from a
remote host. By autonomous, we mean the display consists of hardware
and processes that are independent of any particular host where login
service is desired. An X terminal (screen, keyboard, mouse,
processor, network interface) is a prime example of an autonomous
display.
This package contains all necessary include files and libraries
needed to develop applications that require these.
%package -n libNX_Xdmcp6
Group: System Environment/Libraries
Summary: NX Display Manager Control Protocol library
Requires: %{name}%{?_isa} >= 3.5.0.29
Obsoletes: libNX_Xdmcp
%description -n libNX_Xdmcp6
NX is a software suite which implements very efficient compression of
the X11 protocol. This increases performance when using X
applications over a network, especially a slow one.
The X Display Manager Control Protocol (XDMCP) provides a uniform
mechanism for an autonomous display to request login service from a
remote host. By autonomous, we mean the display consists of hardware
and processes that are independent of any particular host where login
service is desired. An X terminal (screen, keyboard, mouse,
processor, network interface) is a prime example of an autonomous
display.
%package -n libNX_Xext-devel
%package -n libNX_Xext-devel
Group: Development/Libraries
Group: Development/Libraries
Summary: Development files for the NX Common Extensions library
Summary: Development files for the NX Common Extensions library
...
@@ -518,7 +477,6 @@ Group: Development/Libraries
...
@@ -518,7 +477,6 @@ Group: Development/Libraries
Summary: Include files and libraries for NX development
Summary: Include files and libraries for NX development
Requires: libNX_X11-devel%{?_isa} = %{version}-%{release}
Requires: libNX_X11-devel%{?_isa} = %{version}-%{release}
Requires: libNX_Xau-devel%{?_isa} = %{version}-%{release}
Requires: libNX_Xau-devel%{?_isa} = %{version}-%{release}
Requires: libNX_Xdmcp-devel%{?_isa} = %{version}-%{release}
Requires: libNX_Xext-devel%{?_isa} = %{version}-%{release}
Requires: libNX_Xext-devel%{?_isa} = %{version}-%{release}
Requires: libNX_Xfixes-devel%{?_isa} = %{version}-%{release}
Requires: libNX_Xfixes-devel%{?_isa} = %{version}-%{release}
Requires: libNX_Xrender-devel%{?_isa} = %{version}-%{release}
Requires: libNX_Xrender-devel%{?_isa} = %{version}-%{release}
...
@@ -699,7 +657,6 @@ ln -s -f ../../../../%{_lib}/libXext.so.6 %{buildroot}%{_libdir}/nx/X11/Xinerama
...
@@ -699,7 +657,6 @@ ln -s -f ../../../../%{_lib}/libXext.so.6 %{buildroot}%{_libdir}/nx/X11/Xinerama
%post -n libNX_Xau6 -p /sbin/ldconfig
%post -n libNX_Xau6 -p /sbin/ldconfig
%post -n libNX_Xcomposite1 -p /sbin/ldconfig
%post -n libNX_Xcomposite1 -p /sbin/ldconfig
%post -n libNX_Xdamage1 -p /sbin/ldconfig
%post -n libNX_Xdamage1 -p /sbin/ldconfig
%post -n libNX_Xdmcp6 -p /sbin/ldconfig
%post -n libNX_Xext6 -p /sbin/ldconfig
%post -n libNX_Xext6 -p /sbin/ldconfig
%post -n libNX_Xfixes3 -p /sbin/ldconfig
%post -n libNX_Xfixes3 -p /sbin/ldconfig
%post -n libNX_Xinerama1 -p /sbin/ldconfig
%post -n libNX_Xinerama1 -p /sbin/ldconfig
...
@@ -714,7 +671,6 @@ ln -s -f ../../../../%{_lib}/libXext.so.6 %{buildroot}%{_libdir}/nx/X11/Xinerama
...
@@ -714,7 +671,6 @@ ln -s -f ../../../../%{_lib}/libXext.so.6 %{buildroot}%{_libdir}/nx/X11/Xinerama
%postun -n libNX_Xau6 -p /sbin/ldconfig
%postun -n libNX_Xau6 -p /sbin/ldconfig
%postun -n libNX_Xcomposite1 -p /sbin/ldconfig
%postun -n libNX_Xcomposite1 -p /sbin/ldconfig
%postun -n libNX_Xdamage1 -p /sbin/ldconfig
%postun -n libNX_Xdamage1 -p /sbin/ldconfig
%postun -n libNX_Xdmcp6 -p /sbin/ldconfig
%postun -n libNX_Xext6 -p /sbin/ldconfig
%postun -n libNX_Xext6 -p /sbin/ldconfig
%postun -n libNX_Xfixes3 -p /sbin/ldconfig
%postun -n libNX_Xfixes3 -p /sbin/ldconfig
%postun -n libNX_Xinerama1 -p /sbin/ldconfig
%postun -n libNX_Xinerama1 -p /sbin/ldconfig
...
@@ -776,15 +732,6 @@ ln -s -f ../../../../%{_lib}/libXext.so.6 %{buildroot}%{_libdir}/nx/X11/Xinerama
...
@@ -776,15 +732,6 @@ ln -s -f ../../../../%{_lib}/libXext.so.6 %{buildroot}%{_libdir}/nx/X11/Xinerama
%defattr(-,root,root)
%defattr(-,root,root)
%{_libdir}/libNX_Xdamage.so.1*
%{_libdir}/libNX_Xdamage.so.1*
%files -n libNX_Xdmcp-devel
%defattr(-,root,root)
%{_libdir}/libNX_Xdmcp.so
%{_includedir}/nx/X11/Xdmcp.h
%files -n libNX_Xdmcp6
%defattr(-,root,root)
%{_libdir}/libNX_Xdmcp.so.6*
%files -n libNX_Xext-devel
%files -n libNX_Xext-devel
%defattr(-,root,root)
%defattr(-,root,root)
%{_libdir}/libNX_Xext.so
%{_libdir}/libNX_Xext.so
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment