~ubuntu-branches/ubuntu/karmic/gnupg2/karmic-updates

« back to all changes in this revision

Viewing changes to sm/certcheck.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Urlichs
  • Date: 2006-01-24 04:31:42 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060124043142-pbg192or6qxv3yk2
Tags: 1.9.20-1
* New Upstream version. Closes:#306890,#344530
  * Closes:#320490: gpg-protect-tool fails to decrypt PKCS-12 files 
* Depend on libopensc2-dev, not -1-. Closes:#348106

Show diffs side-by-side

added added

removed removed

Lines of Context:
168
168
  if (!algo)
169
169
    {
170
170
      log_error ("unknown hash algorithm `%s'\n", algoid? algoid:"?");
 
171
      if (algoid
 
172
          && (  !strcmp (algoid, "1.2.840.113549.1.1.2")
 
173
                ||!strcmp (algoid, "1.2.840.113549.2.2")))
 
174
        log_info (_("(this is the MD2 algorithm)\n"));
171
175
      return gpg_error (GPG_ERR_GENERAL);
172
176
    }
173
177
  rc = gcry_md_open (&md, algo, 0);