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
6b900330
Commit
6b900330
authored
Sep 22, 2023
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show in mariadb cli whether server cert was verified
parent
853bdf57
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
2 deletions
+29
-2
client/mysql.cc
client/mysql.cc
+2
-2
mysql-test/main/mysql.result
mysql-test/main/mysql.result
+15
-0
mysql-test/main/mysql.test
mysql-test/main/mysql.test
+12
-0
No files found.
client/mysql.cc
View file @
6b900330
...
...
@@ -5049,8 +5049,8 @@ com_status(String *buffer __attribute__((unused)),
#if defined(HAVE_OPENSSL) && !defined(EMBEDDED_LIBRARY)
if
((
status_str
=
mysql_get_ssl_cipher
(
&
mysql
)))
tee_fprintf
(
stdout
,
"SSL:
\t\t\t
Cipher in use is %s
\n
"
,
status_str
);
tee_fprintf
(
stdout
,
"SSL:
\t\t\t
Cipher in use is %s
, cert is %s
\n
"
,
status_str
,
opt_ssl_verify_server_cert
?
"OK"
:
"UNKNOWN"
);
else
#endif
/* HAVE_OPENSSL && !EMBEDDED_LIBRARY */
tee_puts
(
"SSL:
\t\t\t
Not in use"
,
stdout
);
...
...
mysql-test/main/mysql.result
View file @
6b900330
...
...
@@ -640,3 +640,18 @@ WARNING: option --enable-cleartext-plugin is obsolete.
#
# MDEV-30327 Client crashes in print_last_query_cost
#
#
# show whether server cert was verified
#
create user ser@localhost identified by "ass";
MYSQL --disable-ssl-verify-server-cert -e "\s"
SSL: Cipher in use is XXX, cert is UNKNOWN
MYSQL --ssl-verify-server-cert -e "\s"
SSL: Cipher in use is XXX, cert is OK
drop user ser@localhost;
mysql-test/main/mysql.test
View file @
6b900330
...
...
@@ -725,3 +725,15 @@ drop table t1;
--exec
$MYSQL
--show-query-costs --port=
$MASTER_MYPORT
-e "
show
tables
in
mysql
like
'foo'
"
--enable_result_log
--enable_query_log
--echo #
--echo # show whether server cert was verified
--echo #
create user ser@localhost identified by "
ass
";
--echo MYSQL --disable-ssl-verify-server-cert -e "
\
\s
"
--replace_regex /^.[^S].*// /\b[-A-Z_0-9]+,/XXX,/
--exec
$MYSQL
-user -pass --disable-ssl-verify-server-cert -e "
\
\s
"
--echo MYSQL --ssl-verify-server-cert -e "
\
\s
"
--replace_regex /^.[^S].*// /\b[-A-Z_0-9]+,/XXX,/
--exec
$MYSQL
-user -pass --ssl-verify-server-cert -e "
\
\s
"
drop user ser@localhost;
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