s3:ntlmssp: remove unused ntlmssp_stored_response()
authorStefan Metzmacher <metze@samba.org>
Thu, 24 Dec 2009 21:07:19 +0000 (22:07 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 29 Dec 2009 07:46:12 +0000 (08:46 +0100)
metze

source3/include/ntlmssp.h
source3/include/proto.h
source3/libsmb/ntlmssp.c

index 83c75ea4ff60245057afa6f3d12d3578cfc7611a..f30b53f0946e6d93ad463641874d183b7e2b211e 100644 (file)
@@ -131,9 +131,4 @@ struct ntlmssp_state
        /* ntlmv1 */
        struct arcfour_state ntlmv1_arc4_state;
        uint32_t ntlmv1_seq_num;
-
-       /* it turns out that we don't always get the
-          response in at the time we want to process it.
-          Store it here, until we need it */
-       DATA_BLOB stored_response;
 };
index f81ab916030261ac15818693aded0047bf845054..87701bf0b5aa6df0f57dba465e75a2d396a095f3 100644 (file)
@@ -3218,8 +3218,6 @@ NTSTATUS ntlmssp_set_hashes(struct ntlmssp_state *ntlmssp_state,
 NTSTATUS ntlmssp_set_password(struct ntlmssp_state *ntlmssp_state, const char *password) ;
 NTSTATUS ntlmssp_set_domain(struct ntlmssp_state *ntlmssp_state, const char *domain) ;
 NTSTATUS ntlmssp_set_workstation(struct ntlmssp_state *ntlmssp_state, const char *workstation) ;
-NTSTATUS ntlmssp_store_response(struct ntlmssp_state *ntlmssp_state,
-                               DATA_BLOB response) ;
 void ntlmssp_want_feature_list(struct ntlmssp_state *ntlmssp_state, char *feature_list);
 void ntlmssp_want_feature(struct ntlmssp_state *ntlmssp_state, uint32 feature);
 NTSTATUS ntlmssp_update(struct ntlmssp_state *ntlmssp_state,
index 6ce7718bf17504f8ca0a011d20ec53f7647ed49b..aaa5031951724234a8b752cad83e3b71a9d7c766 100644 (file)
@@ -222,20 +222,6 @@ NTSTATUS ntlmssp_set_workstation(struct ntlmssp_state *ntlmssp_state, const char
        return NT_STATUS_OK;
 }
 
-/**
- *  Store a DATA_BLOB containing an NTLMSSP response, for use later.
- *  This copies the data blob
- */
-
-NTSTATUS ntlmssp_store_response(struct ntlmssp_state *ntlmssp_state,
-                               DATA_BLOB response)
-{
-       ntlmssp_state->stored_response = data_blob_talloc(ntlmssp_state,
-                                                         response.data,
-                                                         response.length);
-       return NT_STATUS_OK;
-}
-
 /**
  * Request features for the NTLMSSP negotiation
  *
@@ -290,9 +276,8 @@ void ntlmssp_want_feature(struct ntlmssp_state *ntlmssp_state, uint32 feature)
  */
 
 NTSTATUS ntlmssp_update(struct ntlmssp_state *ntlmssp_state,
-                       const DATA_BLOB in, DATA_BLOB *out)
+                       const DATA_BLOB input, DATA_BLOB *out)
 {
-       DATA_BLOB input;
        uint32 ntlmssp_command;
        int i;
 
@@ -304,15 +289,6 @@ NTSTATUS ntlmssp_update(struct ntlmssp_state *ntlmssp_state,
 
        *out = data_blob_null;
 
-       if (!in.length && ntlmssp_state->stored_response.length) {
-               input = ntlmssp_state->stored_response;
-
-               /* we only want to read the stored response once - overwrite it */
-               ntlmssp_state->stored_response = data_blob_null;
-       } else {
-               input = in;
-       }
-
        if (!input.length) {
                switch (ntlmssp_state->role) {
                case NTLMSSP_CLIENT: