~ubuntu-branches/ubuntu/quantal/gnutls28/quantal

« back to all changes in this revision

Viewing changes to lib/openpgp/gnutls_openpgp.c

  • Committer: Package Import Robot
  • Author(s): Andreas Metzler
  • Date: 2012-01-06 08:52:19 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20120106085219-cbuka2rdt46tb4w4
Tags: 3.0.10-1
* Drop guile-gnutls.README.Debian - binary guile modules are no longer
  directly installed in $libdir.
* New upstream version.
  + Drop patches/30_correctly-set-the-odd-bits.patch.
  + gnutls_random_art() added. Update copyright, bump shlibs.
  + src/serv.c: Only use configured interfaces. Patch by Pino Toscano.
    Closes: #652552

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
3
 
 * Free Software Foundation, Inc.
 
2
 * Copyright (C) 2002-2011 Free Software Foundation, Inc.
4
3
 *
5
4
 * Author: Timo Schulz, Nikos Mavrogiannopoulos
6
5
 *
45
44
    {
46
45
    case CDK_Success:
47
46
      return 0;
 
47
    case CDK_EOF:
 
48
      return GNUTLS_E_PARSING_ERROR;
48
49
    case CDK_Too_Short:
49
50
      return GNUTLS_E_SHORT_MEMORY_BUFFER;
50
51
    case CDK_General_Error:
499
500
      return 0;
500
501
    }
501
502
 
502
 
  if (cdk_kbnode_read_from_mem (&knode, cert->data, cert->size))
 
503
  if (cdk_kbnode_read_from_mem (&knode, 0, cert->data, cert->size))
503
504
    {
504
505
      gnutls_assert ();
505
506
      return 0;