mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-24 02:40:59 +00:00
Fix compilation errors after updating
Fix compilation errorsthat happened after new code introduced by updating the branch. Replaced `exit` label with `cleanup`.
This commit is contained in:
parent
45486b135d
commit
0d63e6229d
|
@ -200,7 +200,7 @@ int main( int argc, char *argv[] )
|
||||||
( ret = mbedtls_rsa_export_crt( rsa, &DP, &DQ, &QP ) ) != 0 )
|
( ret = mbedtls_rsa_export_crt( rsa, &DP, &DQ, &QP ) ) != 0 )
|
||||||
{
|
{
|
||||||
mbedtls_printf( " failed\n ! could not export RSA parameters\n\n" );
|
mbedtls_printf( " failed\n ! could not export RSA parameters\n\n" );
|
||||||
goto exit;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( "N: ", &rsa->N, 16, NULL ) );
|
MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( "N: ", &rsa->N, 16, NULL ) );
|
||||||
|
@ -258,7 +258,7 @@ int main( int argc, char *argv[] )
|
||||||
NULL, &E ) ) != 0 )
|
NULL, &E ) ) != 0 )
|
||||||
{
|
{
|
||||||
mbedtls_printf( " failed\n ! could not export RSA parameters\n\n" );
|
mbedtls_printf( " failed\n ! could not export RSA parameters\n\n" );
|
||||||
goto exit;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( "N: ", &rsa->N, 16, NULL ) );
|
MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( "N: ", &rsa->N, 16, NULL ) );
|
||||||
MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( "E: ", &rsa->E, 16, NULL ) );
|
MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( "E: ", &rsa->E, 16, NULL ) );
|
||||||
|
|
Loading…
Reference in a new issue