Skip to content

Commit

Permalink
Merge branch 'mysql-8.0' into mysql-trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
ivo-roylev committed Mar 1, 2018
2 parents 340b516 + 14906d5 commit 7bf9c57
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 18 deletions.
5 changes: 4 additions & 1 deletion include/violite.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,13 @@ extern "C" {
/* Set wolfSSL to use same type as MySQL do for socket handles */
typedef my_socket WOLFSSL_SOCKET_T;
#define WOLFSSL_SOCKET_T_DEFINED

// clang-format off
#include <wolfssl_fix_namespace_pollution_pre.h>
#include <openssl/err.h>
#include <openssl/ssl.h>
#include <wolfssl_fix_namespace_pollution.h>
#include <wolfssl_fix_namespace_pollution_pre.h>
// clang-format on

enum enum_ssl_init_error {
SSL_INITERR_NOERROR = 0,
Expand Down
2 changes: 0 additions & 2 deletions mysys_ssl/crypt_genhash_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
#include <openssl/evp.h>
#include <openssl/rand.h>
#include <openssl/sha.h>
#include <wolfssl_fix_namespace_pollution_pre.h>

#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 0 additions & 2 deletions mysys_ssl/my_rnd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
#include "my_rnd.h"
#include <openssl/err.h>
#include <openssl/rand.h>
#include <wolfssl_fix_namespace_pollution.h>
#include <wolfssl_fix_namespace_pollution_pre.h>
#if !defined(HAVE_OPENSSL)
#error not using an SSL library not supported
#endif
Expand Down
2 changes: 0 additions & 2 deletions plugin/x/client/mysql41_hash.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
#include "plugin/x/client/mysql41_hash.h"

#include <openssl/sha.h>
#include <wolfssl_fix_namespace_pollution.h>
#include <wolfssl_fix_namespace_pollution_pre.h>

int mysql_mysql41_hash_reset(SHA_CTX *context) { return SHA1_Init(context); }

Expand Down
2 changes: 0 additions & 2 deletions plugin/x/client/password_hasher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@

#include <openssl/rand.h>
#include <openssl/sha.h>
#include <wolfssl_fix_namespace_pollution.h>
#include <wolfssl_fix_namespace_pollution_pre.h>

#include "my_dbug.h"
#include "plugin/x/client/mysql41_hash.h"
Expand Down
4 changes: 1 addition & 3 deletions sql/auth/sha2_password.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ class THD;
struct SYS_VAR;

#include <openssl/ssl.h>
#include <wolfssl_fix_namespace_pollution.h>
#include <wolfssl_fix_namespace_pollution_pre.h>

char *caching_sha2_rsa_private_key_path;
char *caching_sha2_rsa_public_key_path;
Expand Down Expand Up @@ -812,7 +810,7 @@ static char perform_full_authentication = '\4';
Plugin caching_sha2_password works in two phases.
1. Fast authentication
2. Complete authentication
If server has cached hash entry for given user in memory, it uses scramble
sent by client to perform fast authentication. If it is a success,
authentication is done and connection will move to command phase. If there
Expand Down
3 changes: 0 additions & 3 deletions sql/auth/sql_authentication.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,10 @@
struct MEM_ROOT;

#if defined(HAVE_OPENSSL)
#include <wolfssl_fix_namespace_pollution_pre.h>

#include <openssl/err.h>
#include <openssl/pem.h>
#include <openssl/rsa.h>
#include <openssl/x509v3.h>
#include <wolfssl_fix_namespace_pollution.h>
#endif /* HAVE_OPENSSL */

/**
Expand Down
3 changes: 1 addition & 2 deletions sql/protocol_classic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,8 @@
#include "sql/protocol_classic.h"

#include <openssl/ssl.h>

#include <string.h>
#include <wolfssl_fix_namespace_pollution.h>
#include <wolfssl_fix_namespace_pollution_pre.h>
#include <algorithm>
#include <limits>

Expand Down
2 changes: 1 addition & 1 deletion vio/vio_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ extern PSI_memory_key key_memory_vio_ssl_fd;
#endif

#ifdef HAVE_WOLFSSL
#include "wolfssl/openssl/ssl.h"

#ifdef ERROR /* check for conflicting ERROR macro from wingdi.h */
#undef ERROR
#endif
Expand Down

0 comments on commit 7bf9c57

Please sign in to comment.