Re: SSL pointer is NULL after BIO_get_ssl call

2010-08-19 Thread Kyrylo V. Polezhaiev
Sorry, first mistake was semicolon after if (connection->ssl == NULL); > Hello, > > I am developing an client application using OpenSSL C API. I have an > error in the this code: > > /* connection struct consists of SSL_CTX, SSL and BIO pointers */ > ... > connection->ctx = SSL_CTX_new(

SSL pointer is NULL after BIO_get_ssl call

2010-08-19 Thread Kyrylo V. Polezhaiev
Hello, I am developing an client application using OpenSSL C API. I have an error in the this code: /* connection struct consists of SSL_CTX, SSL and BIO pointers */ ... connection->ctx = SSL_CTX_new(SSLv23_client_method()); if (connection->ctx == NULL) { DEBUG_MESSAGE("SSL_CT

SSL pointer is NULL after BIO_get_ssl call

2010-08-19 Thread Kyrylo V. Polezhaiev
Hello, I am developing an client application using OpenSSL C API. I have an error in the this code: /* connection struct consists of SSL_CTX, SSL and BIO pointers */ ... connection->ctx = SSL_CTX_new(SSLv23_client_method()); if (connection->ctx == NULL) { DEBUG_MESSAGE("SSL_CT