~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to crypto/x509/x509_vfy.c

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Martin
  • Date: 2004-12-16 18:41:29 UTC
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20041216184129-z7xjkul57mh1jiha
Tags: upstream-0.9.7e
ImportĀ upstreamĀ versionĀ 0.9.7e

Show diffs side-by-side

added added

removed removed

Lines of Context:
627
627
        X509_EXTENSION *ext;
628
628
        /* Look for serial number of certificate in CRL */
629
629
        rtmp.serialNumber = X509_get_serialNumber(x);
 
630
        /* Sort revoked into serial number order if not already sorted.
 
631
         * Do this under a lock to avoid race condition.
 
632
         */
 
633
        if (!sk_X509_REVOKED_is_sorted(crl->crl->revoked))
 
634
                {
 
635
                CRYPTO_w_lock(CRYPTO_LOCK_X509_CRL);
 
636
                sk_X509_REVOKED_sort(crl->crl->revoked);
 
637
                CRYPTO_w_unlock(CRYPTO_LOCK_X509_CRL);
 
638
                }
630
639
        idx = sk_X509_REVOKED_find(crl->crl->revoked, &rtmp);
631
640
        /* If found assume revoked: want something cleverer than
632
641
         * this to handle entry extensions in V2 CRLs.