Did you call "SSL_library_init()","SSL_load_error_strings()", etc.?

gary clark <[EMAIL PROTECTED]> wrote:  Hello,

After performing the following:

SSL_CTX * ctx = SSL_CTX_new(SSLv23_client_method());

Huh! Dumped the result of theh failure and errorcode.

The ctx value is:

ctx=0x0

OPENSSL_Uplink(100EA000,07): no OPENSSL_Applink

The above failure of ERR_print_errors_fp(stderr);

Could somebody be so kind to enlighten me on what I'm
doing wrong?

Thanks,
Garyc
--- gary clark wrote:

> Hello,
> 
> Running Windows and built using VC++.
> 
> I have discovered that my SSL_CTX * is null
> when attempting to call:
> 
> SSL_CTX * ctx = SSL_CTX_new(SSLv23_client_method());
> 
> why would this happen? Its a little confusing it
> builds fine.
> 
> Thanks,
> Garyc
> 
> SSL_CTX * ctx = 
> --- gary clark wrote:
> 
> > 
> > Hello,
> > 
> > Took the client and server code from the Network
> > Security with OpenSSL chapter 5. Built the server
> > and
> > client code non-secure. This part worked like a
> > charm.
> > 
> > Having a problem building the secure version. I'm
> > using Windows VC++ and windows and attempting to
> use
> > the 5.5 client. I would like to know where the
> > "client.pem" file and the function provided 
> > "seed_prng" appears to use a unix /dev/random what
> > do
> > I use for windows?
> > 
> > I attempted to use the client.pem file that the
> > openssl-0.9.8e provides. It failed to load the
> > certificate. Is that a valid certificate to use?
> > 
> > Much appreciate any help in advance on this.
> > 
> > Thanks,
> > Garyc
> > 
> > SSL_CTX * setup_client_ctx(void)
> > {
> > SSL_CTX * ctx;
> > 
> > ctx = SSL_CTX_new(SSLv23_method());
> > 
> > if
> > (SSL_CTX_use_certificate_chain_file(ctx,CERTFILE)
> !=
> > 1)
> > printf("Error loading certificate file!");
> > if
> >
>
(SSL_CTX_use_PrivateKey_file(ctx,CERTFILE,SSL_FILETYPE_PEM)!=1)
> > printf("Error loading private key file!");
> > 
> > printf("Successful!");
> > return ctx;
> > }
> >
>
______________________________________________________________________
> > OpenSSL Project 
> > http://www.openssl.org
> > User Support Mailing List 
> > openssl-users@openssl.org
> > Automated List Manager 
> > [EMAIL PROTECTED]
> > 
> 
>
______________________________________________________________________
> OpenSSL Project 
> http://www.openssl.org
> User Support Mailing List 
> openssl-users@openssl.org
> Automated List Manager 
> [EMAIL PROTECTED]
> 

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


 
---------------------------------
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.

Reply via email to