diff options
author | Günther Deschner <gd@samba.org> | 2009-09-15 00:26:31 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-09-15 17:54:58 +0200 |
commit | 9831e7675c2f393bd02167f435b202e818d4d50b (patch) | |
tree | b9acbdbc3bd3023e8d66a840b7fdbdaae3abdb5b /librpc/ndr | |
parent | ed03edc2e49c686d582abe0506f9422bfb795201 (diff) | |
download | samba-9831e7675c2f393bd02167f435b202e818d4d50b.tar.gz samba-9831e7675c2f393bd02167f435b202e818d4d50b.tar.bz2 samba-9831e7675c2f393bd02167f435b202e818d4d50b.zip |
ntlmssp: pretty print a VERSION structure.
Guenther
Diffstat (limited to 'librpc/ndr')
-rw-r--r-- | librpc/ndr/ndr_ntlmssp.c | 17 | ||||
-rw-r--r-- | librpc/ndr/ndr_ntlmssp.h | 2 |
2 files changed, 19 insertions, 0 deletions
diff --git a/librpc/ndr/ndr_ntlmssp.c b/librpc/ndr/ndr_ntlmssp.c index 5c28726f55..4808aa5f5f 100644 --- a/librpc/ndr/ndr_ntlmssp.c +++ b/librpc/ndr/ndr_ntlmssp.c @@ -162,3 +162,20 @@ _PUBLIC_ void ndr_print_ntlmssp_lm_response(TALLOC_CTX *mem_ctx, } } } + +_PUBLIC_ void ndr_print_ntlmssp_Version(struct ndr_print *ndr, const char *name, const union ntlmssp_Version *r) +{ + int level; + level = ndr_print_get_switch_value(ndr, r); + switch (level) { + case NTLMSSP_NEGOTIATE_VERSION: + ndr_print_VERSION(ndr, name, &r->version); + break; + + default: + break; + + } +} + + diff --git a/librpc/ndr/ndr_ntlmssp.h b/librpc/ndr/ndr_ntlmssp.h index 6d76be20ca..b574f15495 100644 --- a/librpc/ndr/ndr_ntlmssp.h +++ b/librpc/ndr/ndr_ntlmssp.h @@ -31,3 +31,5 @@ _PUBLIC_ void ndr_print_ntlmssp_lm_response(TALLOC_CTX *mem_ctx, struct smb_iconv_convenience *ic, const DATA_BLOB *lm_response, bool ntlmv2); +_PUBLIC_ void ndr_print_ntlmssp_Version(struct ndr_print *ndr, const char *name, const union ntlmssp_Version *r); + |