diff options
author | Günther Deschner <gd@samba.org> | 2005-08-06 04:35:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:00:27 -0500 |
commit | cc6843fcca2220d27235ff87c7f2b5b2403052ad (patch) | |
tree | 8e2a3fd024c09590524e0abc1d32da90a2b4cb40 /source3/libads | |
parent | 3dae794632f48ae163d1195fef19c14e67f341cc (diff) | |
download | samba-cc6843fcca2220d27235ff87c7f2b5b2403052ad.tar.gz samba-cc6843fcca2220d27235ff87c7f2b5b2403052ad.tar.bz2 samba-cc6843fcca2220d27235ff87c7f2b5b2403052ad.zip |
r9163: Rename UNKNOWN_TYPE_10 to PAC_LOGON_NAME (merge from samba4)
Guenther
(This used to be commit d14dcba9635d10d2d8bf9f60c601b8c9078ec340)
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/authdata.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/source3/libads/authdata.c b/source3/libads/authdata.c index ccaf82124c..2cc6c6ebae 100644 --- a/source3/libads/authdata.c +++ b/source3/libads/authdata.c @@ -43,31 +43,31 @@ static DATA_BLOB unwrap_pac(DATA_BLOB *auth_data) return pac_contents; } -static BOOL pac_io_unknown_type_10(const char *desc, UNKNOWN_TYPE_10 *type_10, - prs_struct *ps, int depth) +static BOOL pac_io_logon_name(const char *desc, PAC_LOGON_NAME *logon_name, + prs_struct *ps, int depth) { - if (NULL == type_10) + if (NULL == logon_name) return False; - prs_debug(ps, depth, desc, "pac_io_unknown_type_10"); + prs_debug(ps, depth, desc, "pac_io_logon_name"); depth++; - if (!smb_io_time("unknown_time", &type_10->unknown_time, ps, depth)) + if (!smb_io_time("logon_time", &logon_name->logon_time, ps, depth)) return False; - if (!prs_uint16("len", ps, depth, &type_10->len)) + if (!prs_uint16("len", ps, depth, &logon_name->len)) return False; - if (UNMARSHALLING(ps) && type_10->len) { - type_10->username = PRS_ALLOC_MEM(ps, uint16, type_10->len); - if (!type_10->username) { + if (UNMARSHALLING(ps) && logon_name->len) { + logon_name->username = PRS_ALLOC_MEM(ps, uint16, logon_name->len); + if (!logon_name->username) { DEBUG(3, ("No memory available\n")); return False; } } - if (!prs_uint16s(True, "name", ps, depth, type_10->username, - (type_10->len / sizeof(uint16)))) + if (!prs_uint16s(True, "name", ps, depth, logon_name->username, + (logon_name->len / sizeof(uint16)))) return False; return True; @@ -499,15 +499,15 @@ static BOOL pac_io_pac_info_hdr_ctr(const char *desc, PAC_INFO_HDR *hdr, return False; break; - case PAC_TYPE_UNKNOWN_10: - DEBUG(5, ("PAC_TYPE_UNKNOWN_10\n")); + case PAC_TYPE_LOGON_NAME: + DEBUG(5, ("PAC_TYPE_LOGON_NAME\n")); if (UNMARSHALLING(ps)) - hdr->ctr->pac.type_10 = PRS_ALLOC_MEM(ps, UNKNOWN_TYPE_10, 1); - if (!hdr->ctr->pac.type_10) { + hdr->ctr->pac.logon_name = PRS_ALLOC_MEM(ps, PAC_LOGON_NAME, 1); + if (!hdr->ctr->pac.logon_name) { DEBUG(3, ("No memory available\n")); return False; } - if (!pac_io_unknown_type_10(desc, hdr->ctr->pac.type_10, + if (!pac_io_logon_name(desc, hdr->ctr->pac.logon_name, ps, depth)) return False; break; |