Hello,

[EMAIL PROTECTED] wrote on 04/11/2008 06:05:31 AM:

> Thanks for the reply. I really appreciate it ! I have tried initializing 
the library, 
> but still facing same problem.
> - Is there anyway to decode the error string "error:00000001::lib(0) 
:func(0) :reason
> (1)", to find out what is actually going wrong ? means what does 
reason(1) stands here for ?
> - Is a distributable certificate is must for making a https connection ? 
I have checked 
> with the server owner, as per the feedback they are not using any client 
site 
> certificates & having certificate only on the server side (which I need 
not to worry). 
> By the way we are using same web services, there everything is working 
fine, this 
> problem which i am facing is only on mac.
> 
> Please let me know if there is anything else which I can check here. 
> 
> Here is the code which i have written, rest all code is autogenerated by 
gsoap. thanks
> 
>     SSL_load_error_strings();                /* readable error messages 
*/
>     int value = SSL_library_init();
>     LicenseManagerHttpBinding licenseService;
>     licenseService.endpoint = "
https://10.102.48.28:8443/LicenseManager/services/LicenseManager";;
> 
>     _ns1__Checkout ns1__Checkout;
>     _ns1__CheckoutResponse ns1__CheckoutResponse_;
> 
>     value = licenseService.__ns1__Checkout(&ns1__Checkout, 
&ns1__CheckoutResponse_); // 
> Web Service function call ... which fails as per the details in below 
thread.
 
Try to use something like:

int log_ssl(void)
{
   char buf[256];
   u_long err;

   while ((err = ERR_get_error()) != 0) {
      ERR_error_string_n(err, buf, sizeof(buf));
      printf("*** %s\n", buf);
   }

   return (0);
}

instead of one call to ERR_error_string().
In OpenSSL you have stack of errors and you should print them all.
Next errors may be more informative.

Best regards,
--
Marek Marcola <[EMAIL PROTECTED]>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to