MDEV-9314 fatal build error: viosslfactories.c:58:5: error: dereferencing pointer to incomplete type ‘DH {aka struct dh_st}
fixes for openssl that was built with -DOPENSSL_NO_DEPRECATED
This commit is contained in:
parent
db5f743c31
commit
a90da6e053
@ -1254,7 +1254,6 @@ static openssl_lock_t *openssl_dynlock_create(const char *, int);
|
|||||||
static void openssl_dynlock_destroy(openssl_lock_t *, const char *, int);
|
static void openssl_dynlock_destroy(openssl_lock_t *, const char *, int);
|
||||||
static void openssl_lock_function(int, int, const char *, int);
|
static void openssl_lock_function(int, int, const char *, int);
|
||||||
static void openssl_lock(int, openssl_lock_t *, const char *, int);
|
static void openssl_lock(int, openssl_lock_t *, const char *, int);
|
||||||
static unsigned long openssl_id_function();
|
|
||||||
#endif
|
#endif
|
||||||
char *des_key_file;
|
char *des_key_file;
|
||||||
#ifndef EMBEDDED_LIBRARY
|
#ifndef EMBEDDED_LIBRARY
|
||||||
@ -3984,7 +3983,6 @@ static int init_thread_environment()
|
|||||||
CRYPTO_set_dynlock_destroy_callback(openssl_dynlock_destroy);
|
CRYPTO_set_dynlock_destroy_callback(openssl_dynlock_destroy);
|
||||||
CRYPTO_set_dynlock_lock_callback(openssl_lock);
|
CRYPTO_set_dynlock_lock_callback(openssl_lock);
|
||||||
CRYPTO_set_locking_callback(openssl_lock_function);
|
CRYPTO_set_locking_callback(openssl_lock_function);
|
||||||
CRYPTO_set_id_callback(openssl_id_function);
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
mysql_rwlock_init(key_rwlock_LOCK_sys_init_connect, &LOCK_sys_init_connect);
|
mysql_rwlock_init(key_rwlock_LOCK_sys_init_connect, &LOCK_sys_init_connect);
|
||||||
@ -4021,12 +4019,6 @@ static int init_thread_environment()
|
|||||||
|
|
||||||
|
|
||||||
#if defined(HAVE_OPENSSL) && !defined(HAVE_YASSL)
|
#if defined(HAVE_OPENSSL) && !defined(HAVE_YASSL)
|
||||||
static unsigned long openssl_id_function()
|
|
||||||
{
|
|
||||||
return (unsigned long) pthread_self();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static openssl_lock_t *openssl_dynlock_create(const char *file, int line)
|
static openssl_lock_t *openssl_dynlock_create(const char *file, int line)
|
||||||
{
|
{
|
||||||
openssl_lock_t *lock= new openssl_lock_t;
|
openssl_lock_t *lock= new openssl_lock_t;
|
||||||
|
@ -17,6 +17,10 @@
|
|||||||
#include "vio_priv.h"
|
#include "vio_priv.h"
|
||||||
|
|
||||||
#ifdef HAVE_OPENSSL
|
#ifdef HAVE_OPENSSL
|
||||||
|
#ifndef HAVE_YASSL
|
||||||
|
#include <openssl/dh.h>
|
||||||
|
#include <openssl/bn.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
static my_bool ssl_algorithms_added = FALSE;
|
static my_bool ssl_algorithms_added = FALSE;
|
||||||
static my_bool ssl_error_strings_loaded= FALSE;
|
static my_bool ssl_error_strings_loaded= FALSE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user