mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 11:27:39 +02:00
Bug #11286 yassl incompatible with "load data infile"
- Make sure that mysqltest always uses ssl when connecting to the server. - Pass a i32-bit int variable as argument to FIONREAD ioctl.
This commit is contained in:
parent
f34398ba65
commit
8c0f7f82d9
5 changed files with 13 additions and 15 deletions
|
|
@ -283,9 +283,10 @@ int sslaccept(struct st_VioSSLAcceptorFd* ptr, Vio* vio, long timeout)
|
|||
X509* client_cert;
|
||||
my_bool unused;
|
||||
my_bool net_blocking;
|
||||
enum enum_vio_type old_type;
|
||||
enum enum_vio_type old_type;
|
||||
DBUG_ENTER("sslaccept");
|
||||
DBUG_PRINT("enter", ("sd: %d ptr: Ox%p", vio->sd,ptr));
|
||||
DBUG_PRINT("enter", ("sd: %d ptr: Ox%p, timeout: %d",
|
||||
vio->sd, ptr, timeout));
|
||||
|
||||
old_type= vio->type;
|
||||
net_blocking = vio_is_blocking(vio);
|
||||
|
|
@ -379,7 +380,7 @@ int sslconnect(struct st_VioSSLConnectorFd* ptr, Vio* vio, long timeout)
|
|||
(SSL*) vio->ssl_arg, timeout));
|
||||
SSL_clear((SSL*) vio->ssl_arg);
|
||||
SSL_SESSION_set_timeout(SSL_get_session((SSL*) vio->ssl_arg), timeout);
|
||||
SSL_set_fd ((SSL*) vio->ssl_arg, vio->sd);
|
||||
SSL_set_fd ((SSL*) vio->ssl_arg, vio_ssl_fd(vio));
|
||||
SSL_set_connect_state((SSL*) vio->ssl_arg);
|
||||
if (SSL_do_handshake((SSL*) vio->ssl_arg) < 1)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -219,9 +219,6 @@ new_VioSSLConnectorFd(const char* key_file,
|
|||
int result;
|
||||
DH *dh;
|
||||
DBUG_ENTER("new_VioSSLConnectorFd");
|
||||
DBUG_PRINT("enter",
|
||||
("key_file: %s, cert_file: %s, ca_path: %s, ca_file: %s, cipher: %s",
|
||||
key_file, cert_file, ca_path, ca_file, cipher));
|
||||
|
||||
if (!(ptr=((struct st_VioSSLConnectorFd*)
|
||||
my_malloc(sizeof(struct st_VioSSLConnectorFd),MYF(0)))))
|
||||
|
|
@ -314,9 +311,6 @@ new_VioSSLAcceptorFd(const char *key_file,
|
|||
int result;
|
||||
DH *dh;
|
||||
DBUG_ENTER("new_VioSSLAcceptorFd");
|
||||
DBUG_PRINT("enter",
|
||||
("key_file: %s, cert_file: %s, ca_path: %s, ca_file: %s, cipher: %s",
|
||||
key_file, cert_file, ca_path, ca_file, cipher));
|
||||
|
||||
ptr= ((struct st_VioSSLAcceptorFd*)
|
||||
my_malloc(sizeof(struct st_VioSSLAcceptorFd),MYF(0)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue