Add GOST94-GOST89-GOST89 and other ciphers support

It is done via one-time call OPENSSL_config. It will fix this error
`OpenSSL: error:140920F8:SSL routines:SSL3_GET_SERVER_HELLO:unknown
cipher returned`. OpenSSL with GOST-support and rebuilding wget
required
This commit is contained in:
Nikita Vetrov 2014-06-21 10:34:13 +04:00 committed by Giuseppe Scrivano
parent ca402e2f81
commit 104fd20ac3
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2014-06-21 Nikita Vetrov <admin@kanaria.ru> (tiny change)
* openssl.c: Add one-time call OPENSSL_config in ssl_init.
2014-06-19 Giuseppe Scrivano <gscrivan@redhat.com>
* mswindows.c (fake_fork_child): Revert dinamic allocation of

View File

@ -153,6 +153,9 @@ key_type_to_ssl_type (enum keyfile_type type)
}
}
/* SSL has been initialized */
static int ssl_true_initialized = 0;
/* Create an SSL Context and set default paths etc. Called the first
time an HTTP download is attempted.
@ -161,6 +164,14 @@ key_type_to_ssl_type (enum keyfile_type type)
bool
ssl_init (void)
{
#if OPENSSL_VERSION_NUMBER >= 0x00907000
if (ssl_true_initialized == 0)
{
OPENSSL_config (NULL);
ssl_true_initialized = 1;
}
#endif
SSL_METHOD const *meth;
if (ssl_ctx)