Hi,

I'm building a part of TAO (SSLIOP) requiring openssl. I tried using  
beta 2 but couldn't compile due to a type mismatch. The code look like  
this:


############
  STACK_OF (X509) *certs = ::SSL_get_peer_cert_chain (this->ssl_);
  if (certs == 0)
     return;

  int const chain_length = sk_X509_num (certs); <== Build error line 91

  for (int i = 0; i < chain_length; ++i)
  {
       // Extract the certificate from the OpenSSL X509 stack.
       ::X509 *x = sk_X509_value (certs, i); <== Build error line 100
     // snip lot of code
  }
############

But then Visual Studio complains with this:

SSLIOP_Current_Impl.cpp
.\SSLIOP\SSLIOP_Current_Impl.cpp(91) : error C2664: 'sk_num' : cannot  
convert parameter 1 from 'stack_st_X509 *' to 'const _STACK *'
         Types pointed to are unrelated; conversion requires  
reinterpret_cast, C-style cast or function-style cast
.\SSLIOP\SSLIOP_Current_Impl.cpp(100) : error C2664: 'sk_value' :  
cannot convert parameter 1 from 'stack_st_X509 *' to 'const _STACK *'
         Types pointed to are unrelated; conversion requires  
reinterpret_cast, C-style cast or function-style cast
Build log was saved at "file://c:\ACE_wrappers\TAO\orbsvcs\orbsvcs 
\Release\SSLIOP\I386\BuildLog.htm"
SSLIOP - 2 error(s), 0 warning(s)



Thanks,
   jules

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to