mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
Add len constants to certs.c
This commit is contained in:
parent
5cbb60bfa3
commit
75f901006b
12 changed files with 115 additions and 55 deletions
|
|
@ -508,7 +508,7 @@ int main( int argc, char *argv[] )
|
|||
#endif
|
||||
#if defined(POLARSSL_CERTS_C)
|
||||
ret = x509_crt_parse( &cacert, (const unsigned char *) test_ca_list,
|
||||
strlen( test_ca_list ) );
|
||||
test_ca_list_len );
|
||||
#else
|
||||
{
|
||||
ret = 1;
|
||||
|
|
@ -538,7 +538,7 @@ int main( int argc, char *argv[] )
|
|||
#endif
|
||||
#if defined(POLARSSL_CERTS_C)
|
||||
ret = x509_crt_parse( &clicert, (const unsigned char *) test_cli_crt,
|
||||
strlen( test_cli_crt ) );
|
||||
test_cli_crt_len );
|
||||
#else
|
||||
{
|
||||
ret = -1;
|
||||
|
|
@ -558,7 +558,7 @@ int main( int argc, char *argv[] )
|
|||
#endif
|
||||
#if defined(POLARSSL_CERTS_C)
|
||||
ret = pk_parse_key( &pkey, (const unsigned char *) test_cli_key,
|
||||
strlen( test_cli_key ), NULL, 0 );
|
||||
test_cli_key_len, NULL, 0 );
|
||||
#else
|
||||
{
|
||||
ret = -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue