summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2018-09-01 12:19:30 +0200
committerMatt Caswell <matt@openssl.org>2018-11-30 12:51:58 +0000
commitd2cd28b99efa65dbd39cb8db0f2ad992be1aab00 (patch)
tree5da91fe1accb64c8aa0435090ce43882570dbb66 /include
parent89cb61de2af5f0fb07c86de086d57f20d523f6ba (diff)
err/err.c: add err_clear_last_constant_time.
Expected usage pattern is to unconditionally set error and then wipe it if there was no actual error. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (cherry picked from commit f658a3b64d8750642f4975090740865f770c2a1b)
Diffstat (limited to 'include')
-rw-r--r--include/internal/constant_time_locl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/internal/constant_time_locl.h b/include/internal/constant_time_locl.h
index 82ff74652e..cde30f4067 100644
--- a/include/internal/constant_time_locl.h
+++ b/include/internal/constant_time_locl.h
@@ -324,4 +324,10 @@ static ossl_inline void constant_time_lookup(void *out,
}
}
+/*
+ * Expected usage pattern is to unconditionally set error and then
+ * wipe it if there was no actual error. |clear| is 1 or 0.
+ */
+void err_clear_last_constant_time(int clear);
+
#endif /* HEADER_CONSTANT_TIME_LOCL_H */