Changeset 920 for trunk/server/librpc


Ignore:
Timestamp:
Jun 9, 2016, 2:23:12 PM (10 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: apply latest security patches to trunk

Location:
trunk/server
Files:
12 edited
3 copied

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/librpc/idl/dcerpc.idl

    r862 r920  
    1010*/
    1111import "misc.idl";
     12
     13
    1214
    1315interface dcerpc
     
    454456
    455457        /* pfc_flags values */
    456         const uint8 DCERPC_PFC_FLAG_FIRST               = 0x01; /* First fragment */
    457         const uint8 DCERPC_PFC_FLAG_LAST                = 0x02; /* Last fragment */
    458         const uint8 DCERPC_PFC_FLAG_PENDING_CANCEL      = 0x04; /* Cancel was pending at sender */
    459         const uint8 DCERPC_PFC_FLAG_SUPPORT_HEADER_SIGN = DCERPC_PFC_FLAG_PENDING_CANCEL; /* depends on the pdu type */
    460         const uint8 DCERPC_PFC_FLAG_CONC_MPX            = 0x10; /* supports concurrent multiplexing of a single connection. */
    461         const uint8 DCERPC_PFC_FLAG_DID_NOT_EXECUTE     = 0x20; /* on a fault it means the server hasn't done anything */
    462         const uint8 DCERPC_PFC_FLAG_MAYBE               = 0x40; /* `maybe' call semantics requested */
    463         const uint8 DCERPC_PFC_FLAG_OBJECT_UUID         = 0x80; /* on valid guid is in the optional object field */
     458        typedef [bitmap8bit] bitmap {
     459                DCERPC_PFC_FLAG_FIRST           = 0x01, /* First fragment */
     460                DCERPC_PFC_FLAG_LAST            = 0x02, /* Last fragment */
     461                DCERPC_PFC_FLAG_PENDING_CANCEL_OR_HDR_SIGNING = 0x04, /* depends on the pdu type */
     462                DCERPC_PFC_FLAG_CONC_MPX        = 0x10, /* supports concurrent multiplexing of a single connection. */
     463                DCERPC_PFC_FLAG_DID_NOT_EXECUTE = 0x20, /* on a fault it means the server hasn't done anything */
     464                DCERPC_PFC_FLAG_MAYBE           = 0x40, /* `maybe' call semantics requested */
     465                DCERPC_PFC_FLAG_OBJECT_UUID     = 0x80 /* on valid guid is in the optional object field */
     466        } dcerpc_pfc_flags;
     467
     468        /* Cancel was pending at sender */
     469        const int DCERPC_PFC_FLAG_PENDING_CANCEL =
     470                DCERPC_PFC_FLAG_PENDING_CANCEL_OR_HDR_SIGNING;
     471        const ist DCERPC_PFC_FLAG_SUPPORT_HEADER_SIGN =
     472                DCERPC_PFC_FLAG_PENDING_CANCEL_OR_HDR_SIGNING;
    464473
    465474        /* these offsets are needed by the signing code */
     
    467476        const uint8 DCERPC_DREP_OFFSET     =  4;
    468477        const uint8 DCERPC_FRAG_LEN_OFFSET =  8;
     478
    469479        const uint8 DCERPC_AUTH_LEN_OFFSET = 10;
    470480        const uint8 DCERPC_CALL_ID_OFFSET  = 12;
     481
     482
    471483
    472484        /* little-endian flag */
     
    477489                uint8 rpc_vers_minor;   /* Minor version */
    478490                dcerpc_pkt_type ptype;  /* Packet type */
    479                 uint8 pfc_flags;        /* Fragmentation flags */
     491                /* Fragmentation flags */
    480492                uint8 drep[4];          /* NDR data representation */
    481493                uint16 frag_length;     /* Total length of fragment */
     
    507519                [switch_is(ptype)] dcerpc_payload u;
    508520        } ncadg_packet;
     521
     522
     523
     524
     525
     526
     527
     528
     529
     530
     531
     532
     533
     534
     535
     536
     537
     538
     539
     540
     541
     542
     543
     544
     545
     546
     547
     548
     549
     550
     551
     552
     553
     554
     555
     556
     557
     558
     559
     560
     561
     562
     563
     564
     565
     566
     567
     568
     569
     570
     571
     572
     573
     574
     575
     576
     577
     578
     579
     580
     581
     582
     583
     584
     585
    509586}
  • trunk/server/librpc/idl/idl_types.h

    r918 r920  
    4848#define NDR_RELATIVE_REVERSE LIBNDR_FLAG_RELATIVE_REVERSE
    4949#define NDR_NO_RELATIVE_REVERSE LIBNDR_FLAG_NO_RELATIVE_REVERSE
     50
     51
  • trunk/server/librpc/ndr/libndr.h

    r918 r920  
    125125#define LIBNDR_STRING_FLAGS             (0x7FFC)
    126126
     127
     128
     129
     130
     131
     132
     133