Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
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
1
Merge Requests
1
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
0eced5aa
Commit
0eced5aa
authored
Feb 02, 2017
by
Andres AG
Committed by
Simon Butcher
Feb 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix examples that failed to compile without PEM
parent
2537f37f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
dtls_client.c
programs/ssl/dtls_client.c
+1
-1
ssl_mail_client.c
programs/ssl/ssl_mail_client.c
+2
-2
No files found.
programs/ssl/dtls_client.c
View file @
0eced5aa
...
...
@@ -37,7 +37,7 @@
!defined(MBEDTLS_NET_C) || !defined(MBEDTLS_TIMING_C) || \
!defined(MBEDTLS_ENTROPY_C) || !defined(MBEDTLS_CTR_DRBG_C) || \
!defined(MBEDTLS_X509_CRT_PARSE_C) || !defined(MBEDTLS_RSA_C) || \
!defined(MBEDTLS_CERTS_C)
!defined(MBEDTLS_CERTS_C)
|| !defined(MBEDTLS_PEM_PARSE_C)
int
main
(
void
)
{
mbedtls_printf
(
"MBEDTLS_SSL_CLI_C and/or MBEDTLS_SSL_PROTO_DTLS and/or "
...
...
programs/ssl/ssl_mail_client.c
View file @
0eced5aa
...
...
@@ -494,13 +494,13 @@ int main( int argc, char *argv[] )
ret
=
mbedtls_x509_crt_parse_file
(
&
cacert
,
opt
.
ca_file
);
else
#endif
#if defined(MBEDTLS_CERTS_C)
#if defined(MBEDTLS_CERTS_C)
&& defined(MBEDTLS_PEM_PARSE_C)
ret
=
mbedtls_x509_crt_parse
(
&
cacert
,
(
const
unsigned
char
*
)
mbedtls_test_cas_pem
,
mbedtls_test_cas_pem_len
);
#else
{
ret
=
1
;
mbedtls_printf
(
"MBEDTLS_CERTS_C not defined."
);
mbedtls_printf
(
"MBEDTLS_CERTS_C
and/or MBEDTLS_PEM_PARSE_C
not defined."
);
}
#endif
if
(
ret
<
0
)
...
...
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