diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-09-13 16:45:04 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-09-13 18:12:23 +0200 |
commit | fbd5cb5835fa2c2aa8c859ac6a2ba4f414cc6baf (patch) | |
tree | fc79493f1c383063052172c6916f349a5f351bae /source3/libsmb | |
parent | 7c405fd92caf54bf5d9adce51f2635d13c1fe6f8 (diff) | |
download | samba-fbd5cb5835fa2c2aa8c859ac6a2ba4f414cc6baf.tar.gz samba-fbd5cb5835fa2c2aa8c859ac6a2ba4f414cc6baf.tar.bz2 samba-fbd5cb5835fa2c2aa8c859ac6a2ba4f414cc6baf.zip |
s3:libsmb: add cli_state_security_mode()
metze
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clientgen.c | 5 | ||||
-rw-r--r-- | source3/libsmb/proto.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index b438fd8397..2d3a3a1243 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -519,6 +519,11 @@ uint16_t cli_state_max_requests(struct cli_state *cli) return cli->max_mux; } +uint16_t cli_state_security_mode(struct cli_state *cli) +{ + return cli->sec_mode; +} + struct cli_echo_state { uint16_t vwv[1]; DATA_BLOB data; diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h index 82b981e62c..4a56971473 100644 --- a/source3/libsmb/proto.h +++ b/source3/libsmb/proto.h @@ -182,6 +182,7 @@ enum protocol_types cli_state_protocol(struct cli_state *cli); uint32_t cli_state_capabilities(struct cli_state *cli); uint32_t cli_state_available_size(struct cli_state *cli, uint32_t ofs); uint16_t cli_state_max_requests(struct cli_state *cli); +uint16_t cli_state_security_mode(struct cli_state *cli); struct tevent_req *cli_echo_send(TALLOC_CTX *mem_ctx, struct event_context *ev, struct cli_state *cli, uint16_t num_echos, DATA_BLOB data); |