~ubuntu-branches/ubuntu/feisty/gnupg2/feisty

« back to all changes in this revision

Viewing changes to sm/certcheck.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-11-24 18:48:23 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20061124184823-17ir9m46tl09n9k4
Tags: 2.0.0-4ubuntu1
* Synchronize to Debian, reapply remaining Ubuntu changes to pristine Debian
  version:
  - Remove libpcsclite-dev, libopensc2-dev build dependencies (they are in
    universe).

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        }
55
55
      frame = xtrymalloc (nframe);
56
56
      if (!frame)
57
 
        return OUT_OF_CORE (errno);
 
57
        return out_of_core ();
58
58
      memcpy (frame, gcry_md_read (md, algo), nframe);
59
59
      n = nframe;
60
60
    }
68
68
      nframe = (nbits+7) / 8;
69
69
 
70
70
      asnlen = DIM(asn);
 
71
      if (!algo || gcry_md_test_algo (algo))
 
72
        return gpg_error (GPG_ERR_DIGEST_ALGO);
71
73
      if (gcry_md_algo_info (algo, GCRYCTL_GET_ASNOID, asn, &asnlen))
72
74
        {
73
75
          log_error ("no object identifier for algo %d\n", algo);
91
93
       */
92
94
      frame = xtrymalloc (nframe);
93
95
      if (!frame)
94
 
        return OUT_OF_CORE (errno);
 
96
        return out_of_core ();
95
97
      n = 0;
96
98
      frame[n++] = 0;
97
99
      frame[n++] = 1; /* block type */