- x509parse_time_expired() checks time now in addition to the existing date check
This commit is contained in:
parent
a056efc8f9
commit
b619499eb3
@ -18,6 +18,10 @@ Note: Most of these features have been donated by Fox-IT
|
||||
+ Added verification callback on certificate chain
|
||||
verification to allow external blacklisting
|
||||
|
||||
Changes
|
||||
* x509parse_time_expired() checks time in addition to
|
||||
the existing date check
|
||||
|
||||
= Version 0.14.0 released on 2010-08-16
|
||||
Features
|
||||
* Added support for SSL_EDH_RSA_AES_128_SHA and
|
||||
|
@ -2584,6 +2584,27 @@ int x509parse_time_expired( const x509_time *to )
|
||||
lt->tm_mday > to->day )
|
||||
return( 1 );
|
||||
|
||||
if( lt->tm_year == to->year - 1900 &&
|
||||
lt->tm_mon == to->mon - 1 &&
|
||||
lt->tm_mday == to->day &&
|
||||
lt->tm_hour > to->hour - 1)
|
||||
return( 1 );
|
||||
|
||||
if( lt->tm_year == to->year - 1900 &&
|
||||
lt->tm_mon == to->mon - 1 &&
|
||||
lt->tm_mday == to->day &&
|
||||
lt->tm_hour == to->hour - 1 &&
|
||||
lt->tm_min > to->min - 1 )
|
||||
return( 1 );
|
||||
|
||||
if( lt->tm_year == to->year - 1900 &&
|
||||
lt->tm_mon == to->mon - 1 &&
|
||||
lt->tm_mday == to->day &&
|
||||
lt->tm_hour == to->hour - 1 &&
|
||||
lt->tm_min == to->min - 1 &&
|
||||
lt->tm_sec > to->sec - 1 )
|
||||
return( 1 );
|
||||
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user