Changeset 1159 for trunk/library/sha4.c


Ignore:
Timestamp:
12/10/11 22:55:01 (5 months ago)
Author:
paul
Message:
  • Changed the behaviour of x509parse_parse_crt for permissive parsing. Now returns the number of 'failed certificates' instead of having a switch to enable it.
  • As a consequence all error code that were positive were changed. A lot of MALLOC_FAILED and FILE_IO_ERROR error codes added for different modules.
  • Programs and tests were adapted accordingly
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/library/sha4.c

    r1145 r1159  
    340340 
    341341    if( ( f = fopen( path, "rb" ) ) == NULL ) 
    342         return( 1 ); 
     342        return( POLARSSL_ERR_SHA4_FILE_IO_ERROR ); 
    343343 
    344344    sha4_starts( &ctx, is384 ); 
     
    354354    { 
    355355        fclose( f ); 
    356         return( 2 ); 
     356        return( POLARSSL_ERR_SHA4_FILE_IO_ERROR ); 
    357357    } 
    358358 
Note: See TracChangeset for help on using the changeset viewer.

What are you looking for?