Ignore:
Timestamp:
May 23, 2008, 6:56:41 AM (17 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.29

Location:
branches/samba-3.0/source/rpc_parse
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/rpc_parse/parse_net.c

    r44 r134  
    14311431                         uint32 user_flgs, uint32 acct_flags,
    14321432                         uchar user_session_key[16],
    1433                          uchar lm_session_key[16],
     1433                         uchar lm_session_key[8],
    14341434                         const char *logon_srv, const char *logon_dom,
    14351435                         const DOM_SID *dom_sid)
  • branches/samba-3.0/source/rpc_parse/parse_samr.c

    r124 r134  
    21742174
    21752175/*******************************************************************
     2176inits a SAMR_Q_GET_DISPENUM_INDEX structure.
     2177********************************************************************/
     2178
     2179void init_samr_q_get_dispenum_index(SAMR_Q_GET_DISPENUM_INDEX * q_e, POLICY_HND *pol,
     2180                                    uint16 switch_level, const char *name)
     2181{
     2182        DEBUG(5, ("init_samr_q_get_dispenum_index\n"));
     2183
     2184        q_e->domain_pol = *pol;
     2185
     2186        q_e->switch_level = switch_level;
     2187
     2188        init_lsa_string(&q_e->name, name);
     2189}
     2190
     2191/*******************************************************************
     2192reads or writes a structure.
     2193********************************************************************/
     2194
     2195BOOL samr_io_q_get_dispenum_index(const char *desc, SAMR_Q_GET_DISPENUM_INDEX * q_e,
     2196                                  prs_struct *ps, int depth)
     2197{
     2198        if (q_e == NULL)
     2199                return False;
     2200
     2201        prs_debug(ps, depth, desc, "samr_io_q_get_dispenum_index");
     2202        depth++;
     2203
     2204        if(!prs_align(ps))
     2205                return False;
     2206
     2207        if(!smb_io_pol_hnd("domain_pol", &q_e->domain_pol, ps, depth))
     2208                return False;
     2209
     2210        if(!prs_uint16("switch_level", ps, depth, &q_e->switch_level))
     2211                return False;
     2212
     2213        if (!smb_io_lsa_string("name", &q_e->name, ps, depth))
     2214                return False;
     2215
     2216        return True;
     2217}
     2218
     2219/*******************************************************************
     2220reads or writes a structure.
     2221********************************************************************/
     2222
     2223BOOL samr_io_r_get_dispenum_index(const char *desc, SAMR_R_GET_DISPENUM_INDEX * r_u,
     2224                                  prs_struct *ps, int depth)
     2225{
     2226        if (r_u == NULL)
     2227                return False;
     2228
     2229        prs_debug(ps, depth, desc, "samr_io_r_get_dispenum_index");
     2230        depth++;
     2231
     2232        if(!prs_align(ps))
     2233                return False;
     2234
     2235        if(!prs_uint32("idx", ps, depth, &r_u->idx))
     2236                return False;
     2237       
     2238        if(!prs_ntstatus("status", ps, depth, &r_u->status))
     2239                return False;
     2240
     2241        return True;
     2242}
     2243
     2244
     2245/*******************************************************************
    21762246inits a SAMR_Q_OPEN_GROUP structure.
    21772247********************************************************************/
     
    21862256        q_c->access_mask = access_mask;
    21872257        q_c->rid_group = rid;
     2258}
     2259
     2260/*******************************************************************
     2261inits a SAMR_R_GET_DISPENUM_INDEX structure.
     2262********************************************************************/
     2263
     2264void init_samr_r_get_dispenum_index(SAMR_R_GET_DISPENUM_INDEX * q_e, uint32 idx)
     2265{
     2266        DEBUG(5, ("init_samr_r_get_dispenum_index\n"));
     2267
     2268        q_e->idx = idx;
    21882269}
    21892270
     
    56045685
    56055686/*************************************************************************
    5606  init_sam_user_infoa
     5687 init_sam_user_info24
    56075688 *************************************************************************/
    56085689
  • branches/samba-3.0/source/rpc_parse/parse_spoolss.c

    r44 r134  
    21312131               
    21322132                buffer->string_at_end -= ((*devmode)->size + (*devmode)->driverextra);
    2133                
     2133
     2134                /* mz:  we have to align the device mode for VISTA */
     2135                if (buffer->string_at_end % 4) {
     2136                        buffer->string_at_end += 4 - (buffer->string_at_end % 4);
     2137                }
     2138
    21342139                if(!prs_set_offset(ps, buffer->string_at_end))
    21352140                        return False;
Note: See TracChangeset for help on using the changeset viewer.