mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 16:45:41 +01:00
Merge remote-tracking branch 'public/pr/2056' into development-proposed
This commit is contained in:
commit
5706452787
@ -26,6 +26,8 @@ Bugfix
|
|||||||
* Fix a bug in the record decryption routine ssl_decrypt_buf()
|
* Fix a bug in the record decryption routine ssl_decrypt_buf()
|
||||||
which lead to accepting properly authenticated but improperly
|
which lead to accepting properly authenticated but improperly
|
||||||
padded records in case of CBC ciphersuites using Encrypt-then-MAC.
|
padded records in case of CBC ciphersuites using Encrypt-then-MAC.
|
||||||
|
* Fix memory leak and freeing without initialization in the example
|
||||||
|
program programs/x509/cert_write. Fixes #1422.
|
||||||
|
|
||||||
Changes
|
Changes
|
||||||
* Removed support for Yotta as a build tool.
|
* Removed support for Yotta as a build tool.
|
||||||
|
@ -242,6 +242,7 @@ int main( int argc, char *argv[] )
|
|||||||
mbedtls_pk_init( &loaded_subject_key );
|
mbedtls_pk_init( &loaded_subject_key );
|
||||||
mbedtls_mpi_init( &serial );
|
mbedtls_mpi_init( &serial );
|
||||||
mbedtls_ctr_drbg_init( &ctr_drbg );
|
mbedtls_ctr_drbg_init( &ctr_drbg );
|
||||||
|
mbedtls_entropy_init( &entropy );
|
||||||
#if defined(MBEDTLS_X509_CSR_PARSE_C)
|
#if defined(MBEDTLS_X509_CSR_PARSE_C)
|
||||||
mbedtls_x509_csr_init( &csr );
|
mbedtls_x509_csr_init( &csr );
|
||||||
#endif
|
#endif
|
||||||
@ -475,7 +476,6 @@ int main( int argc, char *argv[] )
|
|||||||
mbedtls_printf( " . Seeding the random number generator..." );
|
mbedtls_printf( " . Seeding the random number generator..." );
|
||||||
fflush( stdout );
|
fflush( stdout );
|
||||||
|
|
||||||
mbedtls_entropy_init( &entropy );
|
|
||||||
if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy,
|
if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy,
|
||||||
(const unsigned char *) pers,
|
(const unsigned char *) pers,
|
||||||
strlen( pers ) ) ) != 0 )
|
strlen( pers ) ) ) != 0 )
|
||||||
@ -789,6 +789,10 @@ int main( int argc, char *argv[] )
|
|||||||
exit_code = MBEDTLS_EXIT_SUCCESS;
|
exit_code = MBEDTLS_EXIT_SUCCESS;
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
#if defined(MBEDTLS_X509_CSR_PARSE_C)
|
||||||
|
mbedtls_x509_csr_free( &csr );
|
||||||
|
#endif /* MBEDTLS_X509_CSR_PARSE_C */
|
||||||
|
mbedtls_x509_crt_free( &issuer_crt );
|
||||||
mbedtls_x509write_crt_free( &crt );
|
mbedtls_x509write_crt_free( &crt );
|
||||||
mbedtls_pk_free( &loaded_subject_key );
|
mbedtls_pk_free( &loaded_subject_key );
|
||||||
mbedtls_pk_free( &loaded_issuer_key );
|
mbedtls_pk_free( &loaded_issuer_key );
|
||||||
|
Loading…
Reference in New Issue
Block a user