~andersk/ubuntu/oneiric/openssl/spurious-reboot

« back to all changes in this revision

Viewing changes to crypto/ocsp/ocsp_vfy.c

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2010-12-12 15:37:21 UTC
  • mto: (1.2.1 upstream) (11.2.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 55.
  • Revision ID: james.westby@ubuntu.com-20101212153721-mfw51stum5hwztpd
Tags: upstream-1.0.0c
ImportĀ upstreamĀ versionĀ 1.0.0c

Show diffs side-by-side

added added

removed removed

Lines of Context:
308
308
                        }
309
309
 
310
310
                mdlen = EVP_MD_size(dgst);
 
311
                if (mdlen < 0)
 
312
                    return -1;
311
313
                if ((cid->issuerNameHash->length != mdlen) ||
312
314
                   (cid->issuerKeyHash->length != mdlen))
313
315
                        return 0;
316
318
                        return -1;
317
319
                if (memcmp(md, cid->issuerNameHash->data, mdlen))
318
320
                        return 0;
319
 
                X509_pubkey_digest(cert, EVP_sha1(), md, NULL);
 
321
                X509_pubkey_digest(cert, dgst, md, NULL);
320
322
                if (memcmp(md, cid->issuerKeyHash->data, mdlen))
321
323
                        return 0;
322
324