Handle more RPC service names
authorAsanka Herath <asanka@secure-endpoints.com>
Wed, 12 Aug 2009 18:56:56 +0000 (14:56 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Wed, 12 Aug 2009 19:08:45 +0000 (12:08 -0700)
commit19459804b0622ebad1e21e2d34ceb55ad7baddde
tree3d9e82cc5fbd6915dfdebc9276702c81783f9d1c
parent9f2eb69899f1c4dba6671fe784ea2dd61e75a7eb
Handle more RPC service names

While the Windows client only implements support for WKSSVC and
SRVSVC RPC services, it should be aware of and handle requests
for other well known service names.

This patch refactors service name checks to a separate
MSRPC_IsWellKnownService() function.  In addition, it separates
the tests for IPC TIDs from the test for well known service
names.  An IPC TID may be used for generic pipe operations as
well as for RPC message pipe operations.  Therefore the fact that
a TID was opened for IPC doesn't necessarily mean that it will
only be used for RPC.

Reviewed-on: http://gerrit.openafs.org/307
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/afsd/msrpc.c
src/WINNT/afsd/msrpc.h
src/WINNT/afsd/smb.c
src/WINNT/afsd/smb3.c