~ubuntu-branches/debian/sid/openchange/sid

« back to all changes in this revision

Viewing changes to mapiproxy/modules/mpm_pack.c

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2012-04-12 20:07:57 UTC
  • mfrom: (11 sid)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20120412200757-k933d9trljmxj1l4
Tags: 1:1.0-4
* openchangeserver: Add dependency on openchangeproxy.
* Rebuild against newer version of Samba 4.
* Use dpkg-buildflags.
* Migrate to Git, update Vcs-Git header.
* Switch to debhelper 9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
   OpenChange Project
5
5
 
6
 
   Copyright (C) Julien Kerihuel 2008-2011
 
6
   Copyright (C) Julien Kerihuel 2008
7
7
 
8
8
   This program is free software; you can redistribute it and/or modify
9
9
   it under the terms of the GNU General Public License as published by
50
50
        size = 0;       
51
51
        request.bin.cb = ndr->offset;
52
52
        size += sizeof (uint16_t);
53
 
        request.bin.lpb = (uint8_t *) talloc_memdup(mem_ctx, ndr->data, ndr->offset);
 
53
        request.bin.lpb = talloc_memdup(mem_ctx, ndr->data, ndr->offset);
54
54
        size += ndr->offset;
55
55
 
56
56
        /* Fill the MAPI_REQ request */
288
288
 */
289
289
static NTSTATUS pack_init(struct dcesrv_context *dce_ctx)
290
290
{
291
 
        char            **calls;
 
291
        char                    **calls;
292
292
        unsigned long           opnum;
293
293
        int                     i;
294
294
        int                     j;
 
295
        struct loadparm_context *lp_ctx;
295
296
 
296
297
        /* Fetch the mapi call list from smb.conf */
297
298
        calls = str_list_make(dce_ctx, lpcfg_parm_string(dce_ctx->lp_ctx, NULL, MPM_NAME, "opnums"), NULL);
322
323
        /* Fetch the lasthop parameter from smb.conf */
323
324
        mpm->lasthop = lpcfg_parm_bool(dce_ctx->lp_ctx, NULL, MPM_NAME, "lasthop", true);
324
325
 
 
326
        lp_ctx = loadparm_init(dce_ctx);
 
327
        lpcfg_load_default(lp_ctx);
325
328
        dcerpc_init();
326
329
 
327
330
        return NT_STATUS_OK;