Changeset 1159 for trunk/library/md5.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/md5.c

    r1052 r1159  
    305305 
    306306    if( ( f = fopen( path, "rb" ) ) == NULL ) 
    307         return( 1 ); 
     307        return( POLARSSL_ERR_MD5_FILE_IO_ERROR ); 
    308308 
    309309    md5_starts( &ctx ); 
     
    319319    { 
    320320        fclose( f ); 
    321         return( 2 ); 
     321        return( POLARSSL_ERR_MD5_FILE_IO_ERROR ); 
    322322    } 
    323323 
Note: See TracChangeset for help on using the changeset viewer.

What are you looking for?