mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 00:06:32 +01:00
Fixed warnings in case POLARSSL_PEM_C is not defined
This commit is contained in:
parent
9a97c5d894
commit
dce7fdcbc9
2 changed files with 4 additions and 3 deletions
|
|
@ -1331,7 +1331,7 @@ int x509parse_crt_der( x509_cert *chain, const unsigned char *buf, size_t buflen
|
|||
*/
|
||||
int x509parse_crt( x509_cert *chain, const unsigned char *buf, size_t buflen )
|
||||
{
|
||||
int ret, success = 0, first_error = 0, total_failed = 0;
|
||||
int success = 0, first_error = 0, total_failed = 0;
|
||||
int buf_format = X509_FORMAT_DER;
|
||||
|
||||
/*
|
||||
|
|
@ -1355,6 +1355,7 @@ int x509parse_crt( x509_cert *chain, const unsigned char *buf, size_t buflen )
|
|||
#if defined(POLARSSL_PEM_C)
|
||||
if( buf_format == X509_FORMAT_PEM )
|
||||
{
|
||||
int ret;
|
||||
pem_context pem;
|
||||
|
||||
while( buflen > 0 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue