mirror of
				https://github.com/yuzu-emu/mbedtls.git
				synced 2025-11-04 13:24:57 +00:00 
			
		
		
		
	Make error messages in crypt_and_hash better.
This commit is contained in:
		
							parent
							
								
									7ccac85fbc
								
							
						
					
					
						commit
						352dbe2334
					
				| 
						 | 
					@ -187,7 +187,7 @@ int main( int argc, char *argv[] )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if( mbedtls_md_setup( &md_ctx, md_info, 1 ) != 0 )
 | 
					    if( mbedtls_md_setup( &md_ctx, md_info, 1 ) != 0 )
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        mbedtls_fprintf( stderr, "mbedtls_md_setup unsuccessful: This shouldn't happen.\n" );
 | 
					        mbedtls_fprintf( stderr, "mbedtls_md_setup failed\n" );
 | 
				
			||||||
        goto exit;
 | 
					        goto exit;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -404,12 +404,9 @@ int main( int argc, char *argv[] )
 | 
				
			||||||
            goto exit;
 | 
					            goto exit;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /*
 | 
					 | 
				
			||||||
         * Make coverity happy.
 | 
					 | 
				
			||||||
         */
 | 
					 | 
				
			||||||
        if( mbedtls_cipher_get_block_size( &cipher_ctx ) == 0 )
 | 
					        if( mbedtls_cipher_get_block_size( &cipher_ctx ) == 0 )
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            mbedtls_fprintf( stderr, "mbedtls_cipher_get_block_size returned with 0. This shouldn't happen.\n" );
 | 
					            mbedtls_fprintf( stderr, "Invalid cipher block size: 0. \n" );
 | 
				
			||||||
            goto exit;
 | 
					            goto exit;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue