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 <[EMAIL PROTECTED]> 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]