/* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certain software (including but not limited to OpenSSL) that is licensed under separate terms, as designated in a particular file or component or in included license documentation. The authors of MySQL hereby grant you an additional permission to link the program and your derivative works with the separately licensed software that they have included with MySQL. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0, for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include "my_config.h" #include #include "my_dbug.h" #include "my_inttypes.h" #include "mysql/service_plugin_registry.h" #include "plugin/x/src/xpl_performance_schema.h" #include "sql/replication.h" #include "violite.h" #ifdef HAVE_ARPA_INET_H #include #endif #ifdef HAVE_SYS_UN_H #include #endif #if !defined(_WIN32) #include #endif #include const char *my_localhost; std::atomic connection_events_loop_aborted_flag; int ip_to_hostname(struct sockaddr_storage *, const char *, char **, uint *) { DBUG_ASSERT(0); return 1; } int register_server_state_observer(Server_state_observer *, void *) { return 0; } int unregister_server_state_observer(Server_state_observer *, void *) { return 0; } void ssl_wrapper_version(Vio *, char *, const size_t) {} void ssl_wrapper_cipher(Vio *, char *, const size_t) {} long ssl_wrapper_cipher_list(Vio *, const char **, const long) { return 0; } long ssl_wrapper_verify_depth(Vio *) { return 0; } long ssl_wrapper_verify_mode(Vio *) { return 0; } void ssl_wrapper_get_peer_certificate_issuer(Vio *, char *, const size_t) {} void ssl_wrapper_get_peer_certificate_subject(Vio *, char *, const size_t) {} long ssl_wrapper_get_verify_result_and_cert(Vio *) { return 0; } long ssl_wrapper_ctx_verify_depth(struct st_VioSSLFd *) { return 0; } long ssl_wrapper_ctx_verify_mode(struct st_VioSSLFd *) { return 0; } void ssl_wrapper_ctx_server_not_after(struct st_VioSSLFd *, char *, const size_t) {} void ssl_wrapper_ctx_server_not_before(struct st_VioSSLFd *, char *, const size_t) {} void ssl_wrapper_thread_cleanup() {} long ssl_wrapper_sess_accept(struct st_VioSSLFd *) { return 0; } long ssl_wrapper_sess_accept_good(struct st_VioSSLFd *) { return 0; } SERVICE_TYPE(registry) * mysql_plugin_registry_acquire() { return nullptr; } int mysql_plugin_registry_release(SERVICE_TYPE(registry) *) { return 0; } thread_local THD *current_thd = nullptr; THD *thd_get_current_thd() { return current_thd; } bool check_address_is_wildcard(const char *, size_t) { return false; } #ifdef HAVE_SETNS bool set_network_namespace(const std::string &) { return false; } bool restore_original_network_namespace() { return false; } void release_network_namespace_resources() {} #endif