s3: remove unused RPC_AUTH_SCHANNEL_NEG struct and parsing functions.
authorGünther Deschner <gd@samba.org>
Tue, 8 Sep 2009 13:32:24 +0000 (15:32 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 8 Sep 2009 15:07:03 +0000 (17:07 +0200)
Guenther

source3/include/proto.h
source3/include/rpc_dce.h
source3/rpc_parse/parse_rpc.c

index 4bdd306c0b1a40793dadb332ba7fe7c292f49283..be5cfe11411b7cd3019e6962edb057db37c9bacd 100644 (file)
@@ -5731,10 +5731,6 @@ void init_rpc_auth_verifier(RPC_AUTH_VERIFIER *rav,
                                const char *signature, uint32 msg_type);
 bool smb_io_rpc_auth_verifier(const char *desc, RPC_AUTH_VERIFIER *rav, prs_struct *ps, int depth);
 bool smb_io_rpc_schannel_verifier(const char *desc, RPC_AUTH_VERIFIER *rav, prs_struct *ps, int depth);
-void init_rpc_auth_schannel_neg(RPC_AUTH_SCHANNEL_NEG *neg,
-                             const char *domain, const char *myname);
-bool smb_io_rpc_auth_schannel_neg(const char *desc, RPC_AUTH_SCHANNEL_NEG *neg,
-                               prs_struct *ps, int depth);
 bool smb_io_rpc_auth_schannel_chk(const char *desc, int auth_len, 
                                 RPC_AUTH_SCHANNEL_CHK * chk,
                                prs_struct *ps, int depth);
index cd65ac86569789200f236d930f962bdee41770db..684880d152ed32487eb5a6321a92897eec45f442 100644 (file)
@@ -174,16 +174,6 @@ typedef struct rpc_hdr_auth_info {
 
 #define RPC_HDR_AUTH_LEN 8
 
-/* this is TEMPORARILY coded up as a specific structure */
-/* this structure comes after the bind request */
-/* RPC_AUTH_SCHANNEL_NEG */
-typedef struct rpc_auth_schannel_neg_info {
-       uint32 type1;   /* Always zero ? */
-       uint32 type2;   /* Types 0x3 and 0x13 seen. Check AcquireSecurityContext() docs.... */
-       fstring domain; /* calling workstations's domain */
-       fstring myname; /* calling workstation's name */
-} RPC_AUTH_SCHANNEL_NEG;
-
 /* attached to the end of encrypted rpc requests and responses */
 /* RPC_AUTH_SCHANNEL_CHK */
 typedef struct rpc_auth_schannel_chk_info {
index 651a5915b838406fa79c7de5b3f230d783993a4e..2e7216c3ca72285cf3f5e195c82d837b4f9611da 100644 (file)
@@ -570,47 +570,6 @@ bool smb_io_rpc_schannel_verifier(const char *desc, RPC_AUTH_VERIFIER *rav, prs_
        return True;
 }
 
-/*******************************************************************
-creates an RPC_AUTH_SCHANNEL_NEG structure.
-********************************************************************/
-
-void init_rpc_auth_schannel_neg(RPC_AUTH_SCHANNEL_NEG *neg,
-                             const char *domain, const char *myname)
-{
-       neg->type1 = 0;
-       neg->type2 = 0x3;
-       fstrcpy(neg->domain, domain);
-       fstrcpy(neg->myname, myname);
-}
-
-/*******************************************************************
- Reads or writes an RPC_AUTH_SCHANNEL_NEG structure.
-********************************************************************/
-
-bool smb_io_rpc_auth_schannel_neg(const char *desc, RPC_AUTH_SCHANNEL_NEG *neg,
-                               prs_struct *ps, int depth)
-{
-       if (neg == NULL)
-               return False;
-
-       prs_debug(ps, depth, desc, "smb_io_rpc_auth_schannel_neg");
-       depth++;
-
-       if(!prs_align(ps))
-               return False;
-
-       if(!prs_uint32("type1", ps, depth, &neg->type1))
-               return False;
-       if(!prs_uint32("type2", ps, depth, &neg->type2))
-               return False;
-       if(!prs_string("domain  ", ps, depth, neg->domain, sizeof(neg->domain)))
-               return False;
-       if(!prs_string("myname  ", ps, depth, neg->myname, sizeof(neg->myname)))
-               return False;
-
-       return True;
-}
-
 /*******************************************************************
 reads or writes an RPC_AUTH_SCHANNEL_CHK structure.
 ********************************************************************/