summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-13 18:36:56 +0200
committerStefan Metzmacher <metze@samba.org>2011-09-13 20:49:27 +0200
commit7ec961d98724206bbc25abf3413df0433c30cf94 (patch)
tree87f9781b16c3be74f7a045028f1f207a2c437b51 /source3
parentfa5475ea9e3cbd610ea9d00ce3a84123ea21b394 (diff)
downloadsamba-7ec961d98724206bbc25abf3413df0433c30cf94.tar.gz
samba-7ec961d98724206bbc25abf3413df0433c30cf94.tar.bz2
samba-7ec961d98724206bbc25abf3413df0433c30cf94.zip
s3:libsmb: add cli_state_server_session_key()
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clientgen.c5
-rw-r--r--source3/libsmb/proto.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 2d3a3a1243..8cbd82aabc 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -431,6 +431,11 @@ uint16_t cli_state_get_vc_num(struct cli_state *cli)
return cli->smb1.vc_num;
}
+uint32_t cli_state_server_session_key(struct cli_state *cli)
+{
+ return cli->sesskey;
+}
+
/****************************************************************************
Set the PID to use for smb messages. Return the old pid.
****************************************************************************/
diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h
index 4a56971473..0f1ea98b08 100644
--- a/source3/libsmb/proto.h
+++ b/source3/libsmb/proto.h
@@ -170,6 +170,7 @@ const struct sockaddr_storage *cli_state_remote_sockaddr(struct cli_state *cli);
const char *cli_state_remote_name(struct cli_state *cli);
const char *cli_state_remote_realm(struct cli_state *cli);
uint16_t cli_state_get_vc_num(struct cli_state *cli);
+uint32_t cli_state_server_session_key(struct cli_state *cli);
uint16 cli_setpid(struct cli_state *cli, uint16 pid);
uint16_t cli_getpid(struct cli_state *cli);
bool cli_state_has_tcon(struct cli_state *cli);