Re: openssl question on Network Security with OpenSSL book example

2007-05-25 Thread gary clark
Hello, I loaded the key file into the SSL_CTX and that appeared to work i.e client.key. Is this correct? I used the book and thought that CERTFILE,client.pem was being used in the function:SSL_CTX_use_PrivateKey_file. if (SSL_CTX_use_PrivateKey_file(ctx,CERTFILE,SSL_FILETYPE_PEM)!=1)

Re: openssl question on Network Security with OpenSSL book example

2007-05-25 Thread gary clark
Hello, I managed to get past the problem of loading the certificate: I am now calling the below: if (SSL_CTX_use_PrivateKey_file(ctx,CERTFILE,SSL_FILETYPE_PEM)!=1) { ERR_print_errors_fp(stderr); printf("Error loading private key file!"); } I see the follo

Re: openssl question on Network Security with OpenSSL book example

2007-05-25 Thread gary clark
My Bad. I missed the SSL_library_init() call. Sorry. Thanks, Garyc --- david kine <[EMAIL PROTECTED]> wrote: > 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_

Re: openssl question on Network Security with OpenSSL book example

2007-05-25 Thread david kine
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_Uplin

Re: openssl question on Network Security with OpenSSL book example

2007-05-25 Thread gary clark
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

Re: openssl question on Network Security with OpenSSL book example

2007-05-25 Thread gary clark
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]