summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-08-01 09:01:01 +0200
committerStefan Metzmacher <metze@samba.org>2012-08-01 14:17:13 +0200
commit2f4f2144f424d45d3077a7363ec733ff17999cd8 (patch)
treea785671486b855749c2899430528bfa0c5ed00b5 /libcli
parent803fb404493931d348049266de18ffd59ada3403 (diff)
downloadsamba-2f4f2144f424d45d3077a7363ec733ff17999cd8.tar.gz
samba-2f4f2144f424d45d3077a7363ec733ff17999cd8.tar.bz2
samba-2f4f2144f424d45d3077a7363ec733ff17999cd8.zip
libcli/smb: remove unused smb2cli_session_application_key()
metze
Diffstat (limited to 'libcli')
-rw-r--r--libcli/smb/smbXcli_base.c18
-rw-r--r--libcli/smb/smbXcli_base.h3
2 files changed, 0 insertions, 21 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c
index ea6f647b76..37c738ebb6 100644
--- a/libcli/smb/smbXcli_base.c
+++ b/libcli/smb/smbXcli_base.c
@@ -4400,24 +4400,6 @@ uint16_t smb2cli_session_get_flags(struct smbXcli_session *session)
return session->smb2->session_flags;
}
-NTSTATUS smb2cli_session_application_key(struct smbXcli_session *session,
- TALLOC_CTX *mem_ctx,
- DATA_BLOB *key)
-{
- *key = data_blob_null;
-
- if (session->smb2->application_key.length == 0) {
- return NT_STATUS_NO_USER_SESSION_KEY;
- }
-
- *key = data_blob_dup_talloc(mem_ctx, session->smb2->application_key);
- if (key->data == NULL) {
- return NT_STATUS_NO_MEMORY;
- }
-
- return NT_STATUS_OK;
-}
-
void smb2cli_session_set_id_and_flags(struct smbXcli_session *session,
uint64_t session_id,
uint16_t session_flags)
diff --git a/libcli/smb/smbXcli_base.h b/libcli/smb/smbXcli_base.h
index c35811ac0b..3f78cd5da7 100644
--- a/libcli/smb/smbXcli_base.h
+++ b/libcli/smb/smbXcli_base.h
@@ -259,9 +259,6 @@ NTSTATUS smb1cli_session_set_session_key(struct smbXcli_session *session,
uint8_t smb2cli_session_security_mode(struct smbXcli_session *session);
uint64_t smb2cli_session_current_id(struct smbXcli_session *session);
uint16_t smb2cli_session_get_flags(struct smbXcli_session *session);
-NTSTATUS smb2cli_session_application_key(struct smbXcli_session *session,
- TALLOC_CTX *mem_ctx,
- DATA_BLOB *key);
void smb2cli_session_set_id_and_flags(struct smbXcli_session *session,
uint64_t session_id,
uint16_t session_flags);