Fix for older gcc?
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Wed, 7 Apr 2004 19:40:58 +0000 (19:40 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Wed, 7 Apr 2004 19:40:58 +0000 (19:40 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@945 cb58f699-b61c-0410-a6fe-9272a202ed29

xmlproviders/XMLTrust.cpp

index 3b376a2..c013d7e 100644 (file)
@@ -465,7 +465,7 @@ bool XMLTrust::attach(const Iterator<IRevocation*>& revocations, const IProvider
         
             // Apply store to this context.
             SSL_CTX_set_verify(reinterpret_cast<SSL_CTX*>(ctx),SSL_VERIFY_PEER,logging_callback);
-            SSL_CTX_set_cert_verify_callback(reinterpret_cast<SSL_CTX*>(ctx),verify_callback,NULL);
+            SSL_CTX_set_cert_verify_callback(reinterpret_cast<SSL_CTX*>(ctx),reinterpret_cast<int (*)()>(verify_callback),NULL);
             SSL_CTX_set_cert_store(reinterpret_cast<SSL_CTX*>(ctx),store);
             SSL_CTX_set_verify_depth(reinterpret_cast<SSL_CTX*>(ctx),kauth->m_depth);
         }