commit | e7e89844d6341024fbf96a956adecd6a326b8114 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Mon Jun 22 19:15:32 2015 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Mon Jun 22 23:41:24 2015 +0200 |
tree | ab44bb7c350883757025faf2ec6f94b8f74808c9 | |
parent | 57e10d71be924d157bdbe7ae0c0faf727520aad5 [diff] [blame] |
Fix and document corner-cases of time checking
diff --git a/library/x509.c b/library/x509.c index 4214cee..2ba3f98 100644 --- a/library/x509.c +++ b/library/x509.c
@@ -922,7 +922,7 @@ mbedtls_x509_time now; if( x509_get_current_time( &now ) != 0 ) - return( -1 ); + return( 1 ); return( x509_check_time( &now, to ) ); } @@ -932,7 +932,7 @@ mbedtls_x509_time now; if( x509_get_current_time( &now ) != 0 ) - return( -1 ); + return( 1 ); return( x509_check_time( from, &now ) ); }