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
24805fc7
Commit
24805fc7
authored
Nov 01, 2001
by
tonu@volk.internalnet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SSL fixes.
parent
f77c684b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
client/mysql.cc
client/mysql.cc
+7
-0
include/sslopt-case.h
include/sslopt-case.h
+1
-2
vio/viossl.c
vio/viossl.c
+2
-2
No files found.
client/mysql.cc
View file @
24805fc7
...
@@ -379,6 +379,13 @@ int main(int argc,char *argv[])
...
@@ -379,6 +379,13 @@ int main(int argc,char *argv[])
sig_handler
mysql_end
(
int
sig
)
sig_handler
mysql_end
(
int
sig
)
{
{
mysql_close
(
&
mysql
);
mysql_close
(
&
mysql
);
#ifdef HAVE_OPENSSL
my_free
(
opt_ssl_key
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
(
opt_ssl_cert
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
(
opt_ssl_ca
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
(
opt_ssl_capath
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
(
opt_ssl_cipher
,
MYF
(
MY_ALLOW_ZERO_PTR
));
#endif
#ifdef HAVE_READLINE
#ifdef HAVE_READLINE
if
(
!
status
.
batch
&&
!
quick
&&
!
opt_html
&&
!
opt_xml
)
if
(
!
status
.
batch
&&
!
quick
&&
!
opt_html
&&
!
opt_xml
)
{
{
...
...
include/sslopt-case.h
View file @
24805fc7
...
@@ -37,12 +37,11 @@
...
@@ -37,12 +37,11 @@
case
OPT_SSL_CAPATH
:
case
OPT_SSL_CAPATH
:
opt_use_ssl
=
1
;
/* true */
opt_use_ssl
=
1
;
/* true */
my_free
(
opt_ssl_ca
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
(
opt_ssl_ca
,
MYF
(
MY_ALLOW_ZERO_PTR
));
opt_ssl_ca
=
my_strdup
(
optarg
,
MYF
(
0
));
opt_ssl_ca
path
=
my_strdup
(
optarg
,
MYF
(
0
));
break
;
break
;
case
OPT_SSL_CIPHER
:
case
OPT_SSL_CIPHER
:
opt_use_ssl
=
1
;
/* true */
opt_use_ssl
=
1
;
/* true */
my_free
(
opt_ssl_cipher
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
(
opt_ssl_cipher
,
MYF
(
MY_ALLOW_ZERO_PTR
));
opt_ssl_cipher
=
my_strdup
(
optarg
,
MYF
(
0
));
opt_ssl_cipher
=
my_strdup
(
optarg
,
MYF
(
0
));
break
;
break
;
#endif
#endif
vio/viossl.c
View file @
24805fc7
...
@@ -292,7 +292,7 @@ void sslaccept(struct st_VioSSLAcceptorFd* ptr, Vio* vio, long timeout)
...
@@ -292,7 +292,7 @@ void sslaccept(struct st_VioSSLAcceptorFd* ptr, Vio* vio, long timeout)
report_errors
();
report_errors
();
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
DBUG_PRINT
(
"info"
,
(
"ssl_=%p
"
,
vio
->
ssl_
));
DBUG_PRINT
(
"info"
,
(
"ssl_=%p
timeout=%ld"
,
vio
->
ssl_
,
timeout
));
SSL_clear
(
vio
->
ssl_
);
SSL_clear
(
vio
->
ssl_
);
vio_blocking
(
vio
,
FALSE
);
vio_blocking
(
vio
,
FALSE
);
SSL_SESSION_set_timeout
(
SSL_get_session
(
vio
->
ssl_
),
timeout
);
SSL_SESSION_set_timeout
(
SSL_get_session
(
vio
->
ssl_
),
timeout
);
...
@@ -348,7 +348,7 @@ void sslconnect(struct st_VioSSLConnectorFd* ptr, Vio* vio, long timeout)
...
@@ -348,7 +348,7 @@ void sslconnect(struct st_VioSSLConnectorFd* ptr, Vio* vio, long timeout)
report_errors
();
report_errors
();
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
DBUG_PRINT
(
"info"
,
(
"ssl_=%p"
,
vio
->
ssl_
));
DBUG_PRINT
(
"info"
,
(
"ssl_=%p timeout=%ld"
,
vio
->
ssl_
,
timeout
));
SSL_clear
(
vio
->
ssl_
);
SSL_clear
(
vio
->
ssl_
);
vio_blocking
(
vio
,
FALSE
);
vio_blocking
(
vio
,
FALSE
);
SSL_SESSION_set_timeout
(
SSL_get_session
(
vio
->
ssl_
),
timeout
);
SSL_SESSION_set_timeout
(
SSL_get_session
(
vio
->
ssl_
),
timeout
);
...
...
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