summaryrefslogtreecommitdiff
path: root/Xext/xace.c
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2006-08-02 20:29:59 -0400
committerEamon Walsh <ewalsh@moss-uranus.epoch.ncsc.mil>2006-08-02 20:29:59 -0400
commit96e45626c43b7674b66e0258b0b1730d5ce71357 (patch)
tree9cd058f880096974f5e367f7188a3186e5d76912 /Xext/xace.c
parent3c23dec5962b8b81ae838fe0ee2c7b0a789f5386 (diff)
Rebase Security extension to use devPrivates for storing security state.
Diffstat (limited to 'Xext/xace.c')
-rw-r--r--Xext/xace.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/Xext/xace.c b/Xext/xace.c
index 75fb8a35b..eb9540a8f 100644
--- a/Xext/xace.c
+++ b/Xext/xace.c
@@ -26,9 +26,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
CallbackListPtr XaceHooks[XACE_NUM_HOOKS] = {0};
-static Bool stateSlotsUsed[XACE_STATE_SLOTS] = {0};
-static char *stateExtNames[XACE_STATE_SLOTS] = {0};
-
/* Proc vectors for untrusted clients, swapped and unswapped versions.
* These are the same as the normal proc vectors except that extensions
* that haven't declared themselves secure will have ProcBadRequest plugged
@@ -43,43 +40,6 @@ int (*SwappedUntrustedProcVector[256])(
ClientPtr /*client*/
);
-/* Register with the security module, which allows an extension to store
- * security state. The return value is the index which should be passed
- * to the state macros, or -1 if no more slots are available.
- */
-int XaceRegisterExtension(name)
- char *name;
-{
- int i;
- for (i=0; i<XACE_STATE_SLOTS; i++)
- if (!stateSlotsUsed[i])
- {
- /* save the extension name */
- if (name) {
- stateExtNames[i] = (char*)xalloc(strlen(name)+1);
- if (!stateExtNames[i])
- return -1;
- memcpy(stateExtNames[i], name, strlen(name)+1);
- }
- stateSlotsUsed[i] = TRUE;
- return i;
- }
- return -1; /* no slots free */
-}
-
-/* Unregister an extension. Pass the index returned at registration time.
- */
-void XaceUnregisterExtension(idx)
- int idx; /* state index */
-{
- /* free the extension name */
- if (stateExtNames[idx]) {
- xfree(stateExtNames[idx]);
- stateExtNames[idx] = NULL;
- }
- stateSlotsUsed[idx] = FALSE;
-}
-
/* Entry point for hook functions. Called by Xserver.
*/
int XaceHook(int hook, ...)
@@ -296,14 +256,6 @@ XaceResetProc(ExtensionEntry *extEntry)
DeleteCallbackList(&XaceHooks[i]);
XaceHooks[i] = NULL;
}
-
- for (i=0; i<XACE_STATE_SLOTS; i++)
- {
- if (stateExtNames[i])
- xfree(stateExtNames[i]);
- stateExtNames[i] = NULL;
- stateSlotsUsed[i] = FALSE;
- }
} /* XaceResetProc */