]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
ssl: add a zero time macro
authorPauli <pauli@openssl.org>
Tue, 24 May 2022 08:20:27 +0000 (18:20 +1000)
committerPauli <pauli@openssl.org>
Wed, 6 Jul 2022 00:33:11 +0000 (10:33 +1000)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18345)

include/internal/time.h

index b413ecaf6ec21d959d467d055a39c04502bdf2ed..4765274f17fc5fe66dd88243eb90d95d76109a52 100644 (file)
@@ -21,6 +21,9 @@
 /* Macro representing the most distant future time */
 # define OSSL_TIME_INFINITY (~(OSSL_TIME)0)
 
+/* Macro that's guaranteed to be now or before */
+# define OSSL_TIME_IMMEDIATE    0
+
 /*
  * Internal type defining a time.
  * The time datum is Unix's 1970 and at nanosecond precision, this gives