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
e3a7ce7d
Commit
e3a7ce7d
authored
Feb 06, 2007
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge 192.168.0.5:mysql/bug25203/my50-bug25203
into pilot.mysql.com:/home/msvensson/mysql/mysql-5.0-maint
parents
5959ca40
2580c49f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
16 deletions
+28
-16
mysql-test/t/rpl_openssl.test
mysql-test/t/rpl_openssl.test
+0
-4
vio/vio.c
vio/vio.c
+9
-10
vio/vio_priv.h
vio/vio_priv.h
+1
-0
vio/viossl.c
vio/viossl.c
+18
-2
No files found.
mysql-test/t/rpl_openssl.test
View file @
e3a7ce7d
# TODO: THIS TEST DOES NOT WORK ON WINDOWS
# This should be fixed.
--
source
include
/
not_windows
.
inc
source
include
/
have_openssl
.
inc
;
source
include
/
master
-
slave
.
inc
;
...
...
vio/vio.c
View file @
e3a7ce7d
...
...
@@ -86,7 +86,7 @@ static void vio_init(Vio* vio, enum enum_vio_type type,
#ifdef HAVE_OPENSSL
if
(
type
==
VIO_TYPE_SSL
)
{
vio
->
viodelete
=
vio_delete
;
vio
->
viodelete
=
vio_
ssl_
delete
;
vio
->
vioerrno
=
vio_errno
;
vio
->
read
=
vio_ssl_read
;
vio
->
write
=
vio_ssl_write
;
...
...
@@ -220,17 +220,16 @@ Vio *vio_new_win32shared_memory(NET *net,HANDLE handle_file_map, HANDLE handle_m
#endif
#endif
void
vio_delete
(
Vio
*
vio
)
{
/* It must be safe to delete null pointers. */
/* This matches the semantics of C++'s delete operator. */
if
(
vio
)
{
if
(
vio
->
type
!=
VIO_CLOSED
)
vio
->
vioclose
(
vio
);
my_free
((
gptr
)
vio
->
read_buffer
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
((
gptr
)
vio
,
MYF
(
0
));
}
if
(
!
vio
)
return
;
/* It must be safe to delete null pointers. */
if
(
vio
->
type
!=
VIO_CLOSED
)
vio
->
vioclose
(
vio
);
my_free
((
gptr
)
vio
->
read_buffer
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
((
gptr
)
vio
,
MYF
(
0
));
}
...
...
vio/vio_priv.h
View file @
e3a7ce7d
...
...
@@ -32,6 +32,7 @@ int vio_ssl_write(Vio *vio,const gptr buf,int size);
/* When the workday is over... */
int
vio_ssl_close
(
Vio
*
vio
);
void
vio_ssl_delete
(
Vio
*
vio
);
int
vio_ssl_blocking
(
Vio
*
vio
,
my_bool
set_blocking_mode
,
my_bool
*
old_mode
);
...
...
vio/viossl.c
View file @
e3a7ce7d
...
...
@@ -140,13 +140,29 @@ int vio_ssl_close(Vio *vio)
SSL_get_error
(
ssl
,
r
)));
break
;
}
SSL_free
(
ssl
);
vio
->
ssl_arg
=
0
;
}
DBUG_RETURN
(
vio_close
(
vio
));
}
void
vio_ssl_delete
(
Vio
*
vio
)
{
if
(
!
vio
)
return
;
/* It must be safe to delete null pointer */
if
(
vio
->
type
==
VIO_TYPE_SSL
)
vio_ssl_close
(
vio
);
/* Still open, close connection first */
if
(
vio
->
ssl_arg
)
{
SSL_free
((
SSL
*
)
vio
->
ssl_arg
);
vio
->
ssl_arg
=
0
;
}
vio_delete
(
vio
);
}
int
sslaccept
(
struct
st_VioSSLFd
*
ptr
,
Vio
*
vio
,
long
timeout
)
{
SSL
*
ssl
;
...
...
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