diff options
author | Hugo Landau <hlandau@openssl.org> | 2022-08-15 17:45:17 +0200 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2022-08-24 15:05:46 +0200 |
commit | 4d32f5332fa69ac949feec54c273fe63639ad891 (patch) | |
tree | 4a6185777f214a43bf2dae98f2c8c23f9075a1fc /include | |
parent | QUIC ACK Manager, Statistics Manager and Congestion Control API (diff) | |
download | openssl-4d32f5332fa69ac949feec54c273fe63639ad891.tar.xz openssl-4d32f5332fa69ac949feec54c273fe63639ad891.zip |
Updates for OSSL_TIME changes
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18676)
Diffstat (limited to 'include')
-rw-r--r-- | include/internal/time.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/internal/time.h b/include/internal/time.h index 5cc55b3f51..f5c56b6c7b 100644 --- a/include/internal/time.h +++ b/include/internal/time.h @@ -98,18 +98,18 @@ int ossl_time_compare(OSSL_TIME a, OSSL_TIME b) return 0; } -/* Returns true if an OSSL_TIME is OSSL_TIME_ZERO. */ +/* Returns true if an OSSL_TIME is ossl_time_zero(). */ static ossl_unused ossl_inline int ossl_time_is_zero(OSSL_TIME t) { - return t == OSSL_TIME_ZERO; + return ossl_time_compare(t, ossl_time_zero()) == 0; } -/* Returns true if an OSSL_TIME is OSSL_TIME_INFINITY. */ +/* Returns true if an OSSL_TIME is ossl_time_infinite(). */ static ossl_unused ossl_inline -int ossl_time_is_infinity(OSSL_TIME t) +int ossl_time_is_infinite(OSSL_TIME t) { - return t == OSSL_TIME_INFINITY; + return ossl_time_compare(t, ossl_time_infinite()) == 0; } /* |