Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mbedtls
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
external
mbedtls
Commits
1c5b9fc1
Commit
1c5b9fc1
authored
Jun 27, 2015
by
Manuel Pégourié-Gonnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid truncating peer cert info in ssl_server2
parent
f659d2cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ssl_server2.c
programs/ssl/ssl_server2.c
+4
-2
No files found.
programs/ssl/ssl_server2.c
View file @
1c5b9fc1
...
@@ -1993,10 +1993,12 @@ reset:
...
@@ -1993,10 +1993,12 @@ reset:
else
else
mbedtls_printf
(
" ok
\n
"
);
mbedtls_printf
(
" ok
\n
"
);
if
(
mbedtls_ssl_get_peer_cert
(
&
ssl
)
)
if
(
mbedtls_ssl_get_peer_cert
(
&
ssl
)
!=
NULL
)
{
{
char
crt_buf
[
512
];
mbedtls_printf
(
" . Peer certificate information ...
\n
"
);
mbedtls_printf
(
" . Peer certificate information ...
\n
"
);
mbedtls_x509_crt_info
(
(
char
*
)
buf
,
sizeof
(
buf
)
-
1
,
" "
,
mbedtls_x509_crt_info
(
crt_buf
,
sizeof
(
crt_buf
)
,
" "
,
mbedtls_ssl_get_peer_cert
(
&
ssl
)
);
mbedtls_ssl_get_peer_cert
(
&
ssl
)
);
mbedtls_printf
(
"%s
\n
"
,
buf
);
mbedtls_printf
(
"%s
\n
"
,
buf
);
}
}
...
...
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