projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
err/err.c: add err_clear_last_constant_time.
[oweals/openssl.git]
/
include
/
internal
/
constant_time_locl.h
diff --git
a/include/internal/constant_time_locl.h
b/include/internal/constant_time_locl.h
index 82ff74652ecca58f74c11c6754b52a176cf530b7..cde30f4067ef19c17627fc89a3803db8996b1d5a 100644
(file)
--- 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 */