libsmb: Add cli_smb2_notify
authorVolker Lendecke <vl@samba.org>
Tue, 25 Jul 2017 10:12:02 +0000 (12:12 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 25 Jul 2017 19:36:12 +0000 (21:36 +0200)
commit18011343d80a28fb46894d712b22c84dce067342
tree29e65eca139119c26d1048992af298ae6ee0289d
parentad33964f8c85b67a2d2b451bece208d8bfb8cad6
libsmb: Add cli_smb2_notify

We have to do the parsing manually. Looking at librpc/gen_ndr/ndr_notify.c we
have the following code snippet:

  size_FileName1_0 = strlen_m(r->FileName1);
  NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->FileName1,
                             size_FileName1_0, sizeof(uint16_t),
                             CH_UTF16));

which means that we take strlen_m(r->FileName1) before we pull
it off the wire. Not sure how to fix this, but that is clearly
broken pidl output. Once that is fixed, we can convert this
to ndr_pull_struct.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/cli_smb2_fnum.c
source3/libsmb/cli_smb2_fnum.h