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
e3d7061d
Commit
e3d7061d
authored
May 03, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove C++ comments
Formatting
parent
184ae882
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sql-common/client.c
sql-common/client.c
+5
-5
No files found.
sql-common/client.c
View file @
e3d7061d
...
@@ -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