]> gitweb.factorcode.org Git - factor.git/commit
openssl: only set RSA keys if required to do so 1532/head
authorBenjamin Pollack <benjamin@bitquabit.com>
Tue, 23 Feb 2016 13:09:07 +0000 (08:09 -0500)
committerBenjamin Pollack <benjamin@bitquabit.com>
Tue, 23 Feb 2016 13:11:04 +0000 (08:11 -0500)
commit12af22f3ee80f10800c5dc8b57e1b0ff4ae6fae8
treeeeaf1973df583ce15e3f47c76e09cb634baf6c60
parent8073c8a77ebe92afd120d8e3cb89fdab96d0dba1
openssl: only set RSA keys if required to do so

Modern OpenSSL and LibreSSL both do not require SSL_CTX_set_tmp_rsa to
be called unless SSL_CTX_need_tmp_rsa returns true, and LibreSSL and
OpenSSL compiled with deprecation warnings both will fail if this
happens. This commit resolves that.

With this change, it becomes possible to use LibreSSL in place of
OpenSSL with Factor.
basis/io/sockets/secure/openssl/openssl.factor
basis/openssl/libssl/libssl.factor