diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-11-25 15:13:38 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-11-29 16:00:08 +0100 |
commit | e450c45e6738900daf9a1800bd6998268fb7d6d6 (patch) | |
tree | f57749731f43a2b5e2c66850cf581c54e5d5a9cb /libcli | |
parent | 46f0b73c8a1fd372299fae5618d2e67f09e3f5e0 (diff) | |
download | samba-e450c45e6738900daf9a1800bd6998268fb7d6d6.tar.gz samba-e450c45e6738900daf9a1800bd6998268fb7d6d6.tar.bz2 samba-e450c45e6738900daf9a1800bd6998268fb7d6d6.zip |
smbXcli: add smb1cli_conn_server_{readbraw,writebraw,lockread,writeunlock}()
metze
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/smb/smbXcli_base.c | 20 | ||||
-rw-r--r-- | libcli/smb/smbXcli_base.h | 4 |
2 files changed, 24 insertions, 0 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c index e49a989095..a64cab206f 100644 --- a/libcli/smb/smbXcli_base.c +++ b/libcli/smb/smbXcli_base.c @@ -447,6 +447,26 @@ uint16_t smb1cli_conn_server_security_mode(struct smbXcli_conn *conn) return conn->smb1.server.security_mode; } +bool smb1cli_conn_server_readbraw(struct smbXcli_conn *conn) +{ + return conn->smb1.server.readbraw; +} + +bool smb1cli_conn_server_writebraw(struct smbXcli_conn *conn) +{ + return conn->smb1.server.writebraw; +} + +bool smb1cli_conn_server_lockread(struct smbXcli_conn *conn) +{ + return conn->smb1.server.lockread; +} + +bool smb1cli_conn_server_writeunlock(struct smbXcli_conn *conn) +{ + return conn->smb1.server.writeunlock; +} + int smb1cli_conn_server_time_zone(struct smbXcli_conn *conn) { return conn->smb1.server.time_zone; diff --git a/libcli/smb/smbXcli_base.h b/libcli/smb/smbXcli_base.h index 8cb3b8eee7..0eaf797936 100644 --- a/libcli/smb/smbXcli_base.h +++ b/libcli/smb/smbXcli_base.h @@ -59,6 +59,10 @@ uint32_t smb1cli_conn_max_xmit(struct smbXcli_conn *conn); uint32_t smb1cli_conn_server_session_key(struct smbXcli_conn *conn); const uint8_t *smb1cli_conn_server_challenge(struct smbXcli_conn *conn); uint16_t smb1cli_conn_server_security_mode(struct smbXcli_conn *conn); +bool smb1cli_conn_server_readbraw(struct smbXcli_conn *conn); +bool smb1cli_conn_server_writebraw(struct smbXcli_conn *conn); +bool smb1cli_conn_server_lockread(struct smbXcli_conn *conn); +bool smb1cli_conn_server_writeunlock(struct smbXcli_conn *conn); int smb1cli_conn_server_time_zone(struct smbXcli_conn *conn); bool smb1cli_conn_activate_signing(struct smbXcli_conn *conn, |