~ubuntu-branches/ubuntu/precise/gnupg2/precise-proposed

« back to all changes in this revision

Viewing changes to sm/certcheck.c

  • Committer: Bazaar Package Importer
  • Author(s): Eric Dorland
  • Date: 2009-03-08 22:46:47 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20090308224647-gq17gatcl71lrc2k
Tags: 2.0.11-1
* New upstream release. (Closes: #496663)
* debian/control: Make the description a little more distinctive than
  gnupg v1's. Thanks Jari Aalto. (Closes: #496323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include "i18n.h"
35
35
 
36
36
 
37
 
/* Remove this if libgcrypt 1.3.0 is required. */
38
 
#define MY_GCRY_PK_ECDSA  301
39
 
 
40
 
 
41
37
/* Return the number of bits of the Q parameter from the DSA key
42
38
   KEY.  */
43
39
static unsigned int
75
71
  size_t nframe;
76
72
  unsigned char *frame;
77
73
 
78
 
  if (pkalgo == GCRY_PK_DSA || pkalgo == MY_GCRY_PK_ECDSA)
 
74
  if (pkalgo == GCRY_PK_DSA || pkalgo == GCRY_PK_ECDSA)
79
75
    {
80
76
      unsigned int qbits;
81
77
 
82
 
      if ( pkalgo == MY_GCRY_PK_ECDSA )
 
78
      if ( pkalgo == GCRY_PK_ECDSA )
83
79
        qbits = gcry_pk_get_nbits (pkey);
84
80
      else
85
81
        qbits = get_dsa_qbits (pkey);
214
210
  /* Because this function is called only for verification we can
215
211
     assume that ECC actually means ECDSA.  */
216
212
  else if (n==3 && !memcmp (name, "ecc", 3))
217
 
    algo = MY_GCRY_PK_ECDSA;
 
213
    algo = GCRY_PK_ECDSA;
218
214
  else if (n==13 && !memcmp (name, "ambiguous-rsa", 13))
219
215
    algo = GCRY_PK_RSA;
220
216
  else