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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
7cf07224
Commit
7cf07224
authored
Mar 29, 2007
by
msvensson@pilot.blaudden
Browse files
Options
Browse Files
Download
Plain Diff
Merge pilot.blaudden:/home/msvensson/mysql/bug24121/my50-bug24121
into pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
parents
eac521a9
ad649e3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
client/mysqltest.c
client/mysqltest.c
+3
-5
sql-common/client.c
sql-common/client.c
+1
-1
No files found.
client/mysqltest.c
View file @
7cf07224
...
...
@@ -3534,7 +3534,7 @@ void do_connect(struct st_command *command)
opt_ssl_capath
,
opt_ssl_cipher
);
#if MYSQL_VERSION_ID >= 50000
/* Turn on ssl_verify_server_cert only if host is "localhost" */
opt_ssl_verify_server_cert
=
!
strcmp
(
ds_
connection_name
.
str
,
"localhost"
);
opt_ssl_verify_server_cert
=
!
strcmp
(
ds_
host
.
str
,
"localhost"
);
mysql_options
(
&
next_con
->
mysql
,
MYSQL_OPT_SSL_VERIFY_SERVER_CERT
,
&
opt_ssl_verify_server_cert
);
#endif
...
...
@@ -6002,15 +6002,13 @@ int main(int argc, char **argv)
#ifdef HAVE_OPENSSL
#if MYSQL_VERSION_ID >= 50000
opt_ssl_verify_server_cert
=
TRUE
;
/* Always on in mysqltest */
#endif
if
(
opt_use_ssl
)
{
mysql_ssl_set
(
&
cur_con
->
mysql
,
opt_ssl_key
,
opt_ssl_cert
,
opt_ssl_ca
,
opt_ssl_capath
,
opt_ssl_cipher
);
#if MYSQL_VERSION_ID >= 50000
/* Turn on ssl_verify_server_cert only if host is "localhost" */
opt_ssl_verify_server_cert
=
opt_host
&&
!
strcmp
(
opt_host
,
"localhost"
);
mysql_options
(
&
cur_con
->
mysql
,
MYSQL_OPT_SSL_VERIFY_SERVER_CERT
,
&
opt_ssl_verify_server_cert
);
#endif
...
...
sql-common/client.c
View file @
7cf07224
...
...
@@ -3022,7 +3022,7 @@ mysql_options(MYSQL *mysql,enum mysql_option option, const char *arg)
mysql
->
reconnect
=
*
(
my_bool
*
)
arg
;
break
;
case
MYSQL_OPT_SSL_VERIFY_SERVER_CERT
:
if
(
!
arg
||
test
(
*
(
uint
*
)
arg
)
)
if
(
*
(
my_bool
*
)
arg
)
mysql
->
options
.
client_flag
|=
CLIENT_SSL_VERIFY_SERVER_CERT
;
else
mysql
->
options
.
client_flag
&=
~
CLIENT_SSL_VERIFY_SERVER_CERT
;
...
...
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