s4-backupkey: fix ndr_pull error on empty input
authorArvid Requate <requate@univention.de>
Mon, 7 Jul 2014 16:43:05 +0000 (18:43 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 25 Feb 2015 00:08:11 +0000 (01:08 +0100)
[MS-BKRP] 3.1.4.1 specifies for BACKUPKEY_RETRIEVE_BACKUP_KEY_GUID that
the server must ignore the input data. This patch fixes
  ndr_pull_error(11): Pull bytes 4 (../librpc/ndr/ndr_basic.c:148)

Signed-off-by: Arvid Requate <requate@univention.de>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
librpc/idl/backupkey.idl

index e21030bb69ad443aad7b08a5cf43064ea9457dda..b504ca578e9f3110b3a437a5538907af58d2fe01 100644 (file)
@@ -47,6 +47,9 @@ interface backupkey
                uint8 key[256];
        } bkrp_dc_serverwrap_key;
 
+       [public] typedef struct {
+       } bkrp_empty;
+
        [public,gensize] typedef struct {
                uint32 version;
                uint32 encrypted_secret_len;
@@ -103,7 +106,7 @@ interface backupkey
 
        [public] typedef [nodiscriminant] union {
                [case(BACKUPKEY_RESTORE_GUID_INTEGER)] bkrp_client_side_wrapped restore_req;
-               [case(BACKUPKEY_RETRIEVE_BACKUP_KEY_GUID_INTEGER)] bkrp_client_side_wrapped cert_req;
+               [case(BACKUPKEY_RETRIEVE_BACKUP_KEY_GUID_INTEGER)] bkrp_empty empty;
        } bkrp_data_in_blob;
 
        /******************/