Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
f5db9c9a
Commit
f5db9c9a
authored
Sep 01, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into neptunus.(none):/home/msvensson/mysql/mysql-5.0
parents
ebfa6c2d
fee8f2d2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
15 deletions
+13
-15
client/mysqltest.c
client/mysqltest.c
+1
-1
extra/yassl/src/socket_wrapper.cpp
extra/yassl/src/socket_wrapper.cpp
+6
-2
sql/sql_parse.cc
sql/sql_parse.cc
+2
-3
vio/viossl.c
vio/viossl.c
+4
-3
vio/viosslfactories.c
vio/viosslfactories.c
+0
-6
No files found.
client/mysqltest.c
View file @
f5db9c9a
...
...
@@ -1741,7 +1741,7 @@ int safe_connect(MYSQL* con, const char* host, const char* user,
for
(
i
=
0
;
i
<
MAX_CON_TRIES
;
++
i
)
{
if
(
mysql_real_connect
(
con
,
host
,
user
,
pass
,
db
,
port
,
sock
,
CLIENT_MULTI_STATEMENTS
))
CLIENT_MULTI_STATEMENTS
|
CLIENT_REMEMBER_OPTIONS
))
{
con_error
=
0
;
break
;
...
...
extra/yassl/src/socket_wrapper.cpp
View file @
f5db9c9a
...
...
@@ -93,11 +93,15 @@ void Socket::closeSocket()
uint
Socket
::
get_ready
()
const
{
unsigned
long
ready
=
0
;
#ifdef _WIN32
unsigned
long
ready
=
0
;
ioctlsocket
(
socket_
,
FIONREAD
,
&
ready
);
#else
/*
64-bit Solaris requires the variable passed to
FIONREAD be a 32-bit value.
*/
int
ready
=
0
;
ioctl
(
socket_
,
FIONREAD
,
&
ready
);
#endif
...
...
sql/sql_parse.cc
View file @
f5db9c9a
...
...
@@ -919,8 +919,7 @@ static int check_connection(THD *thd)
DBUG_PRINT
(
"info"
,
(
"IO layer change in progress..."
));
if
(
sslaccept
(
ssl_acceptor_fd
,
net
->
vio
,
thd
->
variables
.
net_wait_timeout
))
{
DBUG_PRINT
(
"error"
,
(
"Failed to read user information (pkt_len= %lu)"
,
pkt_len
));
DBUG_PRINT
(
"error"
,
(
"Failed to accept new SSL connection"
));
inc_host_errors
(
&
thd
->
remote
.
sin_addr
);
return
(
ER_HANDSHAKE_ERROR
);
}
...
...
@@ -3468,7 +3467,7 @@ mysql_execute_command(THD *thd)
if
(
lex
->
local_file
)
{
if
(
!
(
thd
->
client_capabilities
&
CLIENT_LOCAL_FILES
)
||
!
opt_local_infile
)
!
opt_local_infile
)
{
my_message
(
ER_NOT_ALLOWED_COMMAND
,
ER
(
ER_NOT_ALLOWED_COMMAND
),
MYF
(
0
));
goto
error
;
...
...
vio/viossl.c
View file @
f5db9c9a
...
...
@@ -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
)
{
...
...
vio/viosslfactories.c
View file @
f5db9c9a
...
...
@@ -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
)));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment