mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
Rename boolean functions to be clearer
This commit is contained in:
parent
3eb50fa591
commit
c730ed3f2d
14 changed files with 57 additions and 57 deletions
|
|
@ -962,7 +962,7 @@ static int x509_check_time( const mbedtls_x509_time *before, const mbedtls_x509_
|
|||
return( 0 );
|
||||
}
|
||||
|
||||
int mbedtls_x509_time_expired( const mbedtls_x509_time *to )
|
||||
int mbedtls_x509_time_is_past( const mbedtls_x509_time *to )
|
||||
{
|
||||
mbedtls_x509_time now;
|
||||
|
||||
|
|
@ -972,7 +972,7 @@ int mbedtls_x509_time_expired( const mbedtls_x509_time *to )
|
|||
return( x509_check_time( &now, to ) );
|
||||
}
|
||||
|
||||
int mbedtls_x509_time_future( const mbedtls_x509_time *from )
|
||||
int mbedtls_x509_time_is_future( const mbedtls_x509_time *from )
|
||||
{
|
||||
mbedtls_x509_time now;
|
||||
|
||||
|
|
@ -984,13 +984,13 @@ int mbedtls_x509_time_future( const mbedtls_x509_time *from )
|
|||
|
||||
#else /* MBEDTLS_HAVE_TIME */
|
||||
|
||||
int mbedtls_x509_time_expired( const mbedtls_x509_time *to )
|
||||
int mbedtls_x509_time_is_past( const mbedtls_x509_time *to )
|
||||
{
|
||||
((void) to);
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
int mbedtls_x509_time_future( const mbedtls_x509_time *from )
|
||||
int mbedtls_x509_time_is_future( const mbedtls_x509_time *from )
|
||||
{
|
||||
((void) from);
|
||||
return( 0 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue