diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-02-24 12:36:23 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-02-24 15:43:03 +1100 |
commit | cab24da68dbebc419efaaf660b20994b71e42203 (patch) | |
tree | 12e133f266da2ec10a41ef0a81d9f1959a2c32ff /source3 | |
parent | f14dffa815b47af4061cf1d0c35e0237d35c07a9 (diff) | |
download | samba-cab24da68dbebc419efaaf660b20994b71e42203.tar.gz samba-cab24da68dbebc419efaaf660b20994b71e42203.tar.bz2 samba-cab24da68dbebc419efaaf660b20994b71e42203.zip |
s3-libsmb: Remove unused spnego_parse_auth_and_mic
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/proto.h | 2 | ||||
-rw-r--r-- | source3/libsmb/clispnego.c | 40 |
2 files changed, 0 insertions, 42 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 30fc21615d..f973800855 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -874,8 +874,6 @@ bool spnego_parse_auth_response(TALLOC_CTX *ctx, const char *mechOID, DATA_BLOB *auth); -bool spnego_parse_auth_and_mic(TALLOC_CTX *ctx, DATA_BLOB blob, - DATA_BLOB *auth, DATA_BLOB *signature); /* The following definitions come from libsmb/conncache.c */ NTSTATUS check_negative_conn_cache( const char *domain, const char *server); diff --git a/source3/libsmb/clispnego.c b/source3/libsmb/clispnego.c index c1b49c9d33..2cc2a2a5f1 100644 --- a/source3/libsmb/clispnego.c +++ b/source3/libsmb/clispnego.c @@ -412,46 +412,6 @@ DATA_BLOB spnego_gen_auth(TALLOC_CTX *ctx, DATA_BLOB blob) /* parse a SPNEGO auth packet. This contains the encrypted passwords */ -bool spnego_parse_auth_and_mic(TALLOC_CTX *ctx, DATA_BLOB blob, - DATA_BLOB *auth, DATA_BLOB *signature) -{ - ssize_t len; - struct spnego_data token; - - len = spnego_read_data(talloc_tos(), blob, &token); - if (len == -1) { - DEBUG(3,("spnego_parse_auth: spnego_read_data failed\n")); - return false; - } - - if (token.type != SPNEGO_NEG_TOKEN_TARG) { - DEBUG(3,("spnego_parse_auth: wrong token type: %d\n", - token.type)); - spnego_free_data(&token); - return false; - } - - *auth = data_blob_talloc(ctx, - token.negTokenTarg.responseToken.data, - token.negTokenTarg.responseToken.length); - - if (!signature) { - goto done; - } - - *signature = data_blob_talloc(ctx, - token.negTokenTarg.mechListMIC.data, - token.negTokenTarg.mechListMIC.length); - -done: - spnego_free_data(&token); - - return true; -} - -/* - parse a SPNEGO auth packet. This contains the encrypted passwords -*/ bool spnego_parse_auth_response(TALLOC_CTX *ctx, DATA_BLOB blob, NTSTATUS nt_status, const char *mechOID, |