~ubuntu-branches/ubuntu/raring/nss/raring-security

« back to all changes in this revision

Viewing changes to mozilla/security/nss/lib/cryptohi/secsign.c

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2010-03-25 13:46:06 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20100325134606-bl6liuok2w9l7snv
Tags: 3.12.6-0ubuntu1
* New upstream release 3.12.6 RTM (NSS_3_12_6_RTM)
  - fixes CVE-2009-3555 aka US-CERT VU#120541
* Adjust patches to changed upstream code base
  - update debian/patches/38_kbsd.patch
  - update debian/patches/38_mips64_build.patch
  - update debian/patches/85_security_load.patch
* Remove patches that are merged upstream
  - delete debian/patches/91_nonexec_stack.patch
  - update debian/patches/series
* Bump nspr dependency to 4.8
  - update debian/control
* Add new symbols for 3.12.6
  - update debian/libnss3-1d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 * the terms of any one of the MPL, the GPL or the LGPL.
38
38
 *
39
39
 * ***** END LICENSE BLOCK ***** */
40
 
/* $Id: secsign.c,v 1.20 2007/11/07 02:37:21 julien.pierre.boogz%sun.com Exp $ */
 
40
/* $Id: secsign.c,v 1.22 2010/02/10 00:49:43 wtc%google.com Exp $ */
41
41
 
42
42
#include <stdio.h>
43
43
#include "cryptohi.h"
140
140
}
141
141
 
142
142
SECStatus
143
 
SGN_Update(SGNContext *cx, unsigned char *input, unsigned inputLen)
 
143
SGN_Update(SGNContext *cx, const unsigned char *input, unsigned int inputLen)
144
144
{
145
145
    if (cx->hashcx == NULL) {
146
146
        PORT_SetError(SEC_ERROR_INVALID_ARGS);
277
277
** signature. Returns zero on success, an error code on failure.
278
278
*/
279
279
SECStatus
280
 
SEC_SignData(SECItem *res, unsigned char *buf, int len,
 
280
SEC_SignData(SECItem *res, const unsigned char *buf, int len,
281
281
             SECKEYPrivateKey *pk, SECOidTag algid)
282
282
{
283
283
    SECStatus rv;