We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26d6d08 commit c367257Copy full SHA for c367257
1 file changed
wolfhsm/wh_timeout.h
@@ -28,9 +28,9 @@
28
/* Pick up compile-time configuration */
29
#include "wolfhsm/wh_settings.h"
30
31
-#define WH_MSEC_TO_USEC(sec) (sec * 1000ULL)
+#define WH_MSEC_TO_USEC(usec) (usec * 1000ULL)
32
#define WH_SEC_TO_USEC(sec) (sec * 1000000ULL)
33
-#define WH_MIN_TO_USEC(sec) (sec * WH_SEC_TO_USEC(60))
+#define WH_MIN_TO_USEC(min) (min * WH_SEC_TO_USEC(60))
34
35
#include <stdint.h>
36
@@ -86,6 +86,9 @@ int wh_Timeout_Stop(whTimeoutCtx* timeout);
86
/**
87
* Check whether a timeout has expired.
88
*
89
+ * If the timeout is expired and an expired callback is configured, the
90
+ * callback is invoked before returning.
91
+ *
92
* @param timeout The timeout context to check.
93
* @return 1 if expired, 0 if not expired or disabled.
94
*/
0 commit comments