views:

26

answers:

0

I am trying to compile a small .c file which uses OpenSSL includes, at first I had problems compiling but I solved it installing libssl-dev and that solved the include errors.

But now when I try to compile I get:

‘ssl_conn’ has no member named ‘encrypted’
‘ssl_conn’ has no member named ‘write_seq’
‘ssl_conn’ has no member named ‘read_seq’

The code for the lines of the error is:

ssl_conn* sslCon;
sslCon->encrypted = 0;
sslCon->write_seq = 0;
sslCon->read_seq = 0;

A friend told me it could be because the .c file was coded for an old version of OpenSSL, but I am not sure. Does someone knows what could be causing this and how to solve it?