Bodo Moeller wrote:
> 
> You don't check the return values of SSL_CTX_new and SSL_new, which
> both could be NULL.  Before even using SSL_CTX_new, you have to
> initialize the library; e.g. like this:
> 
>     SSL_load_error_strings();
>     ERR_load_crypto_strings();
>     if (!SSL_library_init() /* aka SSLeay_add_ssl_algorithms() */ ) {
>         /* Currently, this cannot happen with OpenSSL. */
>         fprintf(stderr, "%s: SSL_library_init failed.\n", Myname);
>         return 1;
>     }

You were absolutely correct on both counts.  Had I taken the time to 
check the return values of SSL_CTX_new() or SSL_new(), I would have 
caught the fact that SSL_CTX_new() was failing, and thus prevented 
the core dumps.  Also, the missing link was the SSL_library_init() 
function.

My work can continue.  Thank you for your help!
kevin
-- 
Kevin Hendrix            | MCI WorldCom, Inc.
Internet and Intranet    | 500 Clinton Center Drive
    Systems              | Cube 33284
Tel +1 601 460 5708      | Clinton, MS 39056 USA
[EMAIL PROTECTED]
---
"Writing about music is like dancing about architecture."
  -Frank Zappa
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to