1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

s3:libsmb: add cli_state_server_challenge() and cli_state_server_gss_blob()

metze
This commit is contained in:
Stefan Metzmacher 2011-09-13 20:41:09 +02:00
parent a1e2affd0f
commit a00f543aa6
2 changed files with 18 additions and 0 deletions

View File

@ -566,6 +566,22 @@ uint16_t cli_state_max_requests(struct cli_state *cli)
return cli->conn.smb1.server.max_mux;
}
const uint8_t *cli_state_server_challenge(struct cli_state *cli)
{
static const uint8_t zero;
if (cli->secblob.length == 8)
return cli->secblob.data;
}
return zero;
}
const DATA_BLOB *cli_state_server_gss_blob(struct cli_state *cli)
{
return &cli->secblob;
}
uint16_t cli_state_security_mode(struct cli_state *cli)
{
return cli->conn.smb1.server.security_mode;

View File

@ -184,6 +184,8 @@ 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);
const uint8_t *cli_state_server_challenge(struct cli_state *cli);
const DATA_BLOB *cli_state_server_gss_blob(struct cli_state *cli);
uint16_t cli_state_security_mode(struct cli_state *cli);
int cli_state_server_time_zone(struct cli_state *cli);
time_t cli_state_server_time(struct cli_state *cli);