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
47b51f61
Commit
47b51f61
authored
Nov 22, 2002
by
venu@myvenu.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge
parent
a9aebd43
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
libmysql/libmysql.c
libmysql/libmysql.c
+14
-7
No files found.
libmysql/libmysql.c
View file @
47b51f61
...
@@ -242,7 +242,7 @@ my_bool my_connect(my_socket s, const struct sockaddr *name,
...
@@ -242,7 +242,7 @@ my_bool my_connect(my_socket s, const struct sockaddr *name,
{
{
tv
.
tv_sec
=
(
long
)
timeout
;
tv
.
tv_sec
=
(
long
)
timeout
;
tv
.
tv_usec
=
0
;
tv
.
tv_usec
=
0
;
#if defined(HPUX) && defined(THREAD)
#if defined(HPUX
10
) && defined(THREAD)
if
((
res
=
select
(
s
+
1
,
NULL
,
(
int
*
)
&
sfds
,
NULL
,
&
tv
))
>=
0
)
if
((
res
=
select
(
s
+
1
,
NULL
,
(
int
*
)
&
sfds
,
NULL
,
&
tv
))
>=
0
)
break
;
break
;
#else
#else
...
@@ -928,7 +928,9 @@ static const char *default_options[]=
...
@@ -928,7 +928,9 @@ static const char *default_options[]=
"connect-timeout"
,
"local-infile"
,
"disable-local-infile"
,
"connect-timeout"
,
"local-infile"
,
"disable-local-infile"
,
"replication-probe"
,
"enable-reads-from-master"
,
"repl-parse-query"
,
"replication-probe"
,
"enable-reads-from-master"
,
"repl-parse-query"
,
"ssl-cipher"
,
"protocol"
,
"ssl-cipher"
,
"protocol"
,
"shared_memory_base_name"
,
red_memory_base_name
",
NullS
NullS
};
};
...
@@ -1737,6 +1739,7 @@ mysql_ssl_set(MYSQL *mysql __attribute__((unused)) ,
...
@@ -1737,6 +1739,7 @@ mysql_ssl_set(MYSQL *mysql __attribute__((unused)) ,
Free strings in the SSL structure and clear 'use_ssl' flag.
Free strings in the SSL structure and clear 'use_ssl' flag.
NB! Errors are not reported until you do mysql_real_connect.
NB! Errors are not reported until you do mysql_real_connect.
**************************************************************************/
**************************************************************************/
static void
static void
mysql_ssl_free(MYSQL *mysql __attribute__((unused)))
mysql_ssl_free(MYSQL *mysql __attribute__((unused)))
{
{
...
@@ -1807,6 +1810,7 @@ mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
...
@@ -1807,6 +1810,7 @@ mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
#endif
#endif
init_sigpipe_variables
init_sigpipe_variables
DBUG_ENTER("
mysql_real_connect
");
DBUG_ENTER("
mysql_real_connect
");
LINT_INIT(host_info);
DBUG_PRINT("
enter
",("
host
:
%
s
db
:
%
s
user
:
%
s
",
DBUG_PRINT("
enter
",("
host
:
%
s
db
:
%
s
user
:
%
s
",
host ? host : "
(
Null
)
",
host ? host : "
(
Null
)
",
...
@@ -2188,15 +2192,18 @@ Try also with PIPE or TCP/IP
...
@@ -2188,15 +2192,18 @@ Try also with PIPE or TCP/IP
options->ssl_capath,
options->ssl_capath,
options->ssl_cipher)))
options->ssl_cipher)))
{
{
/* TODO: Change to SSL error */
net->last_errno= CR_SSL_CONNECTION_ERROR;
net
->
last_errno
=
CR_SERVER_LOST
;
strmov(net->last_error,ER(net->last_errno));
strmov(net->last_error,ER(net->last_errno));
goto error;
goto error;
}
}
DBUG_PRINT("
info
", ("
IO
layer
change
in
progress
...
"));
DBUG_PRINT("
info
", ("
IO
layer
change
in
progress
...
"));
/* TODO: Add proper error checking here, with return error message */
if(sslconnect((struct st_VioSSLConnectorFd*)(mysql->connector_fd),
sslconnect
((
struct
st_VioSSLConnectorFd
*
)(
mysql
->
connector_fd
),
mysql->net.vio, (long) (mysql->options.connect_timeout)))
mysql
->
net
.
vio
,
(
long
)
(
mysql
->
options
.
connect_timeout
));
{
net->last_errno= CR_SSL_CONNECTION_ERROR;
strmov(net->last_error,ER(net->last_errno));
goto error;
}
DBUG_PRINT("
info
", ("
IO
layer
change
done
!
"));
DBUG_PRINT("
info
", ("
IO
layer
change
done
!
"));
}
}
#endif /* HAVE_OPENSSL */
#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