~ubuntu-branches/ubuntu/breezy/evolution-data-server/breezy

« back to all changes in this revision

Viewing changes to camel/camel-multipart-signed.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-10-10 11:30:56 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051010113056-rb4vj4kbs8yxft85
Tags: 1.4.1-0ubuntu3
* debian/patches/camel-imap-store.c.patch:
  - Ubuntu 17465: apply patch from
  http://bugzilla.gnome.org/attachment.cgi?id=53234&action=view
  (additional NULL pointer check)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * Copyright 2002 Ximian, Inc. (www.ximian.com)
7
7
 *
8
8
 * This program is free software; you can redistribute it and/or
9
 
 * modify it under the terms of version 2 of the GNU General Public
 
9
 * modify it under the terms of version 2 of the GNU Lesser General Public
10
10
 * License as published by the Free Software Foundation.
11
11
 *
12
12
 * This program is distributed in the hope that it will be useful,
13
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 
 * GNU General Public License for more details.
 
15
 * GNU Lesser General Public License for more details.
16
16
 *
17
 
 * You should have received a copy of the GNU General Public License
 
17
 * You should have received a copy of the GNU Lesser General Public License
18
18
 * along with this program; if not, write to the Free Software
19
19
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20
20
 * USA
147
147
/**
148
148
 * camel_multipart_signed_new:
149
149
 *
150
 
 * Create a new CamelMultipartSigned object.
 
150
 * Create a new #CamelMultipartSigned object.
151
151
 *
152
152
 * A MultipartSigned should be used to store and create parts of
153
153
 * type "multipart/signed".  This is because multipart/signed is
160
160
 * set the mime_type appropriately to match the data uses, so
161
161
 * that the multiple parts my be extracted.
162
162
 *
163
 
 * Use construct_from_parser.  The parser MUST be in the CAMEL_MIME_PARSER_STATE_HEADER
 
163
 * Use construct_from_parser.  The parser MUST be in the #CAMEL_MIME_PARSER_STATE_HEADER
164
164
 * state, and the current content_type MUST be "multipart/signed" with
165
165
 * the appropriate boundary and it SHOULD include the appropriate protocol
166
166
 * and hash specifiers.
170
170
 * create a 'transport-safe' version (as safe as can be expected with
171
171
 * such a broken specification).
172
172
 *
173
 
 * Return value: a new CamelMultipartSigned
 
173
 * Returns a new #CamelMultipartSigned object
174
174
 **/
175
175
CamelMultipartSigned *
176
176
camel_multipart_signed_new (void)
569
569
        return total;   
570
570
}
571
571
 
 
572
 
 
573
/**
 
574
 * camel_multipart_signed_get_content_stream:
 
575
 * @mps: a #CamlMultipartSigned object
 
576
 * @ex: a #CamelException
 
577
 *
 
578
 * Get the raw signed content stream of the multipart/signed MIME part
 
579
 * suitable for use with verification of the signature.
 
580
 *
 
581
 * Returns the signed content stream
 
582
 **/
572
583
CamelStream *
573
584
camel_multipart_signed_get_content_stream(CamelMultipartSigned *mps, CamelException *ex)
574
585
{