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
921cae2c
Commit
921cae2c
authored
Sep 01, 2001
by
tonu@x153.internalnet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SSL fixes
parent
de70f2c6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
24 deletions
+46
-24
client/mysql.cc
client/mysql.cc
+1
-1
mysql-test/r/ssl.result
mysql-test/r/ssl.result
+16
-0
mysql-test/t/ssl.test
mysql-test/t/ssl.test
+4
-0
sql/sql_show.cc
sql/sql_show.cc
+25
-23
No files found.
client/mysql.cc
View file @
921cae2c
...
...
@@ -329,7 +329,7 @@ int main(int argc,char *argv[])
put_info
((
char
*
)
glob_buffer
.
ptr
(),
INFO_INFO
);
#ifdef HAVE_OPENSSL
if
(
SSL_get_cipher
(
mysql
.
net
.
vio
->
ssl_
))
{
if
(
mysql
.
net
.
vio
->
ssl_
&&
SSL_get_cipher
(
mysql
.
net
.
vio
->
ssl_
))
{
sprintf
((
char
*
)
glob_buffer
.
ptr
(),
"SSL cipher in use is %s
\n
"
,
SSL_get_cipher
(
mysql
.
net
.
vio
->
ssl_
));
put_info
((
char
*
)
glob_buffer
.
ptr
(),
INFO_INFO
);
...
...
mysql-test/r/ssl.result
0 → 100644
View file @
921cae2c
Variable_name Value
SSL_CTX_sess_accept 0
SSL_CTX_sess_accept_good 0
SSL_CTX_sess_accept_renegotiate 0
SSL_CTX_sess_cb_hits 0
SSL_CTX_sess_number 0
SSL_CTX_get_session_cache_mode SERVER
SSL_CTX_sess_get_cache_size 128
SSL_CTX_get_verify_mode 7
SSL_CTX_get_verify_depth 4294967295
SSL_get_verify_mode 0
SSL_get_verify_depth 0
SSL_session_reused 0
SSL_get_version
SSL_get_cipher
SSL_get_default_timeout 0
mysql-test/t/ssl.test
0 → 100644
View file @
921cae2c
SHOW
STATUS
LIKE
'SSL%'
;
sql/sql_show.cc
View file @
921cae2c
...
...
@@ -1155,6 +1155,7 @@ int mysqld_show(THD *thd, const char *wild, show_var_st *variables)
break
;
}
#ifdef HAVE_OPENSSL
/* First group - functions relying on CTX */
case
SHOW_SSL_CTX_SESS_ACCEPT
:
net_store_data
(
&
packet2
,(
uint32
)
SSL_CTX_sess_accept
(
ssl_acceptor_fd
->
ssl_context_
));
...
...
@@ -1167,10 +1168,6 @@ int mysqld_show(THD *thd, const char *wild, show_var_st *variables)
net_store_data
(
&
packet2
,(
uint32
)
SSL_CTX_sess_accept_renegotiate
(
ssl_acceptor_fd
->
ssl_context_
));
break
;
case
SHOW_SSL_GET_VERSION
:
net_store_data
(
&
packet2
,
SSL_get_version
(
thd
->
net
.
vio
->
ssl_
));
break
;
case
SHOW_SSL_CTX_SESS_CB_HITS
:
net_store_data
(
&
packet2
,(
uint32
)
SSL_CTX_sess_cb_hits
(
ssl_acceptor_fd
->
ssl_context_
));
...
...
@@ -1179,14 +1176,6 @@ int mysqld_show(THD *thd, const char *wild, show_var_st *variables)
net_store_data
(
&
packet2
,(
uint32
)
SSL_CTX_sess_number
(
ssl_acceptor_fd
->
ssl_context_
));
break
;
case
SHOW_SSL_SESSION_REUSED
:
net_store_data
(
&
packet2
,(
uint32
)
SSL_session_reused
(
thd
->
net
.
vio
->
ssl_
));
break
;
case
SHOW_SSL_GET_DEFAULT_TIMEOUT
:
net_store_data
(
&
packet2
,(
uint32
)
SSL_get_default_timeout
(
thd
->
net
.
vio
->
ssl_
));
break
;
case
SHOW_SSL_CTX_SESS_GET_CACHE_SIZE
:
net_store_data
(
&
packet2
,(
uint32
)
SSL_CTX_sess_get_cache_size
(
ssl_acceptor_fd
->
ssl_context_
));
...
...
@@ -1195,21 +1184,10 @@ int mysqld_show(THD *thd, const char *wild, show_var_st *variables)
net_store_data
(
&
packet2
,(
uint32
)
SSL_CTX_get_verify_mode
(
ssl_acceptor_fd
->
ssl_context_
));
break
;
case
SHOW_SSL_GET_VERIFY_MODE
:
net_store_data
(
&
packet2
,(
uint32
)
SSL_get_verify_mode
(
thd
->
net
.
vio
->
ssl_
));
break
;
case
SHOW_SSL_CTX_GET_VERIFY_DEPTH
:
net_store_data
(
&
packet2
,(
uint32
)
SSL_CTX_get_verify_depth
(
ssl_acceptor_fd
->
ssl_context_
));
break
;
case
SHOW_SSL_GET_VERIFY_DEPTH
:
net_store_data
(
&
packet2
,(
uint32
)
SSL_get_verify_depth
(
thd
->
net
.
vio
->
ssl_
));
break
;
case
SHOW_SSL_GET_CIPHER
:
net_store_data
(
&
packet2
,
SSL_get_cipher
(
thd
->
net
.
vio
->
ssl_
));
break
;
case
SHOW_SSL_CTX_GET_SESSION_CACHE_MODE
:
switch
(
SSL_CTX_get_session_cache_mode
(
ssl_acceptor_fd
->
ssl_context_
))
{
...
...
@@ -1236,6 +1214,30 @@ int mysqld_show(THD *thd, const char *wild, show_var_st *variables)
break
;
}
break
;
/* First group - functions relying on SSL */
case
SHOW_SSL_GET_VERSION
:
net_store_data
(
&
packet2
,
thd
->
net
.
vio
->
ssl_
?
SSL_get_version
(
thd
->
net
.
vio
->
ssl_
)
:
""
);
break
;
case
SHOW_SSL_SESSION_REUSED
:
net_store_data
(
&
packet2
,(
uint32
)
(
thd
->
net
.
vio
->
ssl_
?
SSL_session_reused
(
thd
->
net
.
vio
->
ssl_
)
:
0
));
break
;
case
SHOW_SSL_GET_DEFAULT_TIMEOUT
:
net_store_data
(
&
packet2
,(
uint32
)
(
thd
->
net
.
vio
->
ssl_
?
SSL_get_default_timeout
(
thd
->
net
.
vio
->
ssl_
)
:
0
));
break
;
case
SHOW_SSL_GET_VERIFY_MODE
:
net_store_data
(
&
packet2
,(
uint32
)
(
thd
->
net
.
vio
->
ssl_
?
SSL_get_verify_mode
(
thd
->
net
.
vio
->
ssl_
)
:
0
));
break
;
case
SHOW_SSL_GET_VERIFY_DEPTH
:
net_store_data
(
&
packet2
,(
uint32
)
(
thd
->
net
.
vio
->
ssl_
?
SSL_get_verify_depth
(
thd
->
net
.
vio
->
ssl_
)
:
0
));
break
;
case
SHOW_SSL_GET_CIPHER
:
net_store_data
(
&
packet2
,
thd
->
net
.
vio
->
ssl_
?
SSL_get_cipher
(
thd
->
net
.
vio
->
ssl_
)
:
""
);
break
;
#endif
/* HAVE_OPENSSL */
}
...
...
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