BUG#: 8778
authors.kodali <s.kodali>
Fri, 4 Jun 2010 07:53:03 +0000 (07:53 +0000)
committers.kodali <s.kodali>
Fri, 4 Jun 2010 07:53:03 +0000 (07:53 +0000)
TITLE: Build failure in SSLContext.cpp with latest versions of openSSL

src/Pegasus/Common/SSLContext.cpp

index 16633ef7d74cd9825a0b975d4ad7658d57e8a952..a0a7fffac0bba11010fc06392426420ce47835b8 100644 (file)
@@ -272,8 +272,7 @@ int SSLCallback::verificationCRLCallback(
     X509_REVOKED* revokedCert = NULL;
     for (int i = 0; i < sk_X509_REVOKED_num(revokedCerts); i++)
     {
-        revokedCert = (X509_REVOKED *)sk_value(X509_CRL_get_REVOKED(crl), i);
-
+        revokedCert = sk_X509_REVOKED_value(X509_CRL_get_REVOKED(crl), i);
         //a matching serial number indicates revocation
         if (ASN1_INTEGER_cmp(revokedCert->serialNumber, serialNumber) == 0)
         {