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

Samba Server: apply latest security patches to trunk

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/librpc/rpc/rpc_common.h

    r862 r920  
    159159* @return               - A NTSTATUS error code.
    160160*/
    161 NTSTATUS dcerpc_pull_auth_trailer(struct ncacn_packet *pkt,
     161NTSTATUS dcerpc_pull_auth_trailer(const struct ncacn_packet *pkt,
    162162                                  TALLOC_CTX *mem_ctx,
    163                                   DATA_BLOB *pkt_trailer,
     163                                  const DATA_BLOB *pkt_trailer,
    164164                                  struct dcerpc_auth *auth,
    165165                                  uint32_t *auth_length,
    166166                                  bool auth_data_only);
     167NTSTATUS dcerpc_verify_ncacn_packet_header(const struct ncacn_packet *pkt,
     168                                           enum dcerpc_pkt_type ptype,
     169                                           size_t max_auth_info,
     170                                           uint8_t required_flags,
     171                                           uint8_t optional_flags);
    167172struct tevent_req *dcerpc_read_ncacn_packet_send(TALLOC_CTX *mem_ctx,
    168173                                                 struct tevent_context *ev,
     
    297302                                    void *r_ptr);
    298303
     304/**
     305 * Extract header information from a ncacn_packet
     306 * as a dcerpc_sec_vt_header2 as used by the security verification trailer.
     307 *
     308 * @param[in] pkt a packet
     309 *
     310 * @return a dcerpc_sec_vt_header2
     311 */
     312struct dcerpc_sec_vt_header2 dcerpc_sec_vt_header2_from_ncacn_packet(const struct ncacn_packet *pkt);
     313
     314
     315/**
     316 * Test if two dcerpc_sec_vt_header2 structures are equal
     317 * without consideration of reserved fields.
     318 *
     319 * @param v1 a pointer to a dcerpc_sec_vt_header2 structure
     320 * @param v2 a pointer to a dcerpc_sec_vt_header2 structure
     321 *
     322 * @retval true if *v1 equals *v2
     323 */
     324bool dcerpc_sec_vt_header2_equal(const struct dcerpc_sec_vt_header2 *v1,
     325                                 const struct dcerpc_sec_vt_header2 *v2);
     326
     327/**
     328 * Check for consistency of the security verification trailer with the PDU header.
     329 * See <a href="http://msdn.microsoft.com/en-us/library/cc243559.aspx">MS-RPCE 2.2.2.13</a>.
     330 * A check with an empty trailer succeeds.
     331 *
     332 * @param[in] vt a pointer to the security verification trailer.
     333 * @param[in] bitmask1 which flags were negotiated on the connection.
     334 * @param[in] pcontext the syntaxes negotiatied for the presentation context.
     335 * @param[in] header2 some fields from the PDU header.
     336 *
     337 * @retval true on success.
     338 */
     339bool dcerpc_sec_verification_trailer_check(
     340                const struct dcerpc_sec_verification_trailer *vt,
     341                const uint32_t *bitmask1,
     342                const struct dcerpc_sec_vt_pcontext *pcontext,
     343                const struct dcerpc_sec_vt_header2 *header2);
     344
    299345#endif /* __DEFAULT_LIBRPC_RPCCOMMON_H__ */
Note: See TracChangeset for help on using the changeset viewer.