1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

optional (0of or 1of) with "[+]" semantics.

This commit is contained in:
Luke Leighton 0001-01-01 00:00:00 +00:00
parent 7e3fe77ab2
commit 55a3e4b592
2 changed files with 6 additions and 1 deletions

View File

@ -101,7 +101,7 @@ typedef struct {
/* security package if CAP_EXTENDED_SECURITY is */
/* on in the Capabilities field; else challenge */
/* for CIFS challenge/response authentication. */
string OemDomainName; /*The name of the domain (in OEM chars); not */
string OemDomainName[+]; /*The name of the domain (in OEM chars); not */
/* present if CAP_EXTENDED_SECURITY is on in the */
/* Capabilities field */
} R_NEGPROT_17;

View File

@ -16,6 +16,11 @@ function parse_array(f, v, elnum, flags,
v["FLAGS"] = flags;
v["ARRAY_LEN"] = array_len;
if (array_len=="+") {
print_template(f,"prs_array_optional.tpl", v);
return;
}
if (array_len=="*") {
print_template(f,"prs_array_remainder.tpl", v);
return;