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
8d1b76e7
Commit
8d1b76e7
authored
May 03, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.0-maint
into neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
parents
d8c26c7b
cb241bdc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
client/mysqltest.c
client/mysqltest.c
+4
-4
extra/yassl/src/ssl.cpp
extra/yassl/src/ssl.cpp
+1
-1
sql-common/client.c
sql-common/client.c
+5
-5
No files found.
client/mysqltest.c
View file @
8d1b76e7
...
@@ -2888,10 +2888,6 @@ static struct my_option my_long_options[] =
...
@@ -2888,10 +2888,6 @@ static struct my_option my_long_options[] =
{
"compress"
,
'C'
,
"Use the compressed server/client protocol."
,
{
"compress"
,
'C'
,
"Use the compressed server/client protocol."
,
(
gptr
*
)
&
opt_compress
,
(
gptr
*
)
&
opt_compress
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
(
gptr
*
)
&
opt_compress
,
(
gptr
*
)
&
opt_compress
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
0
,
0
},
{
"max-connect-retries"
,
OPT_MAX_CONNECT_RETRIES
,
"Max number of connection attempts when connecting to server"
,
(
gptr
*
)
&
opt_max_connect_retries
,
(
gptr
*
)
&
opt_max_connect_retries
,
0
,
GET_INT
,
REQUIRED_ARG
,
5
,
1
,
10
,
0
,
0
,
0
},
{
"cursor-protocol"
,
OPT_CURSOR_PROTOCOL
,
"Use cursors for prepared statements."
,
{
"cursor-protocol"
,
OPT_CURSOR_PROTOCOL
,
"Use cursors for prepared statements."
,
(
gptr
*
)
&
cursor_protocol
,
(
gptr
*
)
&
cursor_protocol
,
0
,
(
gptr
*
)
&
cursor_protocol
,
(
gptr
*
)
&
cursor_protocol
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
...
@@ -2920,6 +2916,10 @@ static struct my_option my_long_options[] =
...
@@ -2920,6 +2916,10 @@ static struct my_option my_long_options[] =
{
"manager-wait-timeout"
,
OPT_MANAGER_WAIT_TIMEOUT
,
{
"manager-wait-timeout"
,
OPT_MANAGER_WAIT_TIMEOUT
,
"Undocumented: Used for debugging."
,
(
gptr
*
)
&
manager_wait_timeout
,
"Undocumented: Used for debugging."
,
(
gptr
*
)
&
manager_wait_timeout
,
(
gptr
*
)
&
manager_wait_timeout
,
0
,
GET_INT
,
REQUIRED_ARG
,
3
,
0
,
0
,
0
,
0
,
0
},
(
gptr
*
)
&
manager_wait_timeout
,
0
,
GET_INT
,
REQUIRED_ARG
,
3
,
0
,
0
,
0
,
0
,
0
},
{
"max-connect-retries"
,
OPT_MAX_CONNECT_RETRIES
,
"Max number of connection attempts when connecting to server"
,
(
gptr
*
)
&
opt_max_connect_retries
,
(
gptr
*
)
&
opt_max_connect_retries
,
0
,
GET_INT
,
REQUIRED_ARG
,
5
,
1
,
10
,
0
,
0
,
0
},
{
"password"
,
'p'
,
"Password to use when connecting to server."
,
{
"password"
,
'p'
,
"Password to use when connecting to server."
,
0
,
0
,
0
,
GET_STR
,
OPT_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
0
,
0
,
GET_STR
,
OPT_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"port"
,
'P'
,
"Port number to use for connection."
,
(
gptr
*
)
&
port
,
{
"port"
,
'P'
,
"Port number to use for connection."
,
(
gptr
*
)
&
port
,
...
...
extra/yassl/src/ssl.cpp
View file @
8d1b76e7
...
@@ -1080,7 +1080,7 @@ int X509_NAME_get_index_by_NID(X509_NAME* name,int nid, int lastpos)
...
@@ -1080,7 +1080,7 @@ int X509_NAME_get_index_by_NID(X509_NAME* name,int nid, int lastpos)
switch
(
nid
)
{
switch
(
nid
)
{
case
NID_commonName
:
case
NID_commonName
:
char
*
found
=
strstr
(
start
,
"/CN="
);
c
onst
c
har
*
found
=
strstr
(
start
,
"/CN="
);
if
(
found
)
{
if
(
found
)
{
found
+=
4
;
// advance to str
found
+=
4
;
// advance to str
idx
=
found
-
start
+
lastpos
+
1
;
idx
=
found
-
start
+
lastpos
+
1
;
...
...
sql-common/client.c
View file @
8d1b76e7
...
@@ -1608,14 +1608,14 @@ static int ssl_verify_server_cert(Vio *vio, const char* server_hostname)
...
@@ -1608,14 +1608,14 @@ static int ssl_verify_server_cert(Vio *vio, const char* server_hostname)
X509_free
(
server_cert
);
X509_free
(
server_cert
);
DBUG_PRINT
(
"info"
,
(
"hostname in cert: %s"
,
buf
));
DBUG_PRINT
(
"info"
,
(
"hostname in cert: %s"
,
buf
));
cp1
=
strstr
(
buf
,
"/CN="
);
cp1
=
strstr
(
buf
,
"/CN="
);
if
(
cp1
)
if
(
cp1
)
{
{
cp1
+=
4
;
// Skip the "/CN=" that we found
cp1
+=
4
;
/* Skip the "/CN=" that we found */
/
/ Search for next / which might be the delimiter for email
/
* Search for next / which might be the delimiter for email */
cp2
=
strchr
(
cp1
,
'/'
);
cp2
=
strchr
(
cp1
,
'/'
);
if
(
cp2
)
if
(
cp2
)
*
cp2
=
'\0'
;
*
cp2
=
'\0'
;
DBUG_PRINT
(
"info"
,
(
"Server hostname in cert: %s"
,
cp1
));
DBUG_PRINT
(
"info"
,
(
"Server hostname in cert: %s"
,
cp1
));
if
(
!
strcmp
(
cp1
,
server_hostname
))
if
(
!
strcmp
(
cp1
,
server_hostname
))
{
{
...
...
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