diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2017-02-28 23:05:47 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2017-02-28 23:05:47 +0000 |
commit | 809e94e475c78602f28f0e4e51b39cd66738ef38 (patch) | |
tree | abf14dc9324af7ba6d02948ea8f1d7e9c3a0889b /xserver/os | |
parent | dde1af17a2a1ba5630a337095cfebdc83f4080e4 (diff) |
Oops, in previous commit I forgot to remove the actual implementation
of the unused *ToID functions(). Spotted by Adam Jackson on xorg-devel
list. Thanks.
Diffstat (limited to 'xserver/os')
-rw-r--r-- | xserver/os/mitauth.c | 13 | ||||
-rw-r--r-- | xserver/os/rpcauth.c | 6 | ||||
-rw-r--r-- | xserver/os/xdmauth.c | 27 |
3 files changed, 0 insertions, 46 deletions
diff --git a/xserver/os/mitauth.c b/xserver/os/mitauth.c index efae4404c..e75d700e1 100644 --- a/xserver/os/mitauth.c +++ b/xserver/os/mitauth.c @@ -97,19 +97,6 @@ MitResetCookie(void) return 0; } -XID -MitToID(unsigned short data_length, char *data) -{ - struct auth *auth; - - for (auth = mit_auth; auth; auth = auth->next) { - if (data_length == auth->len && - memcmp(data, auth->data, data_length) == 0) - return auth->id; - } - return (XID) -1; -} - int MitFromID(XID id, unsigned short *data_lenp, char **datap) { diff --git a/xserver/os/rpcauth.c b/xserver/os/rpcauth.c index 413cc6118..6a591cce7 100644 --- a/xserver/os/rpcauth.c +++ b/xserver/os/rpcauth.c @@ -175,12 +175,6 @@ SecureRPCReset(void) return 1; } -_X_HIDDEN XID -SecureRPCToID(unsigned short data_length, char *data) -{ - return rpc_id; -} - _X_HIDDEN int SecureRPCFromID(XID id, unsigned short *data_lenp, char **datap) { diff --git a/xserver/os/xdmauth.c b/xserver/os/xdmauth.c index 482bc67db..94ae81b14 100644 --- a/xserver/os/xdmauth.c +++ b/xserver/os/xdmauth.c @@ -411,33 +411,6 @@ XdmResetCookie(void) return 1; } -XID -XdmToID(unsigned short cookie_length, char *cookie) -{ - XdmAuthorizationPtr auth; - XdmClientAuthPtr client; - unsigned char *plain; - - plain = malloc(cookie_length); - if (!plain) - return (XID) -1; - for (auth = xdmAuth; auth; auth = auth->next) { - XdmcpUnwrap((unsigned char *) cookie, (unsigned char *) &auth->key, - plain, cookie_length); - if ((client = - XdmAuthorizationValidate(plain, cookie_length, &auth->rho, NULL, - NULL)) != NULL) { - free(client); - free(cookie); - free(plain); - return auth->id; - } - } - free(cookie); - free(plain); - return (XID) -1; -} - int XdmFromID(XID id, unsigned short *data_lenp, char **datap) { |