UlricE / pen

Pen
Other
250 stars 41 forks source link

ssl: add compatibility with OpenSSL 1.1.0 #34

Closed vincentbernat closed 7 years ago

vincentbernat commented 7 years ago

From here, most structures are opaque structs and we need to use accessor methods. Some functions are depreacted, notably RSA_generate_key() (replaced by RSA_generate_key_ex()).

TLSv1_method() is also deprecated. It should be replaced by TLS_method() which is equivalent to SSLv23_method(). Therefore, we only use SSLv23_method() and we use options to disable SSLv2 and SSLv3 as requested.

The code still works with OpenSSL 1.0.2j. I can test with older versions if needed. What would be the minimal supported version?

Fix #28.

UlricE commented 7 years ago

Thanks, merged.